Skip to main content
PUT
TypeScript SDK

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

Idempotency-Key
string

Optional: without it the call is carried out every time it is sent. A key of your own that names this one request; a UUID is ideal. It is 8 to 50 characters of letters, digits, - and _. Send the same key again when you retry (after a timeout, a dropped connection or a 5xx) and the call is carried out once: the retry gets the first answer back, marked X-Idempotency-Cached: true. The same key with a different body is refused with 422, and a retry that arrives while the first call is still running with 409 (see Retry-After).

Required string length: 8 - 50
Pattern: ^[a-zA-Z0-9_-]{8,50}$
Example:

"9b2d6f0a-3c41-4e5a-8d77-1f2e3a4b5c6d"

Path Parameters

partnerId
string<uuid>
required

The partner whose notification settings to change

Body

application/json

What to change. A key you leave out is left as it was.

emailRecipients
string[]

The addresses the emails go to, at most five. An empty list goes back to the defaults.

Maximum array length: 5
emailEvents
enum<string>[] | null

The events you want by email. Null for every event.

What happened. The event types you can be told about.

Available options:
invoice.issued,
invoice.due_soon,
invoice.overdue,
invoice.paid,
invoice.failed,
credits.low,
credits.managed_user_cap_reached,
partner.activated,
partner.paused,
partner.resumed,
storage.check_failed,
composition.created,
composition.updated,
widget.published,
upload.created,
entry.created,
workflow.created,
workflow.published,
workflow.state_changed,
workflow.deleted
webhookEvents
enum<string>[] | null

The events to send to your webhook. Null for every event.

What happened. The event types you can be told about.

Available options:
invoice.issued,
invoice.due_soon,
invoice.overdue,
invoice.paid,
invoice.failed,
credits.low,
credits.managed_user_cap_reached,
partner.activated,
partner.paused,
partner.resumed,
storage.check_failed,
composition.created,
composition.updated,
widget.published,
upload.created,
entry.created,
workflow.created,
workflow.published,
workflow.state_changed,
workflow.deleted
webhookUrl
string | null

Where to send the signed calls. It must be an https address on the standard port, on a public site, and it must not redirect. Null or an empty text switches the webhook off. Setting an address when you have no secret yet makes one.

Maximum string length: 2000

Response

The settings were saved

success
boolean
required

Always true on a success.

Example:

true

data
object
required

The settings after a change, and the new signing secret when one was made.

Example:
meta
object

Extra information about the answer: where a page sits in a list, the cursor of the next page, or warnings about a call that succeeded with a caveat.