Skip to main content

Get Flag Status for a Specific Post

This endpoint retrieves, if exists, a flag for this contribute created by the user logged

info

This operation requires authentication.

HTTP Request

GET /api/v2/post/{id}/flag/status/

Parameters

NameInTypeRequiredDescription
idpathstringtrueA unique integer value identifying this post.

Example Request

const headers = {
'Accept':'application/json',
'Authorization': 'Bearer {access_token}'
};

fetch('/api/v2/post/{id}/flag/status/',
{
method: 'GET',

headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});

Responses

StatusMeaningDescriptionSchema
200OKnoneFlag

Example responses

{
"added_at": "2019-08-24T14:15:22Z",
"flag_type": 0,
"flag_type_description": "string"
}