Update taxonomy item
update_taxonomy_itemChange a tag, correspondent, document type, storage path, or custom field in Paperless-ngx. Update only the named settings; other taxonomy items and document values stay unchanged.
Instructions
Change a tag, correspondent, document type, storage path or custom field.
Only the settings you name change. The kind decides which settings apply. Select options are added, renamed or removed one by one and the others keep their ids, so documents keep their values; renaming an option changes its label for every document. The data type of a custom field cannot change (create a new field instead). A tag cannot become its own ancestor. Returns the object as stored, with the number of documents that use it.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"kind": "<kind>",
"item": "<item>"
},
"name": "update_taxonomy_item"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| item | Yes | Name or id; see list_taxonomy. | |
| kind | Yes | What to work on; it decides which of the other settings apply. | |
| name | No | New name, 1 to 128 characters. | |
| path | No | Storage paths: the folder template for stored files, e.g. '{{ created_year }}/{{ correspondent }}/{{ title }}'. Paperless refuses unknown variables. | |
| match | No | Tags, correspondents, document types, storage paths: the words, phrase or regular expression the matching algorithm uses. | |
| colour | No | Tags: the colour as #rrggbb. | |
| parent | No | Tags: name or id of the parent tag; see list_taxonomy. | |
| confirm | No | Must be true to go ahead. Without it nothing changes and the error says what would happen. Describe that to the user and pass true only once they agree, or if they already asked for exactly this. | |
| clear_parent | No | Tags: make the tag a top-level tag (not with parent). | |
| is_inbox_tag | No | Tags: whether documents with it count as inbox documents. | |
| case_insensitive | No | Tags, correspondents, document types, storage paths: ignore case. | |
| matching_algorithm | No | Tags, correspondents, document types, storage paths: how Paperless assigns it to new documents by itself. none: never (the default when creating); any or all: any or all of the words in match; literal: the exact phrase; regex: a regular expression; fuzzy: similar words; auto: learned from your documents. | |
| select_options_add | No | Select fields: labels of options to add. | |
| select_options_remove | No | Select fields: labels (or ids) of options to remove; needs confirm. | |
| select_options_rename | No | Select fields: option label (or id) to its new label. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| name | Yes | The name; the username for users. | |
| path | No | Storage paths: the path template. | |
| match | No | The text or pattern the algorithm uses. | |
| colour | No | Tags: the colour, e.g. #a6cee3. | |
| parent | No | Tags: id of the parent tag. | |
| data_type | No | Custom fields: the data type. | |
| is_inbox_tag | No | Tags: documents with it count as the inbox. | |
| document_count | Yes | Documents the user may see that use it; null for views, users, groups. | |
| select_options | No | Custom fields of type select: the options, ids and labels. | |
| case_insensitive | No | Whether matching ignores case. | |
| matching_algorithm | No | How Paperless assigns it to new documents by itself; none: never. |