AgentConnect
Azure DevOps

Rotate an Azure DevOps repository’s service hook key

Seals a next key, sends it to the relays beside the current one, then replaces each recorded service hook subscription with the next key, recording each acknowledgement so a rotation cut short resumes without re-keying any subscription twice. The key is promoted once every subscription has switched and a delivery verifies under it; the old key is then accepted for 36 hours of Azure DevOps retries. Answers how many subscriptions have switched so far.

POST
/v1/orgs/{orgId}/azure-devops/repositories/{id}/rotate-hook-key

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

orgId*string
id*string

Response Body

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v1/orgs/string/azure-devops/repositories/string/rotate-hook-key"
{  "rotated": true,  "switched": -9007199254740991,  "total": -9007199254740991,  "reason": "string"}