categories.json•4.14 kB
{
"paths": {
"/v1/teams/{team_name}/categories/batch_move": {
"post": {
"tags": ["Category"],
"summary": "Batch move categories",
"security": [{ "bearerAuth": [] }],
"parameters": [
{ "$ref": "./openapi.json#/components/parameters/teamName" }
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"required": ["from", "to"],
"properties": {
"from": {
"type": "string",
"description": "Source category path"
},
"to": {
"type": "string",
"description": "Destination category path"
}
}
}
}
}
},
"responses": {
"200": {
"description": "Categories moved",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"count": {
"type": "integer",
"description": "Number of moved categories including subcategories"
},
"from": {
"type": "string"
},
"to": {
"type": "string"
}
}
}
}
}
},
"400": {
"content": {
"application/json": {
"schema": {
"$ref": "./openapi.json#/components/schemas/ErrorResponseBody"
}
}
}
},
"401": {
"content": {
"application/json": {
"schema": {
"$ref": "./openapi.json#/components/schemas/ErrorResponseBody"
}
}
}
},
"402": {
"content": {
"application/json": {
"schema": {
"$ref": "./openapi.json#/components/schemas/ErrorResponseBody"
}
}
}
},
"403": {
"content": {
"application/json": {
"schema": {
"$ref": "./openapi.json#/components/schemas/ErrorResponseBody"
}
}
}
},
"404": {
"content": {
"application/json": {
"schema": {
"$ref": "./openapi.json#/components/schemas/ErrorResponseBody"
}
}
}
},
"405": {
"content": {
"application/json": {
"schema": {
"$ref": "./openapi.json#/components/schemas/ErrorResponseBody"
}
}
}
},
"406": {
"content": {
"application/json": {
"schema": {
"$ref": "./openapi.json#/components/schemas/ErrorResponseBody"
}
}
}
},
"409": {
"content": {
"application/json": {
"schema": {
"$ref": "./openapi.json#/components/schemas/ErrorResponseBody"
}
}
}
},
"429": {
"content": {
"application/json": {
"schema": {
"$ref": "./openapi.json#/components/schemas/ErrorResponseBody"
}
}
}
},
"500": {
"content": {
"application/json": {
"schema": {
"$ref": "./openapi.json#/components/schemas/ErrorResponseBody"
}
}
}
}
}
}
}
}
}