Create an asset
POST {{baseUrl}}/:tenant/assets

Creates a new asset for the tenant. An asset represents a digital media (max 50MB) object in the system.
- To create Asset of BLOB
type, use multipart/form-data
request body.
- To create Asset of LINK
type, use application/json
request body.
### Required scopes
* media.asset_manage
Request Body
[{"name"=>"file", "value"=>"./Desktop/images/theBestImage.jpg", "datatype"=>"string"}, {"name"=>"body", "value"=>"{\"type\":\"BLOB\",\"access\":\"PUBLIC\",\"refIds\":[{\"id\":\"123e06ecf0452c2d6c0b81392\",\"type\":\"CATEGORY\"}],\"details\":{\"filename\":\"theBestImge\",\"mimeType\":\"image/jpg\"}}", "datatype"=>"string"}]
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: Created
{"id":"53ac81fd0cce8b26b36f3492"}