Customer groups
The groups customers are segmented into — by hand in a MANUAL group, by a rule in a DYNAMIC one. A group decides who a page is shown to, and whose version of a page a customer reads.
List customer groups
A group the website's customers are segmented into — what a page can be shown to or hidden from, and whose version of a page a customer sees. A MANUAL group holds the customers assigned to it; a DYNAMIC one holds whoever matches its rule. Deleting a group takes it off every customer.
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: create_time desc. Sortable: create_time, display_name.
filterAIP-160 subset (§8). Filterable: create_time, display_name, priority, type. A field outside the list is INVALID_ARGUMENT.
List customer groups › Responses
One page of customer_groups.
This page of customer_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 group
A group the website's customers are segmented into — what a page can be shown to or hidden from, and whose version of a page a customer sees. A MANUAL group holds the customers assigned to it; a DYNAMIC one holds whoever matches its rule. Deleting a group takes it off every customer.
path Parameters
website_idId of the parent website.
Create customer group › Request Body
display_nameThe group's name, unique on the website — how the tenant tells groups apart wherever one is picked. Not blank, at most 255 characters.
descriptionWhat the group is for, for the people who manage it. At most 2000 characters.
typeHow the group gets its members: MANUAL — the customers put in it by hand, DYNAMIC — the customers its rule matches. MANUAL when omitted; fixed at creation.
ruleWho is in a DYNAMIC group: a filter over a customer's email, tags and create_time, written like the filter of the customers List — the group holds exactly the customers that List returns for it, and group_ids follows a new rule shortly after it is saved. A rule that does not parse or names another field is refused. Without a rule the group has no members. A MANUAL group has none. At most 2000 characters.
priorityWhich group wins when a customer is in several that each have their own version of a page: the higher number. 0 when omitted.
Create customer 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 group's name, unique on the website — how the tenant tells groups apart wherever one is picked. Not blank, at most 255 characters.
descriptionWhat the group is for, for the people who manage it. At most 2000 characters.
typeHow the group gets its members: MANUAL — the customers put in it by hand, DYNAMIC — the customers its rule matches. MANUAL when omitted; fixed at creation.
ruleWho is in a DYNAMIC group: a filter over a customer's email, tags and create_time, written like the filter of the customers List — the group holds exactly the customers that List returns for it, and group_ids follows a new rule shortly after it is saved. A rule that does not parse or names another field is refused. Without a rule the group has no members. A MANUAL group has none. At most 2000 characters.
priorityWhich group wins when a customer is in several that each have their own version of a page: the higher number. 0 when omitted.
Get customer group
A group the website's customers are segmented into — what a page can be shown to or hidden from, and whose version of a page a customer sees. A MANUAL group holds the customers assigned to it; a DYNAMIC one holds whoever matches its rule. Deleting a group takes it off every customer.
path Parameters
website_idId of the parent website.
customer_group_idId of the parent customer_group.
Headers
If-None-MatchA matching etag answers 304 with no body (§16).
Get customer 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 group's name, unique on the website — how the tenant tells groups apart wherever one is picked. Not blank, at most 255 characters.
descriptionWhat the group is for, for the people who manage it. At most 2000 characters.
typeHow the group gets its members: MANUAL — the customers put in it by hand, DYNAMIC — the customers its rule matches. MANUAL when omitted; fixed at creation.
ruleWho is in a DYNAMIC group: a filter over a customer's email, tags and create_time, written like the filter of the customers List — the group holds exactly the customers that List returns for it, and group_ids follows a new rule shortly after it is saved. A rule that does not parse or names another field is refused. Without a rule the group has no members. A MANUAL group has none. At most 2000 characters.
priorityWhich group wins when a customer is in several that each have their own version of a page: the higher number. 0 when omitted.
Delete customer group
Deletes a group and takes it off every customer who was in it — out of manual_group_ids and group_ids alike — before it answers.
path Parameters
website_idId of the parent website.
customer_group_idId of the parent customer_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 group › Responses
Deleted. No body (§7).
Update customer group
A group the website's customers are segmented into — what a page can be shown to or hidden from, and whose version of a page a customer sees. A MANUAL group holds the customers assigned to it; a DYNAMIC one holds whoever matches its rule. Deleting a group takes it off every customer.
path Parameters
website_idId of the parent website.
customer_group_idId of the parent customer_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 group › Request Body
display_nameThe group's name, unique on the website — how the tenant tells groups apart wherever one is picked. Not blank, at most 255 characters.
descriptionWhat the group is for, for the people who manage it. At most 2000 characters.
ruleWho is in a DYNAMIC group: a filter over a customer's email, tags and create_time, written like the filter of the customers List — the group holds exactly the customers that List returns for it, and group_ids follows a new rule shortly after it is saved. A rule that does not parse or names another field is refused. Without a rule the group has no members. A MANUAL group has none. At most 2000 characters.
priorityWhich group wins when a customer is in several that each have their own version of a page: the higher number. 0 when omitted.
Update customer 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 group's name, unique on the website — how the tenant tells groups apart wherever one is picked. Not blank, at most 255 characters.
descriptionWhat the group is for, for the people who manage it. At most 2000 characters.
typeHow the group gets its members: MANUAL — the customers put in it by hand, DYNAMIC — the customers its rule matches. MANUAL when omitted; fixed at creation.
ruleWho is in a DYNAMIC group: a filter over a customer's email, tags and create_time, written like the filter of the customers List — the group holds exactly the customers that List returns for it, and group_ids follows a new rule shortly after it is saved. A rule that does not parse or names another field is refused. Without a rule the group has no members. A MANUAL group has none. At most 2000 characters.
priorityWhich group wins when a customer is in several that each have their own version of a page: the higher number. 0 when omitted.