Documentation is still being updated. Some content maybe unfinished.
A valid request URL is required to generate request examples{
"id": 123,
"name": "<string>",
"position": 123,
"visible": true,
"variation": true,
"options": [
"<string>"
]
}Gets a single product attribute by ID.
curl --request GET \
--url {protocol}://{host}/wp-json/cocart/v2/products/attributes/{id}{
"id": 123,
"name": "<string>",
"position": 123,
"visible": true,
"variation": true,
"options": [
"<string>"
]
}Unique identifier for the attribute.
Product attribute retrieved successfully.
Attribute ID.
Attribute name.
Attribute position.
Define if the attribute is visible on the "Additional information" tab in the product's page.
Define if the attribute can be used as variation.
List of available term names of the attribute.
Was this page helpful?