Skip to navigation

Create or Update Asset

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.
propertiesobjectRequired
The properties of the asset.
labelsmap from strings to stringsOptional

A dictionary of labels associated with the resource.

  • Maximum number of labels: 32.
  • Maximum length of a label or value: 256 characters.
  • Label: alphanumeric, hyphens and underscores.
  • Value: alphanumeric, hyphens, underscores and spaces.

Response

Asset was updated
propertiesobject
The properties of the asset.
idstringOptionalRead-only

Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}

labelsmap from strings to stringsOptional

A dictionary of labels associated with the resource.

  • Maximum number of labels: 32.
  • Maximum length of a label or value: 256 characters.
  • Label: alphanumeric, hyphens and underscores.
  • Value: alphanumeric, hyphens, underscores and spaces.
namestringOptionalRead-onlyformat: "^[^\^\'<>%&:\\?/*+]+$"1-260 characters
The name of the resource
systemDataobjectOptional
Metadata pertaining to creation and last modification of the resource.
typestringOptionalRead-only

The type of the resource. E.g. "Microsoft.Media/mediaservices/assets"

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
409
Conflict Error
429
Too Many Requests Error
500
Internal Server Error