{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://velox.dev/schema/methods/category.remove.schema.json", "title": "category.remove", "description": "Delete a user-created category. Built-in categories are refused with -32602. Tasks filed under it are reassigned to reassignTo, or to the default category when that is null; no task is ever orphaned.", "x-privileged": true, "x-transports": [ "uds" ], "x-deadlineMs": 5000, "x-errors": [ -32003, -32602 ], "type": "object", "properties": { "params": { "type": "object", "additionalProperties": false, "required": [ "categoryId" ], "properties": { "categoryId": { "type": "string" }, "reassignTo": { "type": [ "string", "null" ] } } }, "result": { "type": "object", "additionalProperties": false, "required": [ "removed", "reassignedTaskIds" ], "properties": { "removed": { "type": "boolean" }, "reassignedTaskIds": { "type": "array", "items": { "type": "string", "format": "uuid" } } } } } }