Langkau ke kandungan
GrowSocmedDokumentasiSocial media command center

Update a webhook endpoint

Change the URL or events, or turn the endpoint on or off

PATCH
/webhooks/{id}

Change the URL or events, or turn the endpoint on or off

Authorization

apiKey
headerAuthorizationBearer <token>

API key from Developer → API keys (gs_…). An unbound key takes the workspace from the X-Workspace header.

Path Parameters

id*string
Formatuuid

Request Body

application/json
  1. body
url?string
Formaturi
Lengthlength <= 2000
events?array<>
Items1 <= items
active?boolean

Response Body

OK

application/json
  1. response
id*string
url*string
events*array<string>
active*boolean
consecutive_failures*number
disabled_at*string|null
created_at*string
Example Request
curl -X PATCH 'https://socmed.growpaces.com/api/v1/webhooks/497f6eca-6276-4993-bfeb-53cbbbba6f08' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response200
{  "id": "string",  "url": "string",  "events": [    "string"  ],  "active": true,  "consecutive_failures": 0,  "disabled_at": "string",  "created_at": "string"}