Metadata

Set Asset Metadata Value

Set a metadata value for an asset.

The attribute must belong to the asset's project (otherwise 404) and be editable (is_editable, otherwise 400).

put/metadata/attributes/{attribute_id}/assets/{asset_id}

Request

  • Base URL
    https://api.aspect.inc
  • URL
    https://api.aspect.inc/metadata/attributes/{attribute_id}/assets/{asset_id}
  • Auth
    API key in header Authorization

Path parameters

attribute_idstring uuid required

Attribute ID

asset_idstring uuid required

Asset ID

Request body

valueunknown required

Response

Successful Response

attribute_idstring uuid required

ID of the attribute this value is for

namestring nullable

Display name of the attribute

data_type'string' | 'integer' | 'float' | 'boolean' | 'datetime' | 'single_select' | 'multi_select' | 'user_id' | 'person_id' | 'object_id' | 'directory_id' required

Type of value an attribute holds.

  • string: Text.
  • integer: A whole number.
  • float: A decimal number.
  • boolean: True or false.
  • datetime: A date and time.
  • single_select: One of the attribute's options.
  • multi_select: Any number of the attribute's options.
  • user_id: Users.
  • person_id: People recognized in the asset. Used by the built-in People attribute.
  • object_id: Objects recognized in the asset. Used by the built-in Objects attribute.
  • directory_id: The directories containing the asset. Used by the built-in Path attribute.
valueunknown required
source'user' | 'ai'

Who wrote the value: a user or AI.

Changes

No recorded changes to this operation across all 1 revision of this API.