API ReferenceConnected Accounts
Update a connected account
Update a connected account. Supports updating the alias and/or credentials. Only specified fields will be updated. Set a credential field to null to remove it. Alias must be unique within the same project, entity, and toolkit scope.
x-api-key<token>
Project API key authentication
In: header
Path Parameters
nanoidstringRequired
The unique identifier (nanoid) of the connected account
Format:
connectedAccountIdRequest Body
application/json
aliasstring
A human-readable alias for this connected account. Pass an empty string to clear the alias. Must be unique per entity and toolkit within the project.
connectionobject
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X PATCH "https://backend.composio.dev/api/v3/connected_accounts/ca_1a2b3c4d5e6f" \ -H "Content-Type: application/json" \ -d '{ "connection": { "state": { "authScheme": "BEARER_TOKEN", "val": { "token": "new_access_token" } } } }'{
"success": true,
"id": "ca_1a2b3c4d5e6f",
"status": "ACTIVE"
}{
"error": {
"message": "string",
"code": 0,
"slug": "string",
"status": 0,
"request_id": "string",
"suggested_fix": "string",
"errors": [
"string"
]
}
}{
"error": {
"message": "string",
"code": 0,
"slug": "string",
"status": 0,
"request_id": "string",
"suggested_fix": "string",
"errors": [
"string"
]
}
}{
"error": {
"message": "string",
"code": 0,
"slug": "string",
"status": 0,
"request_id": "string",
"suggested_fix": "string",
"errors": [
"string"
]
}
}{
"error": {
"message": "string",
"code": 0,
"slug": "string",
"status": 0,
"request_id": "string",
"suggested_fix": "string",
"errors": [
"string"
]
}
}{
"error": {
"message": "string",
"code": 0,
"slug": "string",
"status": 0,
"request_id": "string",
"suggested_fix": "string",
"errors": [
"string"
]
}
}