Skip to main content
PATCH
/
v1
/
webhooks
/
{webhookId}
/
subscriptions
/
{subscriptionId}
Actualizar suscripción
curl --request PATCH \
  --url https://agents.studio.getsupervisor.ai/v1/webhooks/{webhookId}/subscriptions/{subscriptionId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'x-workspace-id: <x-workspace-id>' \
  --data '
{
  "isActive": true
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "webhookId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "eventKey": "<string>",
  "isActive": true,
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

x-workspace-id
string<uuid>
required

Identificador del workspace multi-tenant.

Path Parameters

webhookId
string<uuid>
required

Identificador del webhook (UUID v4)

subscriptionId
string<uuid>
required

Identificador de la suscripción de evento (UUID v4)

Body

application/json
isActive
boolean

Response

OK

Detalle de suscripción (mismos campos que el resumen por ahora).

id
string<uuid>
required
webhookId
string<uuid>
required
eventKey
string
required

Clave del evento (p. ej. agent.created, agent.version.published).

isActive
boolean
required
createdAt
string<date-time>
required
updatedAt
string<date-time>
required