Skip to main content
PUT
Set Resource Metadata Value

Authorizations

Authorization
string
header
required

Aspect API key (sk_...) in Authorization header. 'Bearer ' optional.

Path Parameters

resource_id
string<uuid>
required

ID of a directory, canvas, collection, or asset

attribute_id
string<uuid>
required

Attribute ID

Body

application/json

API request schema for setting a metadata value.

value
any
required

The value to set. Its shape depends on the attribute's data_type:

  • string: A string.
  • integer, float: A number.
  • boolean: true or false.
  • datetime: An ISO 8601 string.
  • single_select: An option ID.
  • multi_select: A list of option IDs.
  • user_id: A list of user IDs.

Send null to clear the value. Only attributes editable on the resource's type in their resource_types can be set.

Response

Successful Response

API response schema for a single metadata value.

attribute_id
string<uuid>
required

ID of the attribute this value is for

data_type
enum<string>
required

Data type of the value

Available options:
string,
integer,
float,
boolean,
datetime,
single_select,
multi_select,
user_id,
person_id,
object_id,
directory_id
value
any
required

The value. Its shape depends on data_type:

  • string: A string.
  • integer, float: A number.
  • boolean: true or false.
  • datetime: An ISO 8601 string.
  • single_select: An option ID.
  • multi_select: A list of option IDs.
  • user_id: A list of users, each with id, first_name, last_name, email, and avatar_url.
  • person_id: A list of people, each with person_id, label, and author_kind.
  • object_id: A list of objects, each with object_id, label, and author_kind.
  • directory_id: The directories containing the resource, outermost first, each with id and name. Empty when the resource is directly in the team's top-level directory.

null when there's no value.

name
string | null

Display name of the attribute

author_kind
enum<string>
default:user

Who wrote the value's current content: user, ai, or system for values Aspect fills in itself, such as ones read from the file

Available options:
user,
ai,
system