Media library

Upload an image

Uploads an image to the media library. Images already in the library render faster, because they don't have to be downloaded first.

post/media/{workspaceId}/assets

Request

  • Base URL
    https://api.dynapictures.com
  • URL
    https://api.dynapictures.com/media/{workspaceId}/assets
  • Auth
    HTTP bearer

Path parameters

workspaceIdstring required

The ID of the workspace.

Request body multipart/form-data

filestring binary required

The image to upload.

folderUidstring

The folder to put it in.

Response

The new asset.

idstring required

The ID of the asset.

folderboolean

Whether this asset is a folder rather than an image.

mimeTypestring

The MIME type of the image.

filenamestring

The file name.

animatedboolean

Whether the image is animated.

sizeinteger

The size in bytes.

urlstring uri

URL of the image.

thumbnailUrlstring uri

URL of the thumbnail.

dateCreatedstring date-time

When the asset was created.

dateUpdatedstring date-time

When the asset was last changed.

Changes

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