📄Delete a Post

Delete a post (audio question or answer) from the Matar database.

Delete Post

Delete an audio post in a specific category by its post id for an organization.


Query Parameter ⬇️

Query ParameterData TypeDescription

organization_id (required)


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)


Post ID can be fetched from the Post a New Question API endpoint.

Header Parameter ⬇️

Header ParameterData TypeDescription

Bearer {{access_token}} (required)


Access Token for securely accessing Matar Resources.

Body Parameter ⬇️

Body ParameterData TypeDescription

category_id (required)


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"

Last updated