Datarova
Labels

prepare_delete_project_label

Prepare project label deletion ยท Changes data

Prepare deletion of one reusable project label and its account-wide assignments without changing business data.

  • Returns exact targets and consequences.
  • Show them, ask for explicit confirmation and wait.
  • Only then call execute_removal with the reference.
  • Projects and attachments remain intact.

Input

NameTypeRequiredDescription
label_idintegerRequiredReusable catalog label ID from the matching label list tool. Minimum 1. Maximum 2147483647.

Output

Read this object from the result's structuredContent. The result's content carries a text version for the model, which is not always the same JSON.

Fields of data:

NameTypeRequiredDescription
plan_referencestringRequiredPattern ^[A-Za-z0-9_-]{43}$.
operationstringRequired
expires_atstring (date-time)Required
targetsobject[]Required
consequencesobject[]Required
instructionsstringRequired
Full input and output JSON Schema
JSONCode
{ "inputSchema": { "type": "object", "$schema": "https://json-schema.org/draft/2020-12/schema", "properties": { "label_id": { "type": "integer", "minimum": 1, "maximum": 2147483647, "description": "Reusable catalog label ID from the matching label list tool." } }, "required": [ "label_id" ], "additionalProperties": false }, "outputSchema": { "type": "object", "required": [ "data" ], "properties": { "data": { "type": "object", "required": [ "plan_reference", "operation", "expires_at", "targets", "consequences", "instructions" ], "properties": { "plan_reference": { "type": "string", "pattern": "^[A-Za-z0-9_-]{43}$" }, "operation": { "type": "string" }, "expires_at": { "type": "string", "format": "date-time" }, "targets": { "type": "array", "items": { "type": "object", "additionalProperties": true } }, "consequences": { "type": "array", "items": { "type": "object", "additionalProperties": true } }, "instructions": { "type": "string" } } } } } }