For AI agents: markdown of this page — /docs-content-en/entities/requisite-presets/delete.md documentation index — /llms.txt

Delete requisite preset

DELETE /v1/requisite-presets/:id

Deletes a preset by ID. A deleted preset cannot be restored via the API — create a new one if needed.

Parameters

Parameter Type Required Description
id (path) number yes Preset ID. List: GET /v1/requisite-presets

Examples

curl — personal key

Terminal
curl -X DELETE "https://vibecode.bitrix24.com/v1/requisite-presets/31" \
  -H "X-Api-Key: YOUR_API_KEY"

curl — OAuth app

Terminal
curl -X DELETE "https://vibecode.bitrix24.com/v1/requisite-presets/31" \
  -H "X-Api-Key: YOUR_APP_KEY" \
  -H "Authorization: Bearer USER_SESSION_TOKEN"

JavaScript — personal key

javascript
const res = await fetch('https://vibecode.bitrix24.com/v1/requisite-presets/31', {
  method: 'DELETE',
  headers: {
    'X-Api-Key': 'YOUR_API_KEY',
  },
})

if (res.status === 204) {
  console.log('Preset deleted')
}

JavaScript — OAuth app

javascript
const res = await fetch('https://vibecode.bitrix24.com/v1/requisite-presets/31', {
  method: 'DELETE',
  headers: {
    'X-Api-Key': 'YOUR_APP_KEY',
    'Authorization': 'Bearer USER_SESSION_TOKEN',
  },
})

if (res.status === 204) {
  console.log('Deleted')
}

Response

On successful deletion the API returns HTTP status 204 No Content with an empty body. Success is indicated by the response code, not the content.

Response example

HTTP/1.1 204 No Content

Error response example

404 — preset not found:

JSON
{
  "success": false,
  "error": {
    "code": "ENTITY_NOT_FOUND",
    "message": "The Preset with ID '999999' is not found"
  }
}

Errors

HTTP Code Description
404 ENTITY_NOT_FOUND No preset with this ID found
403 SCOPE_DENIED API key lacks the crm scope
401 TOKEN_MISSING API key has no configured tokens

Full list of common API errors — Errors.

Known specifics

Deactivation as an alternative to deletion. If the preset is used by requisites and you don't need to delete it, use the active: false field via update — the preset will no longer appear in the list when creating a requisite.

See also