Heads up, our devs are blazing ahead—docs are catching up, so some features might not be fully documented yet.

Asset

Asset

List assets

get
/tenants/{tenantUid}/assets

List assets.

Authorizations
AuthorizationstringRequired

Accesstoken recevied after user login with a deviceToken

Path parameters
tenantUidstringRequired

Reference to a tenant.

Pattern: ^[A-Za-z0-9-_]+
Query parameters
pageNumberintegerOptional

Reference to a specific page in a result set.

pageSizeintegerOptional

The number of items per page in a result set.

sortBystringOptional

Defines which field the resource list is sorted by.

sortDirectionstring · enumOptional
ENUM Description
ASC Sort in ascending order
DESC Sort in descending order
Possible values:
Responses
200

Example response

application/json
get
/tenants/{tenantUid}/assets
200

Example response

Create asset

post
/tenants/{tenantUid}/assets

This endpoint lets you create the asset record. To upload a file, use the Upload asset file endpoint where the assetUid you get here is part of the path.

If you want to point to an asset that you already host, just add the correct URL of the asset and you are good to go.

Authorizations
AuthorizationstringRequired

Accesstoken recevied after user login with a deviceToken

Path parameters
tenantUidstringRequired

Reference to a tenant.

Pattern: ^[A-Za-z0-9-_]+
Body
namestringRequired
categorystring · enumRequiredPossible values:
descriptionstringOptional
isPublicbooleanOptionalDefault: false
urlstringOptional

for self-hosted asset

assetUidstringOptionalPattern: ^[A-Za-z0-9-_]*
serviceOrderUidsstring[]Optional
Responses
post
/tenants/{tenantUid}/assets
201

Example response

Get asset details

get
/tenants/{tenantUid}/assets/{assetUid}

Get asset details. The asset itself must be loaded from the host.

Private assets are signed URLs with expiry time. They are not included in the regular asset response but you can get them from the endpoint Get asset private URL.

Authorizations
AuthorizationstringRequired

Accesstoken recevied after user login with a deviceToken

Path parameters
tenantUidstringRequired

Reference to a tenant.

Pattern: ^[A-Za-z0-9-_]+
assetUidstringRequired

Reference to an asset

Responses
200

Example response

application/json
Responseall of
and
get
/tenants/{tenantUid}/assets/{assetUid}
200

Example response

Upload asset file

post
/tenants/{tenantUid}/assets/{assetUid}

Upload file for the asset which "container" record was created on the Add asset endpoint.

Authorizations
AuthorizationstringRequired

Accesstoken recevied after user login with a deviceToken

Path parameters
tenantUidstringRequired

Reference to a tenant.

Pattern: ^[A-Za-z0-9-_]+
assetUidstringRequired

Reference to an asset

Body
string · binaryOptional
Responses
post
/tenants/{tenantUid}/assets/{assetUid}
201

Example response

Update asset details

put
/tenants/{tenantUid}/assets/{assetUid}

Update asset details.

Authorizations
AuthorizationstringRequired

Accesstoken recevied after user login with a deviceToken

Path parameters
tenantUidstringRequired

Reference to a tenant.

Pattern: ^[A-Za-z0-9-_]+
assetUidstringRequired

Reference to an asset

Body
namestringOptional
categorystring · enumOptionalPossible values:
descriptionstringOptional
isPublicbooleanOptional
urlstringOptional

for self-hosted asset

serviceOrderUidsstring[]Optional
Responses
200

Example response

application/json
Responseall of
and
put
/tenants/{tenantUid}/assets/{assetUid}
200

Example response

Delete asset

delete
/tenants/{tenantUid}/assets/{assetUid}

Delete an asset. This also removes the asset from the host.

Authorizations
AuthorizationstringRequired

Accesstoken recevied after user login with a deviceToken

Path parameters
tenantUidstringRequired

Reference to a tenant.

Pattern: ^[A-Za-z0-9-_]+
assetUidstringRequired

Reference to an asset

Responses
delete
/tenants/{tenantUid}/assets/{assetUid}
204

No Content

No content

Download asset file

get
/tenants/{tenantUid}/assets/{assetUid}/download

Private asset URLs have signature and expiry parameters so they cannot be accessed randomly.

Authorizations
AuthorizationstringRequired

Accesstoken recevied after user login with a deviceToken

Path parameters
tenantUidstringRequired

Reference to a tenant.

Pattern: ^[A-Za-z0-9-_]+
assetUidstringRequired

Reference to an asset

Responses
get
/tenants/{tenantUid}/assets/{assetUid}/download
303

See Other

No content

Last updated

Was this helpful?