Skip to main content
DELETE
/
media_library
Delete media library file
curl --request DELETE \
  --url https://your_a2_service/media_library \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "cdn_path": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "file_size": 123,
  "filename": "<string>",
  "height": 123,
  "mime": "<string>",
  "no": 123,
  "path": "<string>",
  "storage": "<string>",
  "updated_at": "2023-11-07T05:31:56Z",
  "user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "width": 123
}'
"<any>"

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Body

application/json

Schema for media library delete entity.

cdn_path
string
required

The CDN url from which the media can be accessed

file_size
integer
required

The file size of the media

filename
string
required

The filename of media library

height
integer
required

The height of the media

mime
string
required

The mime-type of the media

no
integer
required

The no of media library

path
string
required

Relative paths stored in the storage

storage
string
required

The storage type where the media is stored

user_id
string<uuid>
required

The owner's id of media library

width
integer
required

The width of the media

created_at
string<date-time> | null

The date and time the entity was created.

updated_at
string<date-time> | null

The date and time the entity was last updated.

Response

Successful Response

The response is of type any.