assets

Create or update an asset record

If id is provided the existing record is updated; otherwise a new asset is created.

post/admin/assets

Request body

idnumber

Asset ID — provide to update an existing asset

typestring

Asset type (e.g. static, folder)

namestring

Filename

urlstring

URL of the uploaded file

parent_idnumber

Parent folder ID (null for root)

positionnumber

Sort position

sizenumber

File size in bytes

widthnumber

Image width in pixels

heightnumber

Image height in pixels

captionstring
descriptionstring
linkstring

Product link to associate with the asset

metadataobject

Arbitrary metadata to store with the asset

Response

successnumber
idnumber

ID of the created or updated asset

Example response

{
  "success": 1
}

Changes

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