Skip to main content
PATCH
/
v1
/
trading-accounts
/
{trading_account_id}
/
credentials
/
{credential_id}
Update a broker credential
curl --request PATCH \
  --url https://api.anthid.com/v1/trading-accounts/{trading_account_id}/credentials/{credential_id} \
  --header 'Content-Type: application/json' \
  --data '
{
  "Lightspeed": {
    "account_id": "LS-123456",
    "api_key": "lightspeed-api-key",
    "environment": "paper"
  }
}
'
{
  "EncryptionError": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.anthid.com/llms.txt

Use this file to discover all available pages before exploring further.

Path Parameters

trading_account_id
string<uuid>
required

Trading account id that owns the credential

credential_id
string<uuid>
required

Broker credential id to update

Body

application/json

Replacement broker-specific credential payload. Lightspeed credentials are currently supported.

Lightspeed
object
required

Response

Credential updated