Skip to main content
PUT
Needs media:update, and a role in the workspace that can edit media. See Permissions.
Alt text says what a picture shows, for people who can’t see it. A file keeps one, up to 2,000 characters, and every post with the file sends it when the post goes out. These networks take it, each up to its own limit: Longer text is cut to the network’s limit, never inside a letter. The other networks don’t take alt text. Send alt with the text. It replaces the saved text, and null or an empty string removes it. It is the same alt text the app’s media library and post editor show, so a change shows there too, and it goes with every post that has the file and hasn’t gone out yet. The answer is the file as saved. To save alt text with a new file, send alt with Upload a file.

Errors

Authorizations

Authorization
string
header
required

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

Path Parameters

media_id
integer
required

The file's id.

Body

application/json
alt
string | null
required

The alt text, up to 2,000 characters. null or an empty string removes it.

Maximum string length: 2000

Response

The file as saved.

A file in the media library: what list, get and the uploads give, and what posts and comments hold.

id
integer
required

The file's id. Posts take it in content[].media.

workspace_id
integer
required
folder_id
integer | null
required

The folder it is in; null at the top of the library.

name
string
required

The file name.

url
string<uri>
required

The file itself, at a public link.

mime_type
string | null
required

The file's type, like image/jpeg.

size
integer | null
required

The size in bytes.

is_processing
boolean
required

True while the file is still being made (an AI video, for example). It can't go on a post or be deleted until it is ready.

type
enum<string> | null
required

The kind of file, from mime_type: document is a PDF, Word or PowerPoint file. Null for any other type.

Available options:
image,
video,
audio,
document,
null
ai_generated_id
integer | null
required

Set when PostSyncer's AI made the file; null for uploads.

is_reference
boolean
required

True for a reference picture kept for AI video, not for posting.

progress
integer
required

Always 100.

alt
string | null
required

The alt text, when set: what a picture shows, sent with it to the networks that take alt text. Set it with Set a media file's alt text.

duration_seconds
number | null
required

A video's or sound's length in seconds, read when it was uploaded. Null for pictures and documents, and for files stored before lengths were read.

thumb_url
string<uri>

A picture's small copy (about 400 px on its long edge) for cards and lists, or a video's still. Left out until one is made: use url then. See Picture copies.

medium_url
string<uri>

A picture's medium copy (about 800 px on its long edge) for large tiles and previews. Left out until one is made, and for a picture no bigger than 800 px on its long edge, which needs none: use url then. Videos, GIFs and documents have none.