Skip to main content

Unflag a Specific Post

This endpoint removes a flag for a specific post

info

This operation requires authentication.

HTTP Request

POST /api/v2/post/{id}/flag/

Parameters

NameInTypeRequiredDescription
idpathstringtrueA unique integer value identifying this post.
flag_typebodyintegertrueA integer from 0 to 4

Enumerated Values

ParameterValueDescription
flag_type0spam
flag_type1aggressive
flag_type2vulgar
flag_type3poor
flag_type4offtopic

Example Body Parameters

{
"flag_type": 0
}

Example Request

const inputBody = '{
"flag_type": 0
}';
const headers = {
'Content-Type':'application/json',
'Accept':'application/json',
'Authorization': 'Bearer {access_token}'
};

fetch('/api/v2/post/{id}/flag/',
{
method: 'POST',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});

Responses

StatusMeaningDescriptionSchema
204No ContentnoneNone