Update webhook subscription
Changed onUpdate the account's oldest webhook endpoint (creating it if the account has none) — which events are monitored, whether delivery is enabled, and the delivery/contact details. Accounts with several endpoints should use Update webhook endpoint. Requires the webhooks:write OAuth scope.
Request
- Base URLhttps://api.assinafy.com.br
- Auth
- HTTP bearer
- or API key in header X-Api-Key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
Workspace account ID.
Request body
Example request
{
"events": [
"document_ready",
"document_prepared"
],
"is_active": true,
"url": "https://example.com?test=1",
"email": "email@test.com"
}Response
The updated subscription
Example response
{
"status": 200,
"data": {
"events": [
"document_ready",
"document_prepared"
],
"is_active": true,
"url": "https://example.com?test=1",
"email": "email@test.com",
"updated_at": "2023-05-10T14:58:24Z"
}
}Changes
- info
added the optional property
////to the response with the status - info
added the optional property
////to the response with the status - info
added the optional property
////to the response with the status - info
added the optional property
////to the response with the status - info
added the optional property
////to the response with the status - info
added the optional property
////to the response with the status
- info
- info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status
- info