Ⓜ️
Matar
  • ✍️About Matar
  • 📁Concept
    • 📄Understanding Matar
  • 📁Matar For Communities
    • 📄Hosting on Matar
    • 📄Trial Pilot
    • 📄Community Management
  • 📁🚀 Get Started
    • 📄Language Selection
    • 📄Organization Onboarding
    • 📄Signing Up
  • 📁Matar Features
    • 📄Browsing the App
    • 📄View Questions
    • 📄Changing Subjects
    • 📄Answer Questions
    • 📄Ask a Question
    • 📄Share a Question
    • 📄Like an Answer
    • 📄See Liked Answers
    • 📄Dislike an Answer
    • 📄See Recorded Questions
    • 📄See Recorded Answers
    • 📄Troubleshooting
    • 📄Version
    • 📄FAQ
  • 📁Developer Reference
    • 🗄️Architecture
      • 📄Overview
      • 📄Backend
      • 📄Frontend
      • 📄API Layer
    • 📜Guides
      • 📄Add/delete posts
    • 🛠️API
      • 📄API Flow
      • 📁User Login
        • 📄Login
        • 📄Submit OTP
        • 📄Get Current User
        • 📄Edit User
        • 📄Logout
      • 📄Organization Selection
      • 📄Language and Categories
      • 📄Activity Types
      • 📁Posts
        • 📄Post a New Question
        • 📄Delete a Post
        • 📄Post Activity Type
        • 📄Post Information
        • 📄Post GPT Processing
    • 📶DB Tables and Structure
      • 📄Matar DB tables
      • 📄Code Structure
    • 💻Backend Code
      • 📄Response on a Post from AI
      • 📄Post Sorting
      • 📄User Registration
      • 📄Org Based Code
    • 💻Frontend Code
      • 📄Overview
      • 📄Setting up Project
      • 📄Project Structure
      • 📄Code Directories
        • 📄Broadcast Directory
        • 📄Core Directory
        • 📄Data Directory
        • 📄di Directory
        • 📄domain/repository Directory
        • 📄model Directory
        • 📄retrofit Directory
        • 📄ui Directory
          • 📄dialog
          • 📄features
          • 📄service
  • 🤝Support
Powered by GitBook
On this page
  • Delete Post
  • Params
  1. Developer Reference
  2. API
  3. Posts

Delete a Post

PreviousPost a New QuestionNextPost Activity Type

Last updated 1 year ago

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.

Params

Query Parameter ⬇️

Query Parameter
Data Type
Description

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 ⬇️

Header Parameter
Data Type
Description

Bearer {{access_token}} (required)

String

Access Token for securely accessing Matar Resources.

Body Parameter ⬇️

Body Parameter
Data Type
Description

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"
}
📁
🛠️
📁
📄
Drawing
API: -
https://matar.in.ngrok.io/api/v1/delete_post?organization_id=<org_id>&post_id=<post_id>>