{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://velox.dev/schema/methods/category.upsert.schema.json", "title": "category.upsert", "description": "Create or replace a category. Omit categoryId to create; supply it to replace. Changing saveDir does not move existing files \u2014 the GUI asks separately and issues download.update per task, so a re-point is never a surprise mass file move.", "x-privileged": true, "x-transports": [ "uds" ], "x-deadlineMs": 5000, "x-errors": [ -32003, -32011 ], "type": "object", "properties": { "params": { "type": "object", "additionalProperties": false, "required": [ "category" ], "properties": { "category": { "$ref": "https://velox.dev/schema/types/Category.schema.json" } } }, "result": { "type": "object", "additionalProperties": false, "description": "The stored category, with categoryId filled in on create.", "required": [ "category" ], "properties": { "category": { "$ref": "https://velox.dev/schema/types/Category.schema.json" } } } } }