Update a destination
Changed onUpdate a destination's parameters
Request
- Base URLhttps://global.api.konghq.com
- Auth
- HTTP bearer
- or HTTP bearer
- or HTTP bearer
- or HTTP bearer
Path parameters
ID of the destination, a UUID v7.
Request body
Destination type. This value must match the type set when the destination was created. You cannot change the destination type.
Name of the destination.
Full URL of the endpoint that receives notifications.
Custom headers to add or change. Headers that you do not include keep their current values. Set a header to null to remove it. An empty object changes nothing.
Set to enabled to allow notifications to be sent, or disabled to pause them. Setting a destination that was automatically disabled back to enabled restarts delivery attempts.
Example request
{
"type": "http",
"name": "Production webhooks",
"custom_headers": {
"X-Environment": "staging"
},
"state": "enabled"
}Response
A single destination.
UUID v7 identifier of the destination.
Name of the destination.
Destination status. pending_verification means the destination is waiting for verification; enabled means it can receive notifications; disabled means it is paused; disabled_system means it was disabled automatically.
Endpoint URL of the destination.
Host part of the target URL.
Names of the configured custom headers. Header values are not returned.
Time of the most recent successful notification delivery, if any.
Time of the most recent failed notification delivery, if any.
Reason for the most recent failed notification delivery, if any.
An ISO-8601 timestamp representation of entity creation date.
An ISO-8601 timestamp representation of entity update date.
Example response
{
"created_at": "2022-11-04T20:10:06.927Z",
"updated_at": "2022-11-04T20:10:06.927Z"
}Changes
- info
endpoint added
- info