v33

latestOpenAPI 3.1.0raw.githubusercontent.com2026-04-1770249709.0 KB
Accounts

Update an account

Updates an existing account's information. This endpoint allows you to update various account details during onboarding or after the account has been created.

put/v1/accounts/{account_id}

Path parameters

account_idstring uuid required

Headers

request-idstring

Optional client generated identifier to trace and debug a request.

correlation-idstring

Optional client generated identifier to trace and debug a series of requests.

idempotency-keystring

Optional client generated value to use for idempotent requests.

Request body

metadataobject nullable

Up to 20 additional user-defined key-value pairs. Useful for storing additional information about the account in a structured format.

external_idstring nullable

Unique identifier for the account in your database, used for cross-referencing between Straddle and your systems.

Response

OK

response_type'object' | 'array' | 'error' | 'none' required

Indicates the structure of the returned content.

  • "object" means the data field contains a single JSON object.
  • "array" means the data field contains an array of objects.
  • "error" means the data field contains an error object with details of the issue.
  • "none" means no data is returned.