Partially update a webhook
const url = 'https://public.api.barestho.com/api/v1/partnership/webhooks/example/';const options = { method: 'PATCH', headers: {Authorization: 'Basic <credentials>', 'Content-Type': 'application/json'}, body: '{"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"}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”The unique identifier of the webhook to partially update.
Request Body
Section titled “Request Body ”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
Unique numeric identifier for the webhook. Read-only; cannot be modified.
ISO 8601 timestamp of webhook creation. Read-only.
ISO 8601 timestamp of the last webhook modification. Read-only.
Updated target URL for event delivery. Must be a valid URI. Maximum 500 characters.
Updated human-readable label. Set to null to remove the label.
Set to false to pause deliveries, or true to resume them.
ISO 8601 timestamp of the last delivery attempt. Managed by the server.
HTTP status code from the most recent delivery response. Managed by the server.
Response body from the most recent delivery. Managed by the server.
object
Updated event subscription map. Replaces the existing subscription configuration entirely when provided.
object
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" }}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
Unique numeric identifier for the webhook. Read-only; cannot be modified.
ISO 8601 timestamp of webhook creation. Read-only.
ISO 8601 timestamp of the last webhook modification. Read-only.
Updated target URL for event delivery. Must be a valid URI. Maximum 500 characters.
Updated human-readable label. Set to null to remove the label.
Set to false to pause deliveries, or true to resume them.
ISO 8601 timestamp of the last delivery attempt. Managed by the server.
HTTP status code from the most recent delivery response. Managed by the server.
Response body from the most recent delivery. Managed by the server.
object
Updated event subscription map. Replaces the existing subscription configuration entirely when provided.
object
Example generated
url=https%3A%2F%2Fexample.com&name=example&is_enabled=true&last_use_at=2026-04-15T12%3A00%3A00Z&last_response_status_code=1&additionalProperty=example&additionalProperty=examplePartial representation of a webhook used for PATCH requests. All fields are optional; only the fields present in the request body will be updated.
object
Unique numeric identifier for the webhook. Read-only; cannot be modified.
ISO 8601 timestamp of webhook creation. Read-only.
ISO 8601 timestamp of the last webhook modification. Read-only.
Updated target URL for event delivery. Must be a valid URI. Maximum 500 characters.
Updated human-readable label. Set to null to remove the label.
Set to false to pause deliveries, or true to resume them.
ISO 8601 timestamp of the last delivery attempt. Managed by the server.
HTTP status code from the most recent delivery response. Managed by the server.
Response body from the most recent delivery. Managed by the server.
object
Updated event subscription map. Replaces the existing subscription configuration entirely when provided.
object
Responses
Section titled “ Responses ”The webhook object after the partial 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
Unique numeric identifier for the webhook. Read-only; cannot be modified.
ISO 8601 timestamp of webhook creation. Read-only.
ISO 8601 timestamp of the last webhook modification. Read-only.
Updated target URL for event delivery. Must be a valid URI. Maximum 500 characters.
Updated human-readable label. Set to null to remove the label.
Set to false to pause deliveries, or true to resume them.
ISO 8601 timestamp of the last delivery attempt. Managed by the server.
HTTP status code from the most recent delivery response. Managed by the server.
Response body from the most recent delivery. Managed by the server.
object
Updated event subscription map. Replaces the existing subscription configuration entirely when provided.
object
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" }}