Update webhook
PATCH/webhooks/:webhook_id
Updates a webhook to replace webhook fields with new values. Supports only the replace
operation. Pass a json_patch
object with replace
operation and path
, which is /url
for a URL or /event_types
for events. The value
is either the URL or a list of events.
Request
Path Parameters
Possible values: <= 50 characters
, Value must match regular expression ^[a-zA-Z0-9]+$
The ID of the webhook to update.
- application/json
Body
any
Responses
- 200
- default
A successful request returns the HTTP 200 OK
status code and a JSON response body that shows webhook details.
- application/json
- Schema
- Example (from schema)
Schema
The ID of the webhook.
The URL that is configured to listen on localhost
for incoming POST
notification messages that contain event information.
Possible values: <= 2048 characters
An array of events to which to subscribe your webhook. To subscribe to all events, including events as they are added, specify the asterisk wild card. To replace the event_types
array, specify the asterisk wild card. To list all supported events, list available events.
Possible values: <= 500
An array of request-related HATEOAS links.
{
"id": "string",
"url": "string",
"event_types": [
{
"name": "string",
"description": "string",
"status": "string",
"resource_versions": [
"string"
]
}
],
"links": [
{
"href": "string",
"rel": "string",
"method": "GET"
}
]
}
The error response.
- application/json
- Schema
- Example (from schema)
Schema
The human-readable, unique name of the error.
The message that describes the error.
The PayPal internal ID. Used for correlation purposes.
The information link, or URI, that shows detailed information about this error for the developer.
An array of additional details about the error.
An array of request-related HATEOAS links.
{
"name": "string",
"message": "string",
"debug_id": "string",
"information_link": "string",
"details": [
{
"field": "string",
"value": "string",
"location": "body",
"issue": "string",
"description": "string"
}
],
"links": [
{
"href": "string",
"rel": "string",
"method": "GET"
}
]
}