Update a comment object (full update)
Replace a cocument with a new comment's document.
Path Parameters
- id string required
Comment ID
- application/json
Request Body required
New comment data
- body string required
Responses
- 200
- 400
- 404
- 500
OK
- application/json
- Schema
- Example (from schema)
Schema
- body string
Body represents the content of the comment.
- id string
ID represents the activity identifier.
- sha256 string
SHA256 references the hash of the file where the comment has been made.
- timestamp integer
Timestamp when this activity happened.
- type string
Type represents the document type.
- username string
Username represents the author of the comment.
{
"body": "string",
"id": "string",
"sha256": "string",
"timestamp": 0,
"type": "string",
"username": "string"
}
Bad Request
- application/json
- Schema
- Example (from schema)
Schema
- details
- message string
- status integer
{
"details": {},
"message": "string",
"status": 0
}
Not Found
- application/json
- Schema
- Example (from schema)
Schema
- details
- message string
- status integer
{
"details": {},
"message": "string",
"status": 0
}
Internal Server Error
- application/json
- Schema
- Example (from schema)
Schema
- details
- message string
- status integer
{
"details": {},
"message": "string",
"status": 0
}
Loading...