Skip to main content

attributeUpdate

Update an existing attribute's values and configuration.

Modifies attribute data including typed values, metadata, and configuration options. Only provided fields are updated while others remain unchanged. The update process validates new values against the attribute description's type.

Update operations support:

  • Value modifications
  • Metadata updates (modification timestamps and user tracking)
  • Partial updates (only specified fields are changed)

The updated attribute maintains its entity associations and core configuration while allowing flexible value and metadata modifications.

Possible errors:

  • ATTRIBUTE_NOT_FOUND: Attribute with the specified ID does not exist
  • ATTRIBUTE_VALIDATION_ERROR: Updated attribute data validation failed against description rules
  • ATTRIBUTE_VALUE_VALIDATION_ERROR: New value does not match attribute type requirements
attributeUpdate(
id: String!
input: AttributeUpdateInput!
): Attribute!

Arguments

attributeUpdate.id ● String! non-null scalar

Unique identifier of the attribute to update.

Must be a valid UUID format representing an existing attribute in the system. The attribute must be accessible within the current context and permissions.

attributeUpdate.input ● AttributeUpdateInput! non-null input

Updated attribute information with partial update support.

Contains the attribute properties to update. Only provided fields will be changed, others remain unchanged. Values are validated against the attribute description's type.

Supports partial updates for flexible attribute management without requiring complete data replacement.

Type

Attribute interface

Base interface for all attribute types across different entity classes.

Attributes provide extensible metadata and properties for various entities in the system. Each attribute is associated with a specific entity type and contains typed values based on its attribute description schema.