Create or Update Asset

puthttps://app.mk.io/api/v1/projects/:project_name/media/assets/:asset_name

Create or Update Asset. When creating an asset, that asset needs to have a unique container & storage account within the project. When updating an asset, only the description column can be updated.

RBAC Capability Required: ams.asset.create or ams.asset.update

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Path parameters

project_namestringRequired
asset_namestringRequired

Request

This endpoint expects an object.

Loading schema details…

Response

200Asset was updated

Loading schema details…

201Asset was created

Loading schema details…

Errors

400Bad Request

Loading schema details…

401Unauthorized

Loading schema details…

403Forbidden

Loading schema details…

404Not Found

Loading schema details…

409Conflict

Loading schema details…

429Too Many Requests

Loading schema details…

500Internal Server Error

Loading schema details…