Customer attribute groups
The sections the admin’s customer form gathers customer attributes under, put in order with :move. The registration form on the site lists its fields flat and ignores them.
List customer attribute groups
A section the customer form in the admin gathers customer attributes under — «Personal», «Preferences». An attribute names its section in group_id; the registration form on the site lists its fields flat and ignores sections. Deleting a section moves its attributes to the default one. At most 20 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: sort_order asc. Sortable: sort_order.
filterAIP-160 subset (§8). Filterable: display_name. A field outside the list is INVALID_ARGUMENT.
List customer attribute groups › Responses
One page of customer_attribute_groups.
This page of customer_attribute_groups, 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 customer attribute group
Adds a section. display_name is required; a website that already has 20 sections answers FAILED_PRECONDITION. The new section comes last in sort_order.
path Parameters
website_idId of the parent website.
Create customer attribute group › Request Body
display_nameThe section's heading, shown wherever labels has none for the locale. Not blank, at most 255 characters.
labelsThe heading in other languages: an object from a locale (de, pt-BR) to the heading in it, each at most 255 characters. Replaced whole when sent.
Create customer attribute group › 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 section's heading, shown wherever labels has none for the locale. Not blank, at most 255 characters.
labelsThe heading in other languages: an object from a locale (de, pt-BR) to the heading in it, each at most 255 characters. Replaced whole when sent.
sort_orderWhere the section stands among the website's sections: they are shown in ascending sort_order. A new section comes last; :move is the only way to change it.
Get customer attribute group
A section the customer form in the admin gathers customer attributes under — «Personal», «Preferences». An attribute names its section in group_id; the registration form on the site lists its fields flat and ignores sections. Deleting a section moves its attributes to the default one. At most 20 per website.
path Parameters
website_idId of the parent website.
attribute_group_idId of the parent attribute_group.
Headers
If-None-MatchA matching etag answers 304 with no body (§16).
Get customer attribute group › 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 section's heading, shown wherever labels has none for the locale. Not blank, at most 255 characters.
labelsThe heading in other languages: an object from a locale (de, pt-BR) to the heading in it, each at most 255 characters. Replaced whole when sent.
sort_orderWhere the section stands among the website's sections: they are shown in ascending sort_order. A new section comes last; :move is the only way to change it.
Delete customer attribute group
Deletes a section and moves every field in it to the default section — group_id cleared — before it answers. The fields themselves stay.
path Parameters
website_idId of the parent website.
attribute_group_idId of the parent attribute_group.
Headers
If-MatchThe etag the client last read. A mismatch is ABORTED (409) with the current resource in the error details (§14).
Delete customer attribute group › Responses
Deleted. No body (§7).
Update customer attribute group
A section the customer form in the admin gathers customer attributes under — «Personal», «Preferences». An attribute names its section in group_id; the registration form on the site lists its fields flat and ignores sections. Deleting a section moves its attributes to the default one. At most 20 per website.
path Parameters
website_idId of the parent website.
attribute_group_idId of the parent attribute_group.
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 customer attribute group › Request Body
display_nameThe section's heading, shown wherever labels has none for the locale. Not blank, at most 255 characters.
labelsThe heading in other languages: an object from a locale (de, pt-BR) to the heading in it, each at most 255 characters. Replaced whole when sent.
Update customer attribute group › 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 section's heading, shown wherever labels has none for the locale. Not blank, at most 255 characters.
labelsThe heading in other languages: an object from a locale (de, pt-BR) to the heading in it, each at most 255 characters. Replaced whole when sent.
sort_orderWhere the section stands among the website's sections: they are shown in ascending sort_order. A new section comes last; :move is the only way to change it.
Move (customer attribute group)
Moves a section to another place among the website's sections. Send {"after_id": "..."} to put it right after that section, or {"after_id": null} (or {}) to put it first. Answers the moved section with its new sort_order; the other sections are renumbered around it.
path Parameters
website_idId of the parent website.
attribute_group_idId of the parent attribute_group.
Move (customer attribute group) › Request Body optional
Move (customer attribute group) › Responses
The affected resource, or the method’s own response object (§10).