Media

Move multiple media attachments to Trash

post/media/batch-delete

Request

  • Base URL: https://app.openpo.st/api/v1
  • URL: https://app.openpo.st/api/v1/media/batch-delete
  • Auth: one of:
    • HTTP bearer
    • API key in cookie openpost_session

Request body

$schemastring uri

A URL to the JSON Schema for this object.

media_idsstring[] nullable required

Array of media IDs to delete

Example request

{
  "$schema": "https://example.com/api/v1/schemas/BatchDeleteMediaInputBody.json"
}

Response

OK

$schemastring uri

A URL to the JSON Schema for this object.

deletedinteger required

Number of media deleted

failed_idsstring[] nullable required

IDs that could not be deleted (in use)

Example response

{
  "$schema": "https://example.com/api/v1/schemas/BatchDeleteMediaOutputBody.json"
}

Changes

No recorded changes to this operation across all 1 revision of this API.