Delete OTC Order Rule by ID
Deletes an OTC order rule. The rule stops being applied to new offers and no longer appears in List OTC Order Rules. The rule's node (and, for a token-limited rule, the token's node) must be inside your API key's node subtree.
Required permission: otc-order-rule:upsert
Request
DELETE /v2/admin/otc-order-rules/{rule_id}
Parameters
| Name | Type | In | Description |
|---|---|---|---|
rule_id | string | path | Required. Rule ID (24-character hex) |
Headers
| Name | Description |
|---|---|
Authorization | Required. Bearer <access_token> |
Example
curl --request DELETE \
--url '{{baseUrl}}/v2/admin/otc-order-rules/6910a6ab5f635dd4dc251581' \
--header 'Authorization: Bearer <access_token>'
Response
204 No Content
Errors
| Status | Code | Description |
|---|---|---|
| 400 | 10015 | Validation failed — see details. Also returned when no rule has this ID (rule not found) |
| 400 | 10016 | rule_id is not a 24-character hex ID |
| 400 | 10001 (domain 2) | The rule's node was not found |
| 400 | 10001 (domain 5) | The rule's token was not found |
| 403 | 10005 (domain 2) | The rule's node, or its token's node, is outside your API key's node subtree |
| 500 | 10000 | Unexpected server error |
See Errors for the error format and common codes.