Skip to content

Catalog Attribute — Update

Updates an existing attribute. Equivalent to PUT /api/admin/catalog/attributes/{id}.

Operation

OperationTypePurpose
updateAdminAttributeMutationUpdate an attribute

Input fields

Same field set as the REST request body plus the resource IRI id. See the REST page for the full list and immutable-field caveats.

Notes

  • The mutation returns the IRI of the updated attribute. Follow up with the adminAttribute query to load the refreshed detail.
  • code is immutable. Supplying a different code raises an errors[] entry with Attribute code cannot be changed.
  • Supplying options performs a full-set replacement (insert/update/delete) — same semantics as REST.

Released under the MIT License.