Edit comment - leerbedrijflisa/breakpoint-api GitHub Wiki
PATCH /comments/guid
Request
Data fields
Field |
Description |
action |
Replace for changing the field with the new value |
field |
The property to patch |
value |
The value to set or add to the property |
Patchable fields
Fields |
Description |
DataType |
Allowed Values |
comment |
The text in a comment. |
Object |
text |
status |
The field that indicates whether the comment is deleted or not. |
String |
open, archived |
Example
Content-Type: application/json
[{
"action": "replace",
"field": "status",
"value": "archived"
}]
Response
Example
HTTP/1.1 200 OK
Content-Type: application/json
{
"id": "0ea72462-2a86-4e62-a7c3-8c03ad798966",
"username": "Name of user",
"comment": "Text for comment",
"datetime": "2016-05-11T13:34:16Z",
"status": "archived",
"statusChanged": "2016-05-31T12:49:55.5140014Z"
}