Create and Update Accounts

POST /api/v1_1/accounts

post
Accounts

https://{domain}.customersuccessbox.com/api/v1_1/accounts
POST Accounts allow you to create and/or update a batch of accounts in a single request. Our recommendation for batch size is to limit each batch to a maximum of 200 records.
Request
Response
Request
Headers
Authorization
required
string
Bearer {api_key}
Content-Type
required
string
application/json
Body Parameters
parent_account_id
optional
string
Unique identifier for parent account
account_id
required
string
Unique identifier for account
Response
200: OK
{
"success": true
}

Body example

Refer to available fields in Account Resource for attributes that can be set and updated for an Account using this call.

Only those fields are allowed which aren't marked as Read-only.

[{
"parent_account_id": "ACME3463qw",
"account_id": "ACME343rq",
"name": "Acme Inc."
},
{
"parent_account_id": "ROBUSTO5456gd",
"account_id": "ROBUSTO536fg",
"name": "Robusto LLC"
},
{
"account_id": "BREW536fg",
"name": "Brew Factory"
}]

CURL request example

curl --location --request POST "https://{domain}.customersuccessbox.com/api/v1_1/accounts" \
--header "Authorization: Bearer {api_key}" \
--header "Content-Type: application/json" \
--data "[{
\"parent_account_id\": \"ACME3463qw\",
\"account_id\": \"ACME343rq\",
\"name\": \"Acme Inc.\",
},
{
\"parent_account_id\": \"ROBUSTO5456gd\",
\"account_id\": \"ROBUSTO536fg\",
\"name\": \"Robusto LLC\"
},
{
\"account_id\": \"BREW536fg\",
\"name\": \"Brew Factory\"
}]"