Change a destination
Change a destination's URL or rate limit, for every source sending there.
Changes the destination's URL or rate limit, for every source sending there. Each
setting left out keeps its value, so a change without url never touches the URL,
which the API only shows masked.
A new URL sends webhooks held while the destination was down there right away.
Only admins can change destinations.
A connected app needs the write scope: full access.
AuthorizationBearer <unm_ followed by 40 letters and digits>A token from the CLI page in Unmissed. Revoke it there to stop it working.
destination*integerThe destination's id, from List destinations.
int64application/json- body
Only the settings to change. Each one left out keeps its value.
url?stringlength <= 2048rate_limit?|null for no limit.
1 <= value <= 100000rate_limit_per?|"second""minute"nullThe destination as saved.
application/json- response
An app webhooks are sent to. Any number of sources can send to it.
id*integerint64url*stringWhere it sends, as its host only, like https://app.example.com/…. The rest of an address often holds a secret.
rate_limit*|The most webhooks sent per rate_limit_per, from every source together, or null for no limit.
rate_limit_per*|"second""minute"nulldown_since*|When it stopped accepting webhooks, while it's down.
date-timelast_delivered_at*|date-timesources*array<>The sources sending here, each with its filter.
created_at*stringdate-timeupdated_at*stringdate-timecurl -X PATCH 'http://localhost:8080/api/v1/destinations/0' \
-H 'Authorization: Bearer ' \
-H 'Content-Type: application/json' \
-d '{
"rate_limit": 5,
"rate_limit_per": "second"
}'{
"id": 0,
"url": "string",
"rate_limit": 0,
"rate_limit_per": "second",
"down_since": "2019-08-24T14:15:22Z",
"last_delivered_at": "2019-08-24T14:15:22Z",
"sources": [
{
"id": 0,
"name": "string",
"filter_on": "body",
"filter_field": "string",
"filter_values": "string"
}
],
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z"
}