{
"post": { "operationId": "createComment", "description": "Create new Comment", "tags": ["Comment"], "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": "Comment fields to fill", "content": { "application/json": { "schema": { "$ref": "../../common/schemas/service_desk/comment.json#/components/schemas/request/post" } }, "application/xml": { "schema": { "$ref": "../../common/schemas/service_desk/comment.json#/components/schemas/request/post" } } } }, "responses": { "200": { "description": "Object created and returned correctly", "content": { "application/json": { "schema": { "$ref": "../../common/schemas/service_desk/comment.json#/components/schemas/response" } }, "application/xml": { "schema": { "$ref": "../../common/schemas/service_desk/comment.json#/components/schemas/response" } } } }, "400": { "description": "Bad request" }, "500": { "description": "Server error" } } }
}