Standing Policies
Delete Standing Policy
Remove a standing policy for good
DELETE
/
lending-external-securities-v2
/
api
/
markets
/
standing-policies
/
{policyId}
curl -X DELETE "https://api.trusset.org/lending-external-securities-v2/api/markets/standing-policies/cmwh3p7k20004l80dq2x9v1ab" \
-H "X-API-Key: trusset_your_key_here"
const res = await fetch(
`https://api.trusset.org/lending-external-securities-v2/api/markets/standing-policies/${policyId}`,
{ method: 'DELETE', headers: { 'X-API-Key': 'trusset_your_key_here' } }
);
const { success, data, error } = await res.json();
if (!success) throw new Error(`${error.code}: ${error.message}`);
{
"success": true,
"data": {
"policy": {
"id": "cmwh3p7k20004l80dq2x9v1ab",
"instanceId": "cmrz4d1v20000cghx8k6p3m7t",
"kind": "DEPLOYER",
"address": "0x1234f9a07c6b53d81e2a4f70c9b385d6014a7e52",
"label": "ACME Industrial AG",
"termsTemplateId": "cmwh2t9e10002l80d7s3k5m8c",
"acceptanceTerms": null,
"enabled": false,
"createdBy": "cmrz3a8q10000cghxf5w2n9k4",
"updatedBy": "cmrz3a8q10000cghxf5w2n9k4",
"createdAt": "2026-11-15T09:20:11.000Z",
"updatedAt": "2026-11-16T14:02:47.000Z"
}
},
"error": null,
"metadata": {
"timestamp": "2026-11-17T11:05:19.000Z",
"requestId": "550e8400-e29b-41d4-a716-446655440000",
"instanceId": "cmrz4d1v20000cghx8k6p3m7t"
}
}
Deletes one standing policy and returns the record as it was. Deleting is permanent and cannot be undone. To stop a policy from matching markets while keeping it, switch it off with
enabled: false on Update Standing Policy instead, which is the reversible pause.
Deleting a policy changes nothing on chain and nothing on a market already adopted under it. Its template stays in the terms library, and a market that published it keeps its terms of use.
Only an account Trusset approved as a lender of record can write policies. Any other account is refused with 403 CURATOR_NOT_APPROVED.
Path Parameters
Policy ID from List Standing Policies, 1 to 100 characters.
Response Fields
Show child attributes
Show child attributes
The deleted policy as it was stored, with the fields of a row on List Standing Policies except
template.curl -X DELETE "https://api.trusset.org/lending-external-securities-v2/api/markets/standing-policies/cmwh3p7k20004l80dq2x9v1ab" \
-H "X-API-Key: trusset_your_key_here"
const res = await fetch(
`https://api.trusset.org/lending-external-securities-v2/api/markets/standing-policies/${policyId}`,
{ method: 'DELETE', headers: { 'X-API-Key': 'trusset_your_key_here' } }
);
const { success, data, error } = await res.json();
if (!success) throw new Error(`${error.code}: ${error.message}`);
{
"success": true,
"data": {
"policy": {
"id": "cmwh3p7k20004l80dq2x9v1ab",
"instanceId": "cmrz4d1v20000cghx8k6p3m7t",
"kind": "DEPLOYER",
"address": "0x1234f9a07c6b53d81e2a4f70c9b385d6014a7e52",
"label": "ACME Industrial AG",
"termsTemplateId": "cmwh2t9e10002l80d7s3k5m8c",
"acceptanceTerms": null,
"enabled": false,
"createdBy": "cmrz3a8q10000cghxf5w2n9k4",
"updatedBy": "cmrz3a8q10000cghxf5w2n9k4",
"createdAt": "2026-11-15T09:20:11.000Z",
"updatedAt": "2026-11-16T14:02:47.000Z"
}
},
"error": null,
"metadata": {
"timestamp": "2026-11-17T11:05:19.000Z",
"requestId": "550e8400-e29b-41d4-a716-446655440000",
"instanceId": "cmrz4d1v20000cghx8k6p3m7t"
}
}
Error Codes
| Code | HTTP | Cause |
|---|---|---|
VALIDATION_ERROR | 400 | policyId is longer than 100 characters |
STANDING_POLICY_DELETE_FAILED | 400 | The policy could not be deleted for a reason that carries no code of its own |
CURATOR_NOT_APPROVED | 403 | Trusset has not approved this account to act as a lender of record |
STANDING_POLICY_NOT_FOUND | 404 | No policy with this ID exists on this instance, also when another request removed it while this one ran |
RATE_LIMIT_EXCEEDED | 429 | More than 10 writes in the minute |
⌘I
curl -X DELETE "https://api.trusset.org/lending-external-securities-v2/api/markets/standing-policies/cmwh3p7k20004l80dq2x9v1ab" \
-H "X-API-Key: trusset_your_key_here"
const res = await fetch(
`https://api.trusset.org/lending-external-securities-v2/api/markets/standing-policies/${policyId}`,
{ method: 'DELETE', headers: { 'X-API-Key': 'trusset_your_key_here' } }
);
const { success, data, error } = await res.json();
if (!success) throw new Error(`${error.code}: ${error.message}`);
{
"success": true,
"data": {
"policy": {
"id": "cmwh3p7k20004l80dq2x9v1ab",
"instanceId": "cmrz4d1v20000cghx8k6p3m7t",
"kind": "DEPLOYER",
"address": "0x1234f9a07c6b53d81e2a4f70c9b385d6014a7e52",
"label": "ACME Industrial AG",
"termsTemplateId": "cmwh2t9e10002l80d7s3k5m8c",
"acceptanceTerms": null,
"enabled": false,
"createdBy": "cmrz3a8q10000cghxf5w2n9k4",
"updatedBy": "cmrz3a8q10000cghxf5w2n9k4",
"createdAt": "2026-11-15T09:20:11.000Z",
"updatedAt": "2026-11-16T14:02:47.000Z"
}
},
"error": null,
"metadata": {
"timestamp": "2026-11-17T11:05:19.000Z",
"requestId": "550e8400-e29b-41d4-a716-446655440000",
"instanceId": "cmrz4d1v20000cghx8k6p3m7t"
}
}
