Skip to main content
PATCH
Update media.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
integer
required

Body

application/json
title
string | null

Human readable title of media.

description
string | null

Human readable description of media.

filename
string

Technical name of the file.

Response

200 - application/json

Success

Media used to quickly send files without having to upload them first every time.

id
integer

Internal ID.

type
enum<string>
Available options:
image,
video,
audio,
document
uuid
string

Internal file system UUID. Use this UUID when sending messages.

public_download_url
any

URL to directly download the file without a token. WARNING: Temporary valid for 7 days!

title
string | null

Human readable title of media.

description
string | null

Human readable description of media.

filename
string

Technical name of the file.

mime_type
string

Mime type of the file.

size
integer

Size in bytes.

user_id
integer | null

Optional ID of user which uploaded the media.

created_at
string<date-time> | null

Datetime when template was created.

Example:

"2023-01-01T12:00:00Z"

updated_at
string<date-time> | null

Datetime when template was last updated.

Example:

"2023-01-01T12:00:00Z"