Documentation is still being updated. Some content maybe unfinished.
curl --request GET \
--url {protocol}://{host}/wp-json/cocart/v1/products/attributes/{attribute_id}/terms[
{
"id": 123,
"name": "<string>",
"slug": "<string>",
"description": "<string>",
"count": 123,
"links": {
"self": [
{
"href": "<string>"
}
],
"collection": [
{
"href": "<string>"
}
],
"up": [
{
"href": "<string>"
}
]
}
}
]Returns a list of product attribute terms.
A valid request URL is required to generate request examples[
{
"id": 123,
"name": "<string>",
"slug": "<string>",
"description": "<string>",
"count": 123,
"links": {
"self": [
{
"href": "<string>"
}
],
"collection": [
{
"href": "<string>"
}
],
"up": [
{
"href": "<string>"
}
]
}
}
]Unique identifier for the attribute of the terms.
Scope under which the request is made; determines fields present in response.
view, embed Current page of the collection.
Maximum number of items to be returned in result set.
x <= 100Limit results to those matching a string.
Ensure result set excludes specific IDs.
Limit result set to specific IDs.
Offset the result set by a specific number of items.
Order sort attribute ascending or descending.
asc, desc Sort collection by object attribute.
id, include, name, slug, term_group, description, count, menu_order Whether to hide resources not assigned to any products.
Limit result set to resources assigned to a specific product.
Limit result set to resources with a specific slug.
Was this page helpful?