Media library

Upload an image from a URL

Adds an image to the media library from a public URL or from base64.

post/media/{workspaceId}/assets/from-url

Request

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

Path parameters

workspaceIdstring required

The ID of the workspace.

Request body

urlstring uri

Public URL of the image. Set this or base64.

base64string

The image as base64. Set this or url.

mimeTypestring

The MIME type, mainly useful with base64.

namestring

A display name.

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.