Skip to main content

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​

NameTypeInDescription
rule_idstringpathRequired. Rule ID (24-character hex)

Headers​

NameDescription
AuthorizationRequired. 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​

StatusCodeDescription
40010015Validation failed — see details. Also returned when no rule has this ID (rule not found)
40010016rule_id is not a 24-character hex ID
40010001 (domain 2)The rule's node was not found
40010001 (domain 5)The rule's token was not found
40310005 (domain 2)The rule's node, or its token's node, is outside your API key's node subtree
50010000Unexpected server error

See Errors for the error format and common codes.