{
"post": { "operationId": "createTask", "description": "Create new 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" } ], "requestBody": { "required": true, "description": "Task fields to fill", "content": { "application/json": { "schema": { "$ref": "../../common/schemas/tasks/task.json#/components/schemas/request/post" } }, "application/xml": { "schema": { "$ref": "../../common/schemas/tasks/task.json#/components/schemas/request/post" } } } }, "responses": { "200": { "description": "Object created and returned 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" }, "500": { "description": "Server error" } } }
}