https://b-api.longbridge.xyz/v2/forex/support_currency_updateAuthorization
Send the Broker ACCESS_TOKEN as Authorization: Bearer <token>.
Request body application/json
Each item contains id/from_currency/to_currency/action/default_currency; newly added items use action=1, items with a changed to_currency use action=2, and removed old items use action=3; in one case a single item is always passed with action=2 and default_currency=true to set the default target currency.
The ID of an existing target-currency record; empty when creating (action=1).
Specifies the source currency as a three-letter currency code. Candidate values come from the ref tenant_currencies_for_exchange. This field is required.
Specifies the target currency as a three-letter currency code. Candidate values come from the ref tenant_currencies_for_exchange. This field is required.
Action type. See the options below.
Allowed values:
1- Add.2- Modify / Set as Default3- Delete.
1 · Add.2 · Modify / Set as Default3 · Delete.
Only passed as true in the "Set as Default" scenario.
Sent only in the edit scenario; contains before/after target-currency arrays, used for back-office audit trails.
Responses
HTTP 200The request was processed successfully. The response data does not contain additional business fields.codemessagedatadataobjectdata structureNo nested fields
HTTP 400Bad request. Check the business error code in code and the error details in message.codemessagedatadataobjectdata structureNo nested fields
HTTP 401The user is not authenticated, or the login session has expired.codemessagedatadataobjectdata structureNo nested fields
HTTP 403The current account is not authorized to use this feature. Grant the required permission to the account in User Permission.codemessagedatadataobjectdata structureNo nested fields
HTTP 408The request timed out. Check the business error code in code and the error details in message.codemessagedatadataobjectdata structureNo nested fields