Skip to content

Partially update a webhook

PATCH
/api/v1/partnership/webhooks/{id}/
curl --request PATCH \
--url https://public.api.barestho.com/api/v1/partnership/webhooks/example/ \
--header 'Authorization: Basic <credentials>' \
--header 'Content-Type: application/json' \
--data '{ "url": "https://example.com", "name": "example", "is_enabled": true, "last_use_at": "2026-04-15T12:00:00Z", "last_response_status_code": 1, "last_response": { "additionalProperty": "example" }, "subscribed_events": { "additionalProperty": "example" } }'

Partially updates a webhook configuration. Only the fields included in the request body are modified. Useful for toggling is_enabled or updating the subscribed_events map without resending the full object.

id
required
string

The unique identifier of the webhook to partially update.

Partial representation of a webhook used for PATCH requests. All fields are optional; only the fields present in the request body will be updated.

object
id

Unique numeric identifier for the webhook. Read-only; cannot be modified.

integer
created_at

ISO 8601 timestamp of webhook creation. Read-only.

string format: date-time
updated_at

ISO 8601 timestamp of the last webhook modification. Read-only.

string format: date-time
url

Updated target URL for event delivery. Must be a valid URI. Maximum 500 characters.

string format: uri
<= 500 characters
name

Updated human-readable label. Set to null to remove the label.

string
nullable <= 125 characters
is_enabled

Set to false to pause deliveries, or true to resume them.

boolean
last_use_at

ISO 8601 timestamp of the last delivery attempt. Managed by the server.

string format: date-time
nullable
last_response_status_code

HTTP status code from the most recent delivery response. Managed by the server.

integer
nullable <= 32767
last_response

Response body from the most recent delivery. Managed by the server.

object
key
additional properties
subscribed_events

Updated event subscription map. Replaces the existing subscription configuration entirely when provided.

object
key
additional properties
Example generated
{
"url": "https://example.com",
"name": "example",
"is_enabled": true,
"last_use_at": "2026-04-15T12:00:00Z",
"last_response_status_code": 1,
"last_response": {
"additionalProperty": "example"
},
"subscribed_events": {
"additionalProperty": "example"
}
}

The webhook object after the partial update.

Media type application/json

Partial representation of a webhook used for PATCH requests. All fields are optional; only the fields present in the request body will be updated.

object
id

Unique numeric identifier for the webhook. Read-only; cannot be modified.

integer
created_at

ISO 8601 timestamp of webhook creation. Read-only.

string format: date-time
updated_at

ISO 8601 timestamp of the last webhook modification. Read-only.

string format: date-time
url

Updated target URL for event delivery. Must be a valid URI. Maximum 500 characters.

string format: uri
<= 500 characters
name

Updated human-readable label. Set to null to remove the label.

string
nullable <= 125 characters
is_enabled

Set to false to pause deliveries, or true to resume them.

boolean
last_use_at

ISO 8601 timestamp of the last delivery attempt. Managed by the server.

string format: date-time
nullable
last_response_status_code

HTTP status code from the most recent delivery response. Managed by the server.

integer
nullable <= 32767
last_response

Response body from the most recent delivery. Managed by the server.

object
key
additional properties
subscribed_events

Updated event subscription map. Replaces the existing subscription configuration entirely when provided.

object
key
additional properties
Example generated
{
"url": "https://example.com",
"name": "example",
"is_enabled": true,
"last_use_at": "2026-04-15T12:00:00Z",
"last_response_status_code": 1,
"last_response": {
"additionalProperty": "example"
},
"subscribed_events": {
"additionalProperty": "example"
}
}