{
"put": { "operationId": "updateTaskById", "description": "Update task with specified fields", "tags": ["Task"], "parameters": [ { "$ref": "../../common/components.json#/components/request/parameters/token_param" }, { "$ref": "../../common/components.json#/components/request/parameters/id_param" }, { "$ref": "../../common/components.json#/components/request/parameters/object_param" }, { "name": "task_id", "in": "path", "schema": { "type": "string" }, "required": true, "description": "Numeric ID of the task" } ], "requestBody": { "required": true, "description": "Task fields to update", "content": { "application/json": { "schema": { "$ref": "../../common/schemas/tasks/task.json#/components/schemas/request/put" } }, "application/xml": { "schema": { "$ref": "../../common/schemas/tasks/task.json#/components/schemas/request/put" } } } }, "responses": { "200": { "description": "Object was updated correctly", "content": { "application/json": { "schema": { "$ref": "../../common/schemas/tasks/task.json#/components/schemas/response" } }, "application/xml": { "schema": { "$ref": "../../common/schemas/tasks/task.json#/components/schemas/response" } } } }, "400": { "description": "Bad request" }, "404": { "description": "Not found" }, "500": { "description": "Internal Server Error" } } }, "delete": { "operationId": "deleteTaskById", "description": "Delete task", "tags": ["Task"], "parameters": [ { "$ref": "../../common/components.json#/components/request/parameters/token_param" }, { "$ref": "../../common/components.json#/components/request/parameters/id_param" }, { "$ref": "../../common/components.json#/components/request/parameters/object_param" }, { "name": "task_id", "in": "path", "schema": { "type": "string" }, "required": true, "description": "Numeric ID of the task" } ], "responses": { "200": { "description": "Message regarding a successful operation", "content": { "application/json": { "example": { "messages": { "message": "Deleted task" } } } } }, "400": { "description": "Bad request" }, "404": { "description": "Not found" }, "500": { "description": "Internal Server Error" } } }
}