Update OAuth credentials
Updates only the fields present in the request; anything omitted is left as it is. Sending clientSecret on its own rotates the secret for every webhook using these credentials.
customJwtClaims, customBodyParams and customHeaders are all merged key by key rather than replaced, the same way a webhook's own customHeaders behaves: a key sent with a value is added or overwritten, a key sent with a null value is deleted, and a key you omit is left alone. Setting one of the three to null as a whole clears that map, which is the quick way to empty it without naming every key. There is no ambiguity between the two uses of null — one names an entry to delete, the other names the field. A claim cannot be set to JSON null, though, on this endpoint or on create, because null is spent on deletion. webhookMtlsId is a scalar rather than a map, so null there does remove it.
Endpoint Permissions: Owner, Admin, Non-Signing Admin.
Request
- Base URLhttps://api.fireblocks.io/v1
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
The unique identifier of the OAuth credentials
Request body
Example request
{
"name": "Production treasury gateway",
"clientId": "my-client-id",
"clientSecret": "my-new-client-secret",
"url": "https://auth.example.com/oauth/token",
"authMethod": "client_secret_jwt",
"customJwtClaims": {
"aud": "https://auth.example.com",
"resource": null
},
"customBodyParams": {
"scope": "payments.read payments.write",
"audience": null
},
"customHeaders": {
"x-api-key": "gateway-key",
"x-tenant": null
},
"webhookMtlsId": "6f1b7c62-0f2e-4f1a-9a5e-9f2b1c3d4e5f"
}Response
Updated OAuth credentials object
Example response
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Production treasury gateway",
"clientId": "my-client-id",
"url": "https://auth.example.com/oauth/token",
"authMethod": "client_secret_basic",
"customJwtClaims": [
"aud",
"resource"
],
"customBodyParams": [
"scope"
],
"customHeaders": [
"X-Api-Key"
],
"webhookMtlsId": "6f1b7c62-0f2e-4f1a-9a5e-9f2b1c3d4e5f",
"createdAt": 1625097600000,
"updatedAt": 1625097600000
}Changes
No recorded changes to this operation across all 1 revision of this API.