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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| thread | query | integer | (one between thread or user is required) | The id of the thread |
| user | query | integer | (one between thread or user is required) | The id of the user |
| group | query | integer | false | The id of the group |
Example Request
- JavaScript
- Bash
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);
});
# You can also use wget
curl -X DELETE /api/v2/pm/?thread={id} \
-H 'Authorization: Bearer {access_token}'
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 204 | No Content | Response status code | None |