Optimizely Attribute Values API
The Attribute Values API from Optimizely — 11 operation(s) for attribute values.
Operations 15
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/AttributeValues
List product attribute values · Returns the EntitySet AttributeValues
#
Ask an LLM
“What attribute values, like Red or Large, exist in my commerce catalog?”
“Can I filter attribute values to only active ones for a given attribute type?”
Tell an agent
List all attribute values.
List attribute values where {filter}, sorted by {orderby}.
POST
/api/v1/admin/AttributeValues
Create an attribute value · Post a new entity to EntitySet AttributeValues
#
Ask an LLM
“How do I add a new option such as Navy to an existing product attribute?”
“Can I set the display sort order when creating an attribute value?”
Tell an agent
Create attribute value {value} under attribute type {attributeTypeId}.
Add attribute value {value} with sort order {sortOrder}.
GET
/api/v1/admin/AttributeValues({id})
Get an attribute value by id · Returns the entity with the key from AttributeValues
#
Ask an LLM
“Can I look up a single attribute value record by its id?”
“Which attribute type does a particular attribute value belong to?”
Tell an agent
Get attribute value {id}.
Fetch attribute value {id} with {expand} expanded.
PUT
/api/v1/admin/AttributeValues({id})
Replace an attribute value · Replace entity in EntitySet AttributeValues
#
Ask an LLM
“Is there a way to overwrite every field of an attribute value in one call?”
“What must I send to fully replace an existing attribute value record?”
Tell an agent
Replace attribute value {id} with value {value}.
Overwrite the whole attribute value record {id} with value {value} and active flag {isActive}.
DELETE
/api/v1/admin/AttributeValues({id})
Delete an attribute value · Delete entity in EntitySet AttributeValues
#
Ask an LLM
“Can I permanently delete one attribute value by its id?”
“Does deleting a single attribute value support an If-Match ETag check?”
Tell an agent destructive · confirm first
Delete attribute value {id}.
Delete attribute value {id} only if its ETag is {etag}.
PATCH
/api/v1/admin/AttributeValues({id})
Update fields on an attribute value · Update entity in EntitySet AttributeValues
#
Ask an LLM
“How do I deactivate an attribute value without resending the whole record?”
“Can I just change the sort position of one attribute value?”
Tell an agent
Set attribute value {id} active flag to {isActive}.
Change the sort order of attribute value {id} to {sortOrder}.
GET
/api/v1/admin/AttributeValues/Default.Default()
Get a blank attribute value template · Call operation Default
#
Ask an LLM
“What default fields does a new attribute value start with?”
“Is there an empty attribute value template I can fill in before creating one?”
Tell an agent
Get the default attribute value template.
Show me the default values for a new attribute value.
POST
/api/v1/admin/AttributeValues/Default.archive
Archive attribute values via the archive action · Call operation archive
#
Ask an LLM
“Can I archive attribute values with the POST archive action instead of deleting them?”
“How do I retire several attribute values through the Default.archive operation?”
Tell an agent
Archive attribute values {ids} using the archive action.
Run the POST archive action on attribute values {ids}.
GET
/api/v1/admin/attributevalues/forproduct(productId={productId})
List attribute values available for a product · Attribute values get attribute values available by productid
#
Ask an LLM
“Which attribute values can be assigned to a specific product?”
“Can I include or exclude archived values when listing a product's available attribute values?”
Tell an agent
List attribute values available for product {productId}.
Show attribute values for product {productId} with archive filter {archiveFilter}.
DELETE
/api/v1/admin/attributevalues/archive
Archive attribute values via the archive route · Attribute values archive route
#
Ask an LLM
“Is there a DELETE route that archives a batch of attribute values by id?”
“Can I send a list of ids to the attribute values archive endpoint?”
Tell an agent destructive · confirm first
Archive attribute values {ids} through the DELETE archive route.
Send ids {ids} to the attribute values archive route.
DELETE
/api/v1/admin/attributevalues/delete
Bulk delete attribute values · Attribute values delete route
#
Ask an LLM
“Can I permanently delete many attribute values in one request?”
“How do I remove a list of attribute values by their ids all at once?”
Tell an agent destructive · confirm first
Bulk delete attribute values {ids}.
Permanently remove the attribute values with ids {ids}.
GET
/api/v1/admin/attributevalues({key})/badges({badgeKey})
Get a badge linked to an attribute value · Attribute values get badge by key and badgekey
#
Ask an LLM
“Which badge is attached to a particular attribute value?”
“Can I fetch one badge through the attribute value it is linked to?”
Tell an agent
Get badge {badgeKey} on attribute value {key}.
Show the badge {badgeKey} linked to attribute value {key} with only {select}.
GET
/api/v1/admin/attributevalues({key})/categories({categoryKey})
Get a category linked to an attribute value · Attribute values get category by key and categorykey
#
Ask an LLM
“Which catalog category is associated with a given attribute value?”
“Can I read one category through its attribute value relationship?”
Tell an agent
Get category {categoryKey} for attribute value {key}.
Fetch category {categoryKey} under attribute value {key} expanding {expand}.
GET
/api/v1/admin/attributevalues({key})/customproperties({custompropertyKey})
Get a custom property of an attribute value · Attribute values get custom property by key and custompropertykey
#
Ask an LLM
“What custom property values are stored on an attribute value?”
“Can I read one extension field from an attribute value?”
Tell an agent
Get custom property {custompropertyKey} of attribute value {key}.
Read the custom field {custompropertyKey} on attribute value {key}.
GET
/api/v1/admin/attributevalues({key})/products({productKey})
Get a product tagged with an attribute value · Attribute values get product by key and productkey
#
Ask an LLM
“Is a specific product tagged with this attribute value?”
“Can I fetch one product through the attribute value it carries?”
Tell an agent
Get product {productKey} under attribute value {key}.
Show product {productKey} linked to attribute value {key} with {expand} expanded.