Delete a Post
Last updated
Last updated
Delete an audio post in a specific category by its post id for an organization.
Query Parameter ⬇️
organization_id (required)
String
A unique identifier for finding a particular post in an organization/community. To get a list of all organizations check the Organization Selection API endpoint.
post_id (required)
String
Post ID can be fetched from the Post a New Question API endpoint.
Header Parameter ⬇️
Bearer {{access_token}} (required)
String
Access Token for securely accessing Matar Resources.
Body Parameter ⬇️
category_id (required)
String
Category name by id in which post is available.
Sample Request ⬇️️
curl --location 'https://matar.in.ngrok.io/api/v1/delete_post?organization_id=129487316&post_id=ACDM6HSQB3' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJmcmVzaCI6dHJ1ZSwiaWF0IjoxNjkyODcyNDIxLCJqdGkiOiIyZmNiODJiYi0zMDYzLTQzNGUtOGM5OS00NTVjMDhhY2Y3MmMiLCJ0eXBlIjoiYWNjZXNzIiwic3ViIjoiMzk1MDFUIiwibmJmIjoxNjkyODcyNDIxLCJleHAiOjE2OTM3MzY0MjF9.ovz0ItiPsYG_rqT3vEYl42WZBonX52NXf-oWE4DuGmQ' \
--form 'category_id="TFTWNI"'
Responses ⬇️
Status Code: 🟢200 (200 denotes 'ok')
{
"message": "post deleted"
}
Status Code: 🔴400 (400 denotes 'Bad request')
{
"message": "post deleted"
}