Create Asset Metadata

POST

Create a new asset entry.

This endpoint generates a response with the following information: uploadUrl and uploadDetails. You can use these two properties to upload the file to Amazon s3 by making a POST request to the uploadUrl with the uploadDetails object as your header information in the request.

Required scope | assets:write

Path parameters

site_idstringRequired

Unique identifier for a Site

Request

This endpoint expects an object.
fileNamestringRequired

File name including file extension. File names must be less than 100 characters.

fileHashstringRequired

MD5 hash of the file

parentFolderstringOptional

ID of the Asset folder (optional)

Response

Request was successful

uploadDetailsobjectOptional

Metadata for uploading the asset binary

contentTypestringOptional
idstringOptional
parentFolderstringOptional

Parent folder for the asset

uploadUrlstringOptional
assetUrlstringOptional

S3 link to the asset

hostedUrlstringOptional

Represents the link to the asset

originalFileNamestringOptional

Original file name when uploaded. If not specified at time of upload, it may be extracted from the raw file name

createdOndatetimeOptional

Date the asset metadata was created

lastUpdateddatetimeOptional

Date the asset metadata was last updated

Errors