Skip to Content
Unmissed Cloud is coming soon.Join the waitlistJoin
Unmissed

Change a destination

Change a destination's URL or rate limit, for every source sending there.

PATCH
/api/v1/destinations/{destination}

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.

Authorization

headerAuthorizationBearer <unm_ followed by 40 letters and digits>

A token from the CLI page in Unmissed. Revoke it there to stop it working.

Path Parameters

destination*integer

The destination's id, from List destinations.

Formatint64

Request Body

application/json
  1. body

Only the settings to change. Each one left out keeps its value.

url?string
Lengthlength <= 2048
rate_limit?|

null for no limit.

Range1 <= value <= 100000
rate_limit_per?|
Value in"second""minute"null

Response Body

The destination as saved.

application/json
  1. response

An app webhooks are sent to. Any number of sources can send to it.

id*integer
Formatint64
url*string

Where 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*|
Value in"second""minute"null
down_since*|

When it stopped accepting webhooks, while it's down.

Formatdate-time
last_delivered_at*|
Formatdate-time
sources*array<>

The sources sending here, each with its filter.

created_at*string
Formatdate-time
updated_at*string
Formatdate-time
Example Request
curl -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"
}'
Example Response
{
  "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"
}