Moderation Action
A resource that allows a user to take moderation type actions against a specific resource or resource type. Users with limited permissions will be able to flag or un-flag content, where users with moderator level permissions will be able to remove content.
Resource URIs
Item URI: /v7.1/moderation_action/{pk}/
Collection URI: /v7.1/moderation_action/
Item
Item Methods
GET
Retrieve a Moderation Action by id
Item links
self
A link to this resource
user
A link to the User resource that owns the Moderation Action
moderation_action_type
Required. Link to the action type that is being taken. Valid values are limited by a user’s
permissions. Basic access allows users to FLAG
and UNFLAG
a resource.
resource
Required. Link to the resource this action is being applied to.
Collection
Collection methods
POST
Create a Moderation Action.
Collection links
self
A link to this resource
user
A link to the User resource that owns the Moderation Action
Embedded collections
moderation_actions
A collection of Moderation Actions with links as described under Item links
Usage
GET Moderation Action entity
Request GET: /v7.1/moderation_action/{pk}/
Response
{
"_links":{
"action":[
{
"href":"\/v7.1\/moderation_action_type\/1\/",
"id":"1"
}
],
"self":[
{
"href":"\/v7.1\/moderation_action\/3\/",
"id":"3"
}
],
"documentation":[
{
"href":"https:\/\/developer.mapmyfitness.com\/docs\/v70_Moderation_Action"
}
],
"resource":[
{
"href":"\/92Q7xAmosjo680Dr9M54WV7cb2BOKarnnoPqfFBAkPGcVEJ6KQi2T3BX0LGt5MboBBJiJhg7Nyn6NeY9TdDSysSrTwkZPAsCox9Kryh5XVMf0MGfS4UstBMUzmVNfpvV\/882394\/"
}
],
"user":[
{
"href":"\/v7.1\/user\/2\/",
"id":"2"
}
]
}
}
POST Moderation Action entity
Request POST: /v7.1/moderation_action/
{
"action": "/v7.1/moderation_action_type/1/",
"resource": "/v7.1/activity_story/1-2345-6789/"
}