---
title: "PATCH /api/v1/app-connections/azure-devops/{connectionId}"
method: PATCH
path: "/api/v1/app-connections/azure-devops/{connectionId}"
tags: ["App Connections"]
---

# PATCH /api/v1/app-connections/azure-devops/{connectionId}

`PATCH /api/v1/app-connections/azure-devops/{connectionId}`

Update the specified Azure DevOps Connection.

## Path parameters

- `connectionId` string, uuid, required

## Request body

- object
  - `credentials` union — The credentials used to connect with Azure DevOps.
    - object
      - `code` string, required — The OAuth code to use to connect with Azure DevOps.
      - `tenantId` string, required — The Tenant ID to use to connect with Azure DevOps.
      - `orgName` string, required — The Organization name to use to connect with Azure DevOps.
    - object
      - `accessToken` string, required
      - `orgName` string, required
    - object
      - `clientId` string, uuid, required — The Client ID to use to connect with Azure Client Secrets.
      - `clientSecret` string, required — The Client Secret to use to connect with Azure Client Secrets.
      - `tenantId` string, uuid, required — The Tenant ID to use to connect with Azure DevOps.
      - `orgName` string, required — The Organization name to use to connect with Azure DevOps.
      - `clientSecretKeyId` string, uuid — The Key ID of the client secret in Azure AD. Required when enabling credential rotation so the original secret can be revoked.
  - `name` string — The updated name of the Azure DevOps Connection. Must be slug-friendly.
  - `description` string, nullable — The updated description of the Azure DevOps Connection.
  - `isPlatformManagedCredentials` false — Not supported for Azure DevOps Connections.
  - `gatewayId` 'null', nullable — Not supported for Azure DevOps Connections.
  - `gatewayPoolId` 'null', nullable — Not supported for Azure DevOps Connections.
  - `isAutoRotationEnabled` boolean — Whether or not automatic credential rotation is enabled for the Azure DevOps Connection.
  - `rotation` object — The updated credential rotation configuration for the Azure DevOps Connection.
    - `rotationInterval` integer — The interval in days between credential rotations.
    - `rotateAtUtc` object
      - `hours` integer, required — The hour (0-23) at which to rotate (UTC timezone).
      - `minutes` integer, required — The minute (0-59) at which to rotate (UTC timezone).

## Response `200`

Default Response

- object
  - `appConnection` union, required
    - object
      - `id` string, uuid, required
      - `name` string, required
      - `description` string, nullable
      - `version` number
      - `orgId` string, uuid, required
      - `createdAt` string, date-time, required
      - `updatedAt` string, date-time, required
      - `isPlatformManagedCredentials` boolean, nullable
      - `gatewayId` string, uuid, nullable
      - `projectId` string, nullable
      - `isAutoRotationEnabled` boolean
      - `gatewayPoolId` string, uuid, nullable
      - `rotation` object — The credential rotation configuration, if configured.
        - `lastRotationMessage` string, nullable — The message from the last rotation attempt.
        - `rotationInterval` number, required — The interval in days between credential rotations.
        - `nextRotationAt` string, date-time, nullable — The next scheduled rotation time.
        - `rotationStatus` 'success' | 'failed', required — The status of the last rotation attempt.
        - `rotateAtUtc` object, required — The UTC time of day at which rotation should occur.
          - `hours` number, required — The hour (0-23) at which to rotate.
          - `minutes` number, required — The minute (0-59) at which to rotate.
      - `credentialsHash` string
      - `project` object, nullable
        - `name` string, required
        - `id` string, required
        - `type` string, required
        - `slug` string, required
      - `app` 'azure-devops', required
      - `method` 'oauth', required
      - `credentials` object, required
        - `tenantId` string, required
        - `orgName` string, required
    - object
      - `id` string, uuid, required
      - `name` string, required
      - `description` string, nullable
      - `version` number
      - `orgId` string, uuid, required
      - `createdAt` string, date-time, required
      - `updatedAt` string, date-time, required
      - `isPlatformManagedCredentials` boolean, nullable
      - `gatewayId` string, uuid, nullable
      - `projectId` string, nullable
      - `isAutoRotationEnabled` boolean
      - `gatewayPoolId` string, uuid, nullable
      - `rotation` object — The credential rotation configuration, if configured.
        - `lastRotationMessage` string, nullable — The message from the last rotation attempt.
        - `rotationInterval` number, required — The interval in days between credential rotations.
        - `nextRotationAt` string, date-time, nullable — The next scheduled rotation time.
        - `rotationStatus` 'success' | 'failed', required — The status of the last rotation attempt.
        - `rotateAtUtc` object, required — The UTC time of day at which rotation should occur.
          - `hours` number, required — The hour (0-23) at which to rotate.
          - `minutes` number, required — The minute (0-59) at which to rotate.
      - `credentialsHash` string
      - `project` object, nullable
        - `name` string, required
        - `id` string, required
        - `type` string, required
        - `slug` string, required
      - `app` 'azure-devops', required
      - `method` 'access-token', required
      - `credentials` object, required
        - `orgName` string, required
    - object
      - `id` string, uuid, required
      - `name` string, required
      - `description` string, nullable
      - `version` number
      - `orgId` string, uuid, required
      - `createdAt` string, date-time, required
      - `updatedAt` string, date-time, required
      - `isPlatformManagedCredentials` boolean, nullable
      - `gatewayId` string, uuid, nullable
      - `projectId` string, nullable
      - `isAutoRotationEnabled` boolean
      - `gatewayPoolId` string, uuid, nullable
      - `rotation` object — The credential rotation configuration, if configured.
        - `lastRotationMessage` string, nullable — The message from the last rotation attempt.
        - `rotationInterval` number, required — The interval in days between credential rotations.
        - `nextRotationAt` string, date-time, nullable — The next scheduled rotation time.
        - `rotationStatus` 'success' | 'failed', required — The status of the last rotation attempt.
        - `rotateAtUtc` object, required — The UTC time of day at which rotation should occur.
          - `hours` number, required — The hour (0-23) at which to rotate.
          - `minutes` number, required — The minute (0-59) at which to rotate.
      - `credentialsHash` string
      - `project` object, nullable
        - `name` string, required
        - `id` string, required
        - `type` string, required
        - `slug` string, required
      - `app` 'azure-devops', required
      - `method` 'client-secret', required
      - `credentials` object, required
        - `clientId` string, required
        - `tenantId` string, required
        - `orgName` string, required

## Other responses

- `400` — Default Response
- `401` — Default Response
- `403` — Default Response
- `404` — Default Response
- `422` — Default Response
- `500` — Default Response

---

[API](https://skmtc.net/infisical/apis/infisical-api.md) · [All operations](https://skmtc.net/infisical/apis/infisical-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/infisical/infisical-api/versions/f10a4f8c1d41/schema)
