/

Endpoints

Update an endpoint

PATCH

/v3/endpoints/{id}

Change the URL, the event types or the rate limit. Fields you leave out stay the same.

Parameters

Name

Type

Description

url

string

New URL

event_types

array

Replaces the current list

disabled

boolean

Pause deliveries without deleting

Request

curl -X PATCH https://api.sluicehq.dev/v3/endpoints/ep_Qm81 \
  -H "Authorization: Bearer sk_test_4f9a2c7e1b" \
  -d disabled=true
curl -X PATCH https://api.sluicehq.dev/v3/endpoints/ep_Qm81 \
  -H "Authorization: Bearer sk_test_4f9a2c7e1b" \
  -d disabled=true
curl -X PATCH https://api.sluicehq.dev/v3/endpoints/ep_Qm81 \
  -H "Authorization: Bearer sk_test_4f9a2c7e1b" \
  -d disabled=true

Response

{
  "id": "ep_Qm81",
  "disabled": true
}
{
  "id": "ep_Qm81",
  "disabled": true
}
{
  "id": "ep_Qm81",
  "disabled": true
}

Create a free website with Framer, the website builder loved by startups, designers and agencies.