Flags

POST /api/messages/:message_id/flags
flag or bookmark a message

Success Response Code: 201

Params

Param name Description
message_id
required

id for flag or bookmark


Value: Must be a Integer

Response Fields

flag created flag Flag
flag[id] id for created flag Integer

Example Curl Commands

curl -X POST -v --basic -u "emily@socialcast.com:demo" "https://demo.socialcast.com/api/messages/407/flags.json"

Examples

POST 
{}
201
{
  "flag": {
    "id": 1
  }
}

DELETE /api/messages/:message_id/flags/:flag_id
remove flag or bookmark from a message

Success Response Code: 204

Params

Param name Description
message_id
required

id to unflag


Value: Must be a Integer
flag_id
required

id to remove


Value: Must be a Integer

Example Curl Commands

curl -X DELETE -v --basic -u "emily@socialcast.com:demo" "https://demo.socialcast.com/api/messages/407/flags/1"

Examples

DELETE 
{}
204