Skip to main content

Overview

Adds a reaction to a post.

Request

Authentication Add authentication headers to the request. See Authentication

Method POST

Rate limit 100 requests/second

Endpoint https://API domain/apigateway/moments/reactions/add

Content-Type application/json

Request Parameters

ParameterData TypeRequiredDescription
user_idstringYesOperator user ID. Maximum length: 32 characters
moment_idstringYesMoment ID. Maximum length: 32 characters
reactionobjectYesReaction information.
reaction.keystringYesReaction identifier. Maximum length: 50 characters
reaction.valuestringNoReaction value. Maximum length: 50 characters

Request Example

POST /apigateway/moments/reactions/add HTTP/1.1
appkey: appkey
Authorization: xxxxxxxxxxxxxxxxxx
Content-Type: application/json

{
"user_id":"userid1", // act as this user
"moment_id":"Moments post ID",
"reaction":{
"key":"k1",
"value":"v1"
}
}

Response Example

{
"code":0,
"msg":"sucess"
}

Response codes

Response codesDescription