account groups
Update group
Updates the name or account list of an existing group. You can rename the group, change its accounts, or both.
AuthorizationBearer <token>
API key authentication - use your Late API key as a Bearer token
In: header
Path Parameters
groupIdstring
name?string
accountIds?array<string>
Response Body
application/json
application/json
application/json
curl -X PUT "https://getlate.dev/api/v1/account-groups/string" \ -H "Content-Type: application/json" \ -d '{ "name": "Updated Marketing Accounts", "accountIds": [ "64e1f0a9e2b5af0012ab34cd", "64e1f0a9e2b5af0012ab34ce", "64e1f0a9e2b5af0012ab34cf" ] }'{
"message": "Account group updated successfully",
"group": {
"_id": "6507a1b2c3d4e5f6a7b8c9d0",
"name": "Updated Marketing Accounts",
"accountIds": [
"64e1f0a9e2b5af0012ab34cd",
"64e1f0a9e2b5af0012ab34ce",
"64e1f0a9e2b5af0012ab34cf"
]
}
}{
"error": "Unauthorized"
}{
"error": "Not found"
}Empty