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
200OKResponse status codeFlag

Example responses

{
"added_at": "string",
"flag_type": "integer",
"flag_type_description": "string"
}