Datarova
Labels

update_project_label

Update project label ยท Changes data, idempotent

Edit an existing account-owned reusable project label.

  • Project labels are reused across project groups.
  • Find label_id with list_project_labels.
  • Omitted fields stay unchanged; supply at least one editable field.
  • Does not change label assignments or require removal confirmation.
  • Do not blindly repeat creation after a lost response; read the catalog first.

Cost and limits: Consumes 5 credits after the write succeeds, even if its response is lost.

Input

NameTypeRequiredDescription
label_namestringOptionalLabel name, trimmed to 1 to 25 Unicode characters. Maximum length 256.
colorstringOptionalLabel color. Creation defaults to gray; omitted edits keep it. One of gray, green, yellow, orange, red, purple, lilac.
pinbooleanOptionalWhether pinned in the app catalog. Creation defaults to false.
label_idintegerRequiredLabel ID from this catalog's 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
label_idintegerRequiredMinimum 1. Maximum 2147483647.
label_namestring | nullRequired
colorstring | nullRequired
pinboolean | nullRequired
Full input and output JSON Schema
JSONCode
{ "inputSchema": { "type": "object", "$schema": "https://json-schema.org/draft/2020-12/schema", "properties": { "label_name": { "type": "string", "maxLength": 256, "description": "Label name, trimmed to 1 to 25 Unicode characters." }, "color": { "description": "Label color. Creation defaults to gray; omitted edits keep it.", "type": "string", "enum": [ "gray", "green", "yellow", "orange", "red", "purple", "lilac" ] }, "pin": { "description": "Whether pinned in the app catalog. Creation defaults to false.", "type": "boolean" }, "label_id": { "type": "integer", "minimum": 1, "maximum": 2147483647, "description": "Label ID from this catalog's list tool." } }, "required": [ "label_id" ], "additionalProperties": false }, "outputSchema": { "type": "object", "required": [ "data" ], "properties": { "data": { "$ref": "#/$defs/CatalogLabel" } }, "$defs": { "CatalogLabel": { "type": "object", "description": "A reusable account label. Existing app-created labels may contain null fields or colors outside the values accepted for new writes. The default app color is returned as `gray`. Updating a label preserves fields you omit.", "required": [ "label_id", "label_name", "color", "pin" ], "properties": { "label_id": { "type": "integer", "minimum": 1, "maximum": 2147483647 }, "label_name": { "type": [ "string", "null" ] }, "color": { "type": [ "string", "null" ] }, "pin": { "type": [ "boolean", "null" ] } } } } } }