Peach
  1. medias
Peach
  • messaging
    • Send a pre-approved template message
      POST
    • Launch a Broadcast
      POST
  • contacts
    • Create a contact on Peach
      POST
  • orders
    • Create an order
      POST
    • Find order by ID
      GET
    • Create a refund for an order
      POST
  • medias
    • List available Medias
      GET
    • Add a Media
      POST
    • Remove a Media
      DELETE
  1. medias

Remove a Media

Developing
DELETE
https://app.trypeach.io/api/v1/medias/{{media_id}}

Request

Authorization
Add parameter in header
Authorization
Example:
Authorization: ********************
Header Params
Content-Type
string 
optional
Example:
application/json

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request DELETE 'https://app.trypeach.io/api/v1/medias/{{media_id}}' \
--header 'Content-Type: application/json' \
--header 'Authorization;'

Responses

🟢200Success
application/json
Body
content_type
string 
required
created_at
string 
required
filename
string 
required
id
integer 
required
media_url
string 
required
Example
{
  "content_type": "image/png",
  "created_at": "2024-07-15T09:12:24.464Z",
  "filename": "sample.png",
  "id": 1,
  "media_url": "media://11"
}
🟠404Record Not Found
Previous
Add a Media
Built with