Update the post-call webhook
Update the post-call webhook URL and enabled state.
Endpoint
PUT
/api/v1/workspaces/{workspace_id}/webhooks/post-callAuthentication
| Operation class | Authentication | Minimum role | API key |
|---|---|---|---|
| dashboard-session-api | Dashboard session cookie; mutations also require X-CX-Request: 1. | admin | Not allowed |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
workspace_id | path | string | Yes | — |
Request body
application/json request schema
| Field path | Type | Reference | Format | Nullable | Required | Enum | Description |
|---|---|---|---|---|---|---|---|
$ | object | PermintaanUbahPostCallWebhook | — | No | Yes | — | — |
enabled | boolean | — | — | No | Yes | — | — |
url | string | — | — | No | Yes | — | — |
Example
curl --request PUT 'https://operade.ai/api/v1/workspaces/ws_demo/webhooks/post-call' \
--cookie 'cx_session=YOUR_SESSION_COOKIE' \
--header 'X-CX-Request: 1' \
--header 'Content-Type: application/json' \
--data '{"url":"https://example.com/operade-events","enabled":true}'{
"enabled": true,
"url": "https://example.com/operade-events"
}Responses
| Status | Description | Content |
|---|---|---|
4XX | Handled client error | application/json: ErrorResponse |
200 | Successful Response | application/json: PostCallWebhook |
4XX application/json response schema
| Field path | Type | Reference | Format | Nullable | Required | Enum | Description |
|---|---|---|---|---|---|---|---|
$ | object | ErrorResponse | — | No | Yes | — | — |
error | object | ErrorItem | — | No | Yes | — | — |
error.code | string | — | — | No | Yes | — | — |
error.details | object | — | — | No | No | — | — |
error.message | string | — | — | No | Yes | — | — |
200 application/json response schema
| Field path | Type | Reference | Format | Nullable | Required | Enum | Description |
|---|---|---|---|---|---|---|---|
$ | object | PostCallWebhook | — | No | Yes | — | — |
configured | boolean | — | — | No | Yes | true | — |
created_at | string | — | date-time | No | Yes | — | — |
enabled | boolean | — | — | No | Yes | — | — |
last_delivery_at | string or null | — | date-time | Yes | Yes | — | — |
last_error | string or null | — | — | Yes | Yes | — | — |
last_status | integer or null | — | — | Yes | Yes | — | — |
updated_at | string | — | date-time | No | Yes | — | — |
url | string | — | — | No | Yes | — | — |
Response example
{
"configured": true,
"url": "string",
"enabled": false,
"last_status": 0,
"last_delivery_at": "2026-01-01T00:00:00Z",
"last_error": "string",
"created_at": "2026-01-01T00:00:00Z",
"updated_at": "2026-01-01T00:00:00Z"
}Errors
Reviewed common and route-declared errors are summarized here; the list is not exhaustive. Start with the distributed error index to find each code's canonical domain page.
| Status | Code | Description |
|---|---|---|
401 | unauthenticated | Authentication is missing, invalid, or revoked. |
403 | forbidden | The authenticated caller does not have access to this operation. |
404 | not_found | The requested workspace resource was not found. |
422 | validation_failed | The request did not pass field or business validation. |
