Replace Webhook
PUT/v1/webhooks/:webhookId
This endpoint replaces the whole value of a Webhook identified by the webhookId
parameter.
Important: As this endpoint is doing a complete replace, it's important to set every other attribute that you don't want to change in its original state. Not listing one means it will reset.
Request
Path Parameters
The identifier of the Webhook.
- application/json
- text/json
- application/*+json
Body
required
Array [
]
Possible values: >= 7 characters
and <= 1000 characters
The URL of the Webhook.
Possible values: <= 15000 characters
The HTTP body content.
Possible values: [get
, post
]
webHookHeaders
object[]
nullable
List of HTTP headers.
Possible values: non-empty
and <= 255 characters
The HTTP header key.
Possible values: non-empty
and <= 1000 characters
The HTTP header value.
Indicates whether the header value is sensitive.
Body
required
Array [
]
Possible values: >= 7 characters
and <= 1000 characters
The URL of the Webhook.
Possible values: <= 15000 characters
The HTTP body content.
Possible values: [get
, post
]
webHookHeaders
object[]
nullable
List of HTTP headers.
Possible values: non-empty
and <= 255 characters
The HTTP header key.
Possible values: non-empty
and <= 1000 characters
The HTTP header value.
Indicates whether the header value is sensitive.
Body
required
Array [
]
Possible values: >= 7 characters
and <= 1000 characters
The URL of the Webhook.
Possible values: <= 15000 characters
The HTTP body content.
Possible values: [get
, post
]
webHookHeaders
object[]
nullable
List of HTTP headers.
Possible values: non-empty
and <= 255 characters
The HTTP header key.
Possible values: non-empty
and <= 1000 characters
The HTTP header value.
Indicates whether the header value is sensitive.
Responses
- 200
- 400
- 404
- 429
When the replace was successful.
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
The identifier of the Webhook.
The URL of the Webhook.
Possible values: [get
, post
]
The HTTP body content.
webHookHeaders
object[]
nullable
List of HTTP headers that the Webhook must send.
Possible values: non-empty
and <= 255 characters
The HTTP header key.
Possible values: non-empty
and <= 1000 characters
The HTTP header value.
Indicates whether the header value is sensitive.
config
object
The Config where the applied changes will invoke the Webhook.
The Config's name.
The Config's identifier.
environment
object
The Environment where the applied changes will invoke the Webhook.
The Environment's name.
The Environment's identifier.
{
"webhookId": 0,
"url": "string",
"httpMethod": "get",
"content": "string",
"webHookHeaders": [
{
"key": "string",
"value": "string",
"isSecure": true
}
],
"config": {
"name": "string",
"configId": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
},
"environment": {
"name": "string",
"environmentId": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}
}
Bad request.
Not found.
Too many requests. In case of the request rate exceeds the rate limits.