Update a Webhook

put

/system/api/v1/webhooks/{id}

with the given payload. User should have Admin role to update Webhook. User should have access to the Webhook for updating it. User should have manager access to any of the configured objectsfor updating Webhook.

CSRF token header (X-CSRF-TOKEN) is needed for updating Webhooks. Token can be obtained from token REST service.

Request

Supported Media Types
Path Parameters
Body ()
Webhook Object
Root Schema : Webhook
Type: object
Webhook Configuration Data
Show Source
Nested Schema : User
Type: object
User Metadata Model.
Show Source
Nested Schema : eventDetails
Type: array
Event details that the Webhook is subscribing to. This is a required property. Atleast one event is required
Show Source
Nested Schema : Payload
Type: object
Payload configuration for the Webhook. Supported pay load names are:
empty
brief
detailed
Show Source
  • Name for the payload. Brief is the default value for webhook is payload is not set
    Example: brief
Nested Schema : Target
Type: object
Target end point details for the Webhook.
Show Source
Nested Schema : Webhook Events
Type: object
Event details for Webhook.
Show Source
Nested Schema : eventNames
Type: array
List of events. Event names can be retrieved from /events/types?expand=all end point
Show Source
Example:
contentitem_created,contentitem_published,digitalasset_created
Nested Schema : Filter
Type: object
Show Source
Nested Schema : objectIds
Type: array
List of ids of the objectType.
Show Source
Example:
{F1B337DC2AF3DBCC98701AB86D1F21FC05E8AB20694D}
Nested Schema : Security
Type: object
Security configuration for the Webhook target end point.
Show Source
Nested Schema : BasicAuth
Type: object
Basic authentication configuration details. The details will be sent in Authorization header
Show Source
Nested Schema : Headers
Type: object
Header based authorization configuration details.
Show Source
Nested Schema : SignatureSecurity
Type: object
Signature based security configuration details.
Show Source
Nested Schema : headers
Type: array
List of headers.
Show Source
Nested Schema : Request Header
Type: object
Request Header
Show Source
Back to Top

Response

Supported Media Types

200 Response

OK
Body ()
Root Schema : Webhook
Type: object
Webhook Configuration Data
Show Source
Nested Schema : User
Type: object
User Metadata Model.
Show Source
Nested Schema : eventDetails
Type: array
Event details that the Webhook is subscribing to. This is a required property. Atleast one event is required
Show Source
Nested Schema : Payload
Type: object
Payload configuration for the Webhook. Supported pay load names are:
empty
brief
detailed
Show Source
  • Name for the payload. Brief is the default value for webhook is payload is not set
    Example: brief
Nested Schema : Target
Type: object
Target end point details for the Webhook.
Show Source
Nested Schema : Webhook Events
Type: object
Event details for Webhook.
Show Source
Nested Schema : eventNames
Type: array
List of events. Event names can be retrieved from /events/types?expand=all end point
Show Source
Example:
contentitem_created,contentitem_published,digitalasset_created
Nested Schema : Filter
Type: object
Show Source
Nested Schema : objectIds
Type: array
List of ids of the objectType.
Show Source
Example:
{F1B337DC2AF3DBCC98701AB86D1F21FC05E8AB20694D}
Nested Schema : Security
Type: object
Security configuration for the Webhook target end point.
Show Source
Nested Schema : BasicAuth
Type: object
Basic authentication configuration details. The details will be sent in Authorization header
Show Source
Nested Schema : Headers
Type: object
Header based authorization configuration details.
Show Source
Nested Schema : SignatureSecurity
Type: object
Signature based security configuration details.
Show Source
Nested Schema : headers
Type: array
List of headers.
Show Source
Nested Schema : Request Header
Type: object
Request Header
Show Source

304 Response

Not Modified
Body ()
Root Schema : ExceptionDetail
Type: object
Error details for a REST request. In addition to HTTP error code and error messages, it is often desirable to provide additional information to the client when a request fails. In such these cases, the additional information must be included in the error response body. The additional information is optional, but if provided, it will be in the form of exception detail.
Show Source
Nested Schema : o:errorDetails
Type: array
Multiple errors can be organized in a hierarchical structure.
Show Source
  • ExceptionDetail
    Error details for a REST request. In addition to HTTP error code and error messages, it is often desirable to provide additional information to the client when a request fails. In such these cases, the additional information must be included in the error response body. The additional information is optional, but if provided, it will be in the form of exception detail.

400 Response

Bad Request
Body ()
Root Schema : ExceptionDetail
Type: object
Error details for a REST request. In addition to HTTP error code and error messages, it is often desirable to provide additional information to the client when a request fails. In such these cases, the additional information must be included in the error response body. The additional information is optional, but if provided, it will be in the form of exception detail.
Show Source
Nested Schema : o:errorDetails
Type: array
Multiple errors can be organized in a hierarchical structure.
Show Source
  • ExceptionDetail
    Error details for a REST request. In addition to HTTP error code and error messages, it is often desirable to provide additional information to the client when a request fails. In such these cases, the additional information must be included in the error response body. The additional information is optional, but if provided, it will be in the form of exception detail.

404 Response

Not Found
Body ()
Root Schema : ExceptionDetail
Type: object
Error details for a REST request. In addition to HTTP error code and error messages, it is often desirable to provide additional information to the client when a request fails. In such these cases, the additional information must be included in the error response body. The additional information is optional, but if provided, it will be in the form of exception detail.
Show Source
Nested Schema : o:errorDetails
Type: array
Multiple errors can be organized in a hierarchical structure.
Show Source
  • ExceptionDetail
    Error details for a REST request. In addition to HTTP error code and error messages, it is often desirable to provide additional information to the client when a request fails. In such these cases, the additional information must be included in the error response body. The additional information is optional, but if provided, it will be in the form of exception detail.

500 Response

Internal Server Error
Body ()
Root Schema : ExceptionDetail
Type: object
Error details for a REST request. In addition to HTTP error code and error messages, it is often desirable to provide additional information to the client when a request fails. In such these cases, the additional information must be included in the error response body. The additional information is optional, but if provided, it will be in the form of exception detail.
Show Source
Nested Schema : o:errorDetails
Type: array
Multiple errors can be organized in a hierarchical structure.
Show Source
  • ExceptionDetail
    Error details for a REST request. In addition to HTTP error code and error messages, it is often desirable to provide additional information to the client when a request fails. In such these cases, the additional information must be included in the error response body. The additional information is optional, but if provided, it will be in the form of exception detail.
Back to Top