Asset Management

Endpoints for managing assets

{ "data": { "id": "q6v0d3m9", "title": "SL2m28E3JA9C8Ti9GUQL3HRGMXepAkfWBzyLf2o4.jpg", "caption": null, "kind": "image", "external": false, "thumbnail": null, "position": 1, "primary": true, "sub_kind": "jpg", "extension": "jpg", "original_filename": "Sweets.jpg", "size": 25148, "width": 476, "height": 104, "url": "{url}\/storage\/products\/2019\/05\/16\/wrVaUyuqoQMfKRmaw8orGSmuJ77H8z2eBpypXVpB.jpg" } }
php coming soon
Parameter Type Required Description

parent_id

String

true

The hashed ID of the parent model

file

UploadedFile|SplFileInfo

true

The uploaded file

alt

String

false

The alt attribute for the Asset

url

String

true

An external URL to fetch the asset from

mime_type

String

true

youtube, vimeo, external

parent

String

true

The parent type