v5

latestOpenAPI 3.0.3Apache 2.0raw.githubusercontent.com2026-02-283466592.5 MB
Insights deployments (beta)

Update deployment

Update a deployment by ID. Updating a deployment uses a JSON patch representation of the desired changes. To learn more, read Updates.<br/><br/>The deployment ID is returned as part of the List deployments response. It is the id field of each element in the items array.

patch/api/v2/engineering-insights/deployments/{deploymentID}

Path parameters

deploymentIDstring string required

The deployment ID

The deployment ID

Request body

opstring required

The type of operation to perform

pathstring required

A JSON Pointer string specifying the part of the document to operate on

valuestring

A JSON value used in "add", "replace", and "test" operations

Example request

[
  {
    "op": "replace",
    "path": "/exampleField",
    "value": "new example value"
  }
]

Response

Deployment response

idstring uuid required

The deployment ID

applicationKeystring required

The application key

applicationVersionstring required

The application version

startedAtinteger required
endedAtinteger
durationMsinteger

The duration of the deployment in milliseconds

statusstring required
kindstring required
activeboolean required

Whether the deployment is active

metadataobject

The metadata associated with the deployment

archivedboolean required

Whether the deployment is archived

environmentKeystring required

The environment key

numberOfContributorsinteger required

The number of contributors

numberOfPullRequestsinteger required

The number of pull requests

linesAddedinteger required

The number of lines added

linesDeletedinteger required

The number of lines deleted

leadTimeinteger required

The total lead time from first commit to deployment end in milliseconds