Skip to main content

Delete a Thread

This endpoint deletes a thread.

info

This operation requires authentication.

info

The thread is deleted only for the logged user.

HTTP Request

DELETE /api/v2/pm/

Parameters

NameInTypeRequiredDescription
threadqueryinteger(one between thread or user is required)The id of the thread
userqueryinteger(one between thread or user is required)The id of the user
groupqueryintegerfalseThe id of the group

Example Request


const headers = {
'Authorization': 'Bearer {access_token}'
};

fetch('/api/v2/pm/?thread={id}',
{
method: 'DELETE',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});

Responses

StatusMeaningDescriptionSchema
204No ContentResponse status codeNone