Hooks
Update a hook
Update a hook definition. kind is immutable (it discriminates the body); so is a code-host trigger’s subject family, which is why the update body carries none — delete and re-create to change it. A webhook hook’s ingress URL and signing secret are immutable too — rotating either is a delete + re-create. A github hook’s repository may be re-targeted (re-validated against the organization’s installations).
Authorization
bearerAuth AuthorizationBearer <token>
In: header
Path Parameters
orgId*string
id*string
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X PUT "https://example.com/v1/orgs/string/hooks/string" \ -H "Content-Type: application/json" \ -d '{ "agentId": "bc309ecf-5f66-4057-93c5-6611cc9cb7b2", "name": "string", "kind": "gitlab", "projectId": "string", "events": [ "string" ] }'{ "id": "string", "orgId": "string", "agentId": "string", "kind": "webhook", "name": "string", "sessionMode": "perDelivery", "enabled": true, "url": "string", "hmacConfigured": true, "repoId": "string", "repoFullName": "string", "installationId": "string", "installationAccount": "string", "family": "string", "events": [ "string" ], "commentFamilies": [ "issues" ], "labelFilter": [ "string" ], "mentionOnly": true, "configRevision": "string", "reviewPolicy": "off", "reportingMode": "off", "gateMode": "informational", "targetPlatform": "slack", "targetChannel": "string", "targetIntegrationId": "string", "lastFiredAt": "string", "createdBy": "string", "createdAt": "string", "lastModifiedBy": "string", "lastModifiedAt": "string"}