Catalog attribute sets
The attribute sets that say which attributes a product has and in which sections of its form. Every product names one, and the website’s first is created when the catalog is turned on.
List catalog attribute sets
Which attributes a product has, and in which sections of its form — «Default», «Clothing», «Books». Every product names one set, and its values are checked against the active attributes the set lists. The website's first set, «Default» with a «General» group, is created when the catalog is turned on. A set that a product still names cannot be deleted. At most 50 per website.
path Parameters
website_idId of the parent website.
query Parameters
page_sizeRows per page. Over the maximum is clamped, not rejected.
page_tokenOpaque token from a previous next_page_token. A token minted under a different order_by/filter is rejected.
skipRows to skip before the page (AIP-158). skip + page_size is capped at 10000; beyond that is OUT_OF_RANGE.
order_byComma-separated field [asc|desc], at most 3 keys. Default: display_name asc. Sortable: display_name.
filterAIP-160 subset (§8). Filterable: display_name. A field outside the list is INVALID_ARGUMENT.
List catalog attribute sets › Responses
One page of catalog_attribute_sets.
This page of catalog_attribute_sets, in the requested order.
next_page_tokenOpaque. Absent or empty means this was the last page.
total_sizeRows in the whole filtered collection, not in this page.
Create catalog attribute set
Adds an attribute set. display_name is required and unique on the website — a taken one answers ALREADY_EXISTS — and a website that already has 50 sets answers FAILED_PRECONDITION. Every id in groups must be an attribute of the website, listed once in the whole set.
path Parameters
website_idId of the parent website.
Create catalog attribute set › Request Body
display_nameThe set's name, unique on the website — how the tenant picks it for a product. Not blank, at most 255 characters.
labelsThe name in other languages: an object from a locale (de, pt-BR) to the name in it, each at most 255 characters. Replaced whole when sent.
groupsThe sections of the product form, in the order it shows them: each {display_name, labels, attribute_ids}, where display_name is the section's heading (not blank, at most 255 characters) and attribute_ids the ids of the website's catalog_attributes it shows, in their order. An attribute is in a set at most once. At most 20 groups. Replaced whole when sent; a deleted attribute drops out of every group on its own. An attribute a product of the set has among its variant_options stays: leaving it out answers FAILED_PRECONDITION, naming the products.
Create catalog attribute set › Responses
The created resource.
nameThe resource name (§5) — the identity of this resource, and the path that addresses it: websites/{website}/cms_pages/{cms_page}. It is the handle to store, not a human label.
idThe last segment of name on its own, for a client that needs to build a child URL. Unique inside its parent, never across the platform.
create_timeWhen the resource was created (RFC 3339, UTC).
update_timeWhen the resource last changed (RFC 3339, UTC).
etagVersion of the persisted state. Send it back in If-Match on Update or Delete and the write is rejected with ABORTED if anyone else changed the resource meanwhile (§14).
display_nameThe set's name, unique on the website — how the tenant picks it for a product. Not blank, at most 255 characters.
labelsThe name in other languages: an object from a locale (de, pt-BR) to the name in it, each at most 255 characters. Replaced whole when sent.
groupsThe sections of the product form, in the order it shows them: each {display_name, labels, attribute_ids}, where display_name is the section's heading (not blank, at most 255 characters) and attribute_ids the ids of the website's catalog_attributes it shows, in their order. An attribute is in a set at most once. At most 20 groups. Replaced whole when sent; a deleted attribute drops out of every group on its own. An attribute a product of the set has among its variant_options stays: leaving it out answers FAILED_PRECONDITION, naming the products.
Get catalog attribute set
Which attributes a product has, and in which sections of its form — «Default», «Clothing», «Books». Every product names one set, and its values are checked against the active attributes the set lists. The website's first set, «Default» with a «General» group, is created when the catalog is turned on. A set that a product still names cannot be deleted. At most 50 per website.
path Parameters
website_idId of the parent website.
attribute_set_idId of the parent attribute_set.
Headers
If-None-MatchA matching etag answers 304 with no body (§16).
Get catalog attribute set › Responses
The resource.
nameThe resource name (§5) — the identity of this resource, and the path that addresses it: websites/{website}/cms_pages/{cms_page}. It is the handle to store, not a human label.
idThe last segment of name on its own, for a client that needs to build a child URL. Unique inside its parent, never across the platform.
create_timeWhen the resource was created (RFC 3339, UTC).
update_timeWhen the resource last changed (RFC 3339, UTC).
etagVersion of the persisted state. Send it back in If-Match on Update or Delete and the write is rejected with ABORTED if anyone else changed the resource meanwhile (§14).
display_nameThe set's name, unique on the website — how the tenant picks it for a product. Not blank, at most 255 characters.
labelsThe name in other languages: an object from a locale (de, pt-BR) to the name in it, each at most 255 characters. Replaced whole when sent.
groupsThe sections of the product form, in the order it shows them: each {display_name, labels, attribute_ids}, where display_name is the section's heading (not blank, at most 255 characters) and attribute_ids the ids of the website's catalog_attributes it shows, in their order. An attribute is in a set at most once. At most 20 groups. Replaced whole when sent; a deleted attribute drops out of every group on its own. An attribute a product of the set has among its variant_options stays: leaving it out answers FAILED_PRECONDITION, naming the products.
Delete catalog attribute set
Deletes an attribute set. A set some product still names is refused with FAILED_PRECONDITION: move those products to another set first. The attributes it listed stay.
path Parameters
website_idId of the parent website.
attribute_set_idId of the parent attribute_set.
Headers
If-MatchThe etag the client last read. A mismatch is ABORTED (409) with the current resource in the error details (§14).
Delete catalog attribute set › Responses
Deleted. No body (§7).
Update catalog attribute set
Changes an attribute set. groups, when sent, replaces the set's groups whole and is checked as on create: every id an attribute of the website, each once in the set. Leaving out an attribute that a product of the set has among its variant_options answers FAILED_PRECONDITION, naming those products.
path Parameters
website_idId of the parent website.
attribute_set_idId of the parent attribute_set.
query Parameters
update_maskComma-separated field paths to merge. A field named here and sent as null is cleared; without the mask a null is dropped (§7, §11).
Headers
If-MatchThe etag the client last read. A mismatch is ABORTED (409) with the current resource in the error details (§14).
Update catalog attribute set › Request Body
display_nameThe set's name, unique on the website — how the tenant picks it for a product. Not blank, at most 255 characters.
labelsThe name in other languages: an object from a locale (de, pt-BR) to the name in it, each at most 255 characters. Replaced whole when sent.
groupsThe sections of the product form, in the order it shows them: each {display_name, labels, attribute_ids}, where display_name is the section's heading (not blank, at most 255 characters) and attribute_ids the ids of the website's catalog_attributes it shows, in their order. An attribute is in a set at most once. At most 20 groups. Replaced whole when sent; a deleted attribute drops out of every group on its own. An attribute a product of the set has among its variant_options stays: leaving it out answers FAILED_PRECONDITION, naming the products.
Update catalog attribute set › Responses
The updated resource.
nameThe resource name (§5) — the identity of this resource, and the path that addresses it: websites/{website}/cms_pages/{cms_page}. It is the handle to store, not a human label.
idThe last segment of name on its own, for a client that needs to build a child URL. Unique inside its parent, never across the platform.
create_timeWhen the resource was created (RFC 3339, UTC).
update_timeWhen the resource last changed (RFC 3339, UTC).
etagVersion of the persisted state. Send it back in If-Match on Update or Delete and the write is rejected with ABORTED if anyone else changed the resource meanwhile (§14).
display_nameThe set's name, unique on the website — how the tenant picks it for a product. Not blank, at most 255 characters.
labelsThe name in other languages: an object from a locale (de, pt-BR) to the name in it, each at most 255 characters. Replaced whole when sent.
groupsThe sections of the product form, in the order it shows them: each {display_name, labels, attribute_ids}, where display_name is the section's heading (not blank, at most 255 characters) and attribute_ids the ids of the website's catalog_attributes it shows, in their order. An attribute is in a set at most once. At most 20 groups. Replaced whole when sent; a deleted attribute drops out of every group on its own. An attribute a product of the set has among its variant_options stays: leaving it out answers FAILED_PRECONDITION, naming the products.