Media library

Replace a media asset

Uploads a new image for an existing asset.

put/media/{workspaceId}/assets/{assetId}

Request

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

Path parameters

workspaceIdstring required

The ID of the workspace.

assetIdstring required

The ID of the asset.

Request body multipart/form-data

filestring binary required

The image to upload.

folderUidstring

The folder to put it in.

Response

The updated 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.