{
"put": { "operationId": "updateCommentById", "description": "Update comment with specified fields", "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" }, { "name": "comment_id", "in": "path", "schema": { "type": "string" }, "required": true, "description": "Numeric ID of the comment" } ], "requestBody": { "required": true, "description": "Comment fields to update", "content": { "application/json": { "schema": { "$ref": "../../common/schemas/service_desk/comment.json#/components/schemas/request/put" } }, "application/xml": { "schema": { "$ref": "../../common/schemas/service_desk/comment.json#/components/schemas/request/put" } } } }, "responses": { "200": { "description": "Object was updated 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" }, "404": { "description": "Not found" }, "500": { "description": "Internal Server Error" } } }, "delete": { "operationId": "deleteCommentById", "description": "Delete 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" }, { "name": "comment_id", "in": "path", "schema": { "type": "string" }, "required": true, "description": "Numeric ID of the comment" } ], "responses": { "200": { "description": "Message regarding a successful operation", "content": { "application/json": { "example": { "messages": { "message": "Deleted comment" } } } } }, "400": { "description": "Bad request" }, "404": { "description": "Not found" }, "500": { "description": "Internal Server Error" } } }
}