Skip to main content
PATCH
TypeScript

Path Parameters

webhookCustomHeadersId
string<uuid>
required

The unique identifier of the custom headers set

Example:

"44fcead0-7053-4831-a53a-df7fb90d440f"

Body

application/json

A partial update. Every field is optional and an omitted field is left as it is. A change to headers applies to every webhook and OAuth credential set using the set.

name
string

A label for this set. Omit to leave it unchanged.

Required string length: 1 - 128
Example:

"Production gateway key"

headers
object

A delta applied to the headers. A header with a value is added or replaced, a header with null is deleted, and one you leave out is untouched. A value replaces what is stored under that name rather than adding to it, so an array is the complete new set of lines for that header. Names are case-insensitive, so a null under one casing deletes a header stored under another, and names are stored and returned lowercased. The set cannot be emptied: a change that would leave no headers is refused with a 400. To remove the set, delete it. The whole field cannot be null. Same rules as on create: a string or a non-empty array, Cookie and Authorization string-only, 10 headers and under 16 KB in the resulting set, the same reserved names (see the create request) never allowed, and values write-only. Entries set to null do not count towards the limit. The change applies to everything already using the set. Where Fireblocks sends its own Authorization header, a custom Authorization header is not sent: on a webhook that has webhookOauthId set (an OAuth bearer token), and on the token request of OAuth credentials that use client_secret_basic.

Example:

Response

Updated custom headers set

A stored set of custom HTTP headers, referenced by webhooks and by OAuth credentials through their webhookCustomHeadersId. On a webhook the headers go out with every notification; on OAuth credentials they go out on the token request to your authorization server. Header values are write-only: only the names are returned.

id
string<uuid>
required

The id of the custom headers set. Pass this as a webhook's, or OAuth credentials', webhookCustomHeadersId to attach it.

Example:

"123e4567-e89b-12d3-a456-426614174000"

name
string
required

The label given to this set.

Example:

"Production gateway key"

headerNames
string[]
required

Names of the headers in the set, lowercased. Header values are never returned.

Example:
createdAt
integer<int64>
required

The date and time the set was created, in milliseconds.

Example:

1625097600000

updatedAt
integer<int64>
required

The date and time the set was last updated, in milliseconds.

Example:

1625097600000