Skip to main content

Update Account Group

Rename an account group or replace its accounts.

Elite

The Management API requires an Elite subscription. See Authentication.

Endpoint​

PATCH https://app.crosstrade.io/v1/api/manage/account-groups/{id}

Headers​

NameRequiredValue
AuthorizationYesBearer <your API token>
Content-TypeYesapplication/json
If-MatchNoETag from a previous read. The request fails with 412 if the group changed since then

Path parameters​

NameTypeDescription
idstringThe resource id

Body parameters​

NameTypeRequiredDescription
namestringNoNew name
accountsarray of stringsNoReplaces the whole list

destination cannot be changed (422 immutable_field). Delete the group and create a new one instead. Sending the saved destination back is ignored, as are id and created when they equal the saved values and updated always, so you can PATCH the whole object from a GET. If nothing differs, the response says changed: false.

Code examples​

import requests

resp = requests.patch(
"https://app.crosstrade.io/v1/api/manage/account-groups/acctgrp_Xy12ab34Cd56ef78",
headers={"Authorization": "Bearer YOUR_TOKEN"},
json={'accounts': ['PROP1234']},
)
print(resp.status_code, resp.json())

Responses​

{
"success": true,
"changed": true,
"data": {
"id": "acctgrp_Xy12ab34Cd56ef78",
"name": "Evals",
"destination": "nt8",
"accounts": [
"PROP1234"
],
"created": "2026-09-01T13:02:11Z",
"updated": "2026-10-02T14:31:07Z"
},
"changedFields": [
"accounts"
],
"delivery": {
"status": "immediate",
"target": "signal_gate"
},
"warnings": [],
"meta": {
"requestId": "req_9f2c1a0b7d3e4f51",
"etag": "\"c2:Tm90UmVhbEV0YWcwMg\""
}
}

When it takes effect​

The next incoming webhook signal.

Notes​

  • Sending accounts for an nt8 group checks them with your add-on, so it needs the add-on connected even when the list is unchanged. A rename alone does not.