Optimizely Customer Product Sets API
The Customer Product Sets API from Optimizely — 8 operation(s) for customer product sets.
Operations 12
Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay
GET
/api/v1/admin/CustomerProductSets
List customer product sets · Returns the EntitySet CustomerProductSets
#
Ask an LLM
“Which customer-specific product sets exist in my commerce admin?”
“Can I filter product sets to one customer with an OData query?”
Tell an agent
List all customer product sets.
List customer product sets matching {filter}.
POST
/api/v1/admin/CustomerProductSets
Create a customer product set · Post a new entity to EntitySet CustomerProductSets
#
Ask an LLM
“How do I create a curated set of products for a specific customer?”
“Can a new customer product set have activation and deactivation dates?”
Tell an agent
Create product set {name} for customer {customerId} described as {description}.
Add a product set {name} active from {activateOn} to {deactivateOn}.
GET
/api/v1/admin/CustomerProductSets({id})
Get a customer product set · Returns the entity with the key from CustomerProductSets
#
Ask an LLM
“What customer and dates are attached to one product set?”
“Can I expand the products when fetching a single customer product set?”
Tell an agent
Get customer product set {id}.
Fetch product set {id} expanding {expand}.
PUT
/api/v1/admin/CustomerProductSets({id})
Replace a customer product set · Replace entity in EntitySet CustomerProductSets
#
Ask an LLM
“How do I overwrite a customer product set's whole record?”
“Can I resend name, description and dates to fully replace a product set?”
Tell an agent
Replace product set {id} with name {name} and description {description}.
Overwrite the full record of customer product set {id} for customer {customerId}.
DELETE
/api/v1/admin/CustomerProductSets({id})
Delete one customer product set · Delete entity in EntitySet CustomerProductSets
#
Ask an LLM
“How do I remove a single customer product set by id?”
“Can a product set delete be guarded by an If-Match ETag?”
Tell an agent destructive · confirm first
Delete customer product set {id}.
Delete product set {id} only if its ETag is still {etag}.
PATCH
/api/v1/admin/CustomerProductSets({id})
Update fields on a customer product set · Update entity in EntitySet CustomerProductSets
#
Ask an LLM
“Can I just change the end date of a customer product set?”
“How do I rename a product set without resending the rest?”
Tell an agent
Set product set {id} to deactivate on {deactivateOn}.
Rename customer product set {id} to {name}.
GET
/api/v1/admin/CustomerProductSets/Default.Default()
Get default values for a new product set · Call operation Default
#
Ask an LLM
“What defaults does a new customer product set start with?”
“Is there a blank product set template for a create form?”
Tell an agent
Get the default template for a customer product set.
Fetch an empty customer product set with default values.
POST
/api/v1/admin/CustomerProductSets/Default.archive
Archive product sets via the archive action · Call operation archive
#
Ask an LLM
“Can I archive several customer product sets rather than delete them?”
“Which POST action archives product sets from a list of ids?”
Tell an agent
Archive customer product sets {ids} with the POST archive action.
Run Default.archive on product sets {ids}.
DELETE
/api/v1/admin/customerproductsets/archive
Archive product sets via the DELETE archive route · Customer product sets archive route
#
Ask an LLM
“Is there a DELETE-verb route for archiving customer product sets?”
“How do I archive product sets through the customerproductsets/archive endpoint?”
Tell an agent destructive · confirm first
Call the DELETE archive route for product sets {ids}.
Archive product sets {ids} via the customerproductsets/archive route.
DELETE
/api/v1/admin/customerproductsets/delete
Bulk delete customer product sets · Customer product sets delete route
#
Ask an LLM
“Can I permanently delete many customer product sets in one call?”
“How do I bulk-remove product sets by id list?”
Tell an agent destructive · confirm first
Bulk delete customer product sets {ids}.
Permanently remove all product sets in {ids}.
GET
/api/v1/admin/customerproductsets({key})/customproperties({custompropertyKey})
Get a custom property on a product set · Customer product sets get custom property by key and custompropertykey
#
Ask an LLM
“What custom property values are stored on a customer product set?”
“Can I read one custom attribute of a product set?”
Tell an agent
Get custom property {custompropertyKey} on product set {key}.
Read extra attribute {custompropertyKey} of customer product set {key}.
GET
/api/v1/admin/customerproductsets({key})/products({productKey})
Get a product within a customer product set · Customer product sets get product by key and productkey
#
Ask an LLM
“Is a particular product included in a customer's product set?”
“Can I fetch one product that belongs to a product set?”
Tell an agent
Get product {productKey} in customer product set {key}.
Check that product {productKey} is part of product set {key}.