Delete Media

This endpoint deletes previously uploaded file. If file does not exist it will give failure message saying file with requested media id does not exists.

URL:​ https://waapi.pepipost.com/api/v2/media/{mediaid}

Method: DELETE

Parameters

Parameter

Description

Parameter Type

Data Type

Sample Value

Required

mediaId

Media Id

Path parameter

String

38e9f3f7-6d6f-4a18839c-fd5076b473a6

Yes

Request Body

Not required

Responses

In case of success

{ 
   "status": "success", 
   "message": "Media deleted successfully" 
} 
  

In case of failure

{ 
   "status": "failure", 
   "message": "File with id 38e9f3f7-6d6f-4a18-839c-fd5076b473 not found" 
} 

Last updated