API Overview
Message Callbacks
Status Codes
Overview
Updates a comment.
Request
Authentication Add authentication headers to the request. See Authentication
Method
POST
Rate limit
100 requests/second
Endpoint https://API domain/apigateway/moments/comments/update
Content-Type
application/json
Request Parameters
| Parameter | Data Type | Required | Description | |
|---|---|---|---|---|
| user_id | string | Yes | Comment author user ID. Maximum length: 32 characters | |
| moment_id | string | Yes | Moment ID. Maximum length: 32 characters | |
| comment_id | string | Yes | Comment ID. Maximum length: 32 characters. | |
| content | object | Yes | Comment content. |
Request Example
POST /apigateway/moments/comments/update HTTP/1.1
appkey: appkey
Authorization: xxxxxxxxxxxxxxxxxx
Content-Type: application/json
{
"user_id":"userid1", // act as this user
"comment_id":"comment ID",
"content":{
"text":"comment content"
}
}
Response Example
{
"code":0,
"msg":"sucess"
}
Response codes
| Response codes | Description |
|---|