Update a comment
PUT/comment/:commentId
Update a comment
Request
Path Parameters
commentId stringrequired
- application/json
Body
state commentState (string)
Possible values: [public
, hidden
, flagged
, studioApproved
, studioRejected
]
body string
Responses
- 200
- 401
- 404
- default
Comment updated
- application/json
- Schema
- Example (from schema)
- Example
Schema
body string
owner address (string)
createdAt date-time
Time representation of entity creation
id commentId (string)
Unique identifier for Comment
state commentState (string)
Possible values: [public
, hidden
, flagged
, studioApproved
, studioRejected
]
submissionId submissionId (string)
Unique identifier for Project
{
"body": "string",
"owner": "string",
"createdAt": "2024-01-01T09:00:00.00Z",
"id": "cCX5ZZHMk",
"state": "public",
"submissionId": "S14dqdbbnC"
}
{
"submissionId": "6c3f1178-3x45-3ec4-bac3-205026484a7e",
"state": "public",
"id": "35c4407b-6bca-4178-ac77-6dd7889fv703",
"createdAt": "2021-07-08T20:15:00.000Z",
"ownerId": "5d4f3111-4x21-4e3c-bac3-452164484b9c",
"body": "This is an updated comment"
}
Unauthorized
- application/json
- Schema
- Example (from schema)
- Example
Schema
error string
{
"error": "string"
}
{
"error": "Unauthorized access"
}
NotFound
- application/json
- Schema
- Example (from schema)
- Example
Schema
error string
{
"error": "string"
}
{
"error": "A mandatory item was not found"
}
Unexpected error
- application/json
- Schema
- Example (from schema)
- Example
Schema
error string
{
"error": "string"
}
{
"error": "An unexpected error occured"
}
Loading...