Delete Account Group
Delete an account group. Signals that name it stop resolving to its accounts.
Elite
The Management API requires an Elite subscription. See Authentication.
Endpoint
DELETE https://app.crosstrade.io/v1/api/manage/account-groups/{id}
Headers
| Name | Required | Value |
|---|---|---|
| Authorization | Yes | Bearer <your API token> |
| If-Match | No | ETag from a previous read. The request fails with 412 if the group changed since then |
Path parameters
| Name | Type | Description |
|---|---|---|
id | string | The resource id |
Code examples
- Python
- cURL
import requests
resp = requests.delete(
"https://app.crosstrade.io/v1/api/manage/account-groups/acctgrp_Xy12ab34Cd56ef78",
headers={"Authorization": "Bearer YOUR_TOKEN"},
)
print(resp.status_code, resp.json())
curl -X DELETE "https://app.crosstrade.io/v1/api/manage/account-groups/acctgrp_Xy12ab34Cd56ef78" \
-H "Authorization: Bearer YOUR_TOKEN"
Responses
- 200
- Other errors
{
"success": true,
"changed": true,
"changedFields": [
"accounts",
"destination",
"id",
"name"
],
"delivery": {
"status": "immediate",
"target": "signal_gate"
},
"warnings": [],
"meta": {
"requestId": "req_9f2c1a0b7d3e4f51"
}
}
| Status | error | When |
|---|---|---|
| 400 | invalid_path | The id in the path is not valid |
| 400 | unexpected_body | A body was sent |
| 401 | unauthorized | Missing or invalid token |
| 403 | elite_required, not_available | See Authentication |
| 404 | not_found | No such group on your login |
| 409 | concurrent_modification | Another change to your groups is in progress |
| 412 | precondition_failed | If-Match did not match |
| 429 | rate_limited, too_many_concurrent_requests | See Rate limits |
| 503 | management_read_only, management_busy, storage_unavailable, outcome_unknown | See Errors |
When it takes effect
The next incoming webhook signal.