Update Subscription
PUT
PUT
https://api.atzcrm.com/v1/subscribe/:idUpdate a subscribed webhook by its unique id.
Request
Put
PUT /v1/subscribe/:id
Path Parameter
- id
numberReplace
:idwith subscription id in the request URL.
Body
- eventName
string>= 1 character
- targetUrl
string (URL)>= 1 characters
Response
200
Body
- id
numberExample: 7
- account_id
numberExample: 1
- event_name
stringExample: candidate.deleted
- target_url
stringExample: https://xyz_updated.com
- source
stringExample: public
- created_at
integerExample: 1764200594
- updated_at
integerExample: 1764200981
401
Body
- unauthorised
422
Body
- Unprocessable Entity
Response Example
{
"id": 7,
"account_id": 1,
"event_name": "candidate.deleted",
"target_url": "https://xyz_updated.com",
"source": "public",
"created_at": 1764200594,
"updated_at": 1764200981
}