Skip to main content
GET
/
products
/
attributes
/
{id}
Get single product attribute
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>"
  ]
}

Path Parameters

id
integer
required

Unique identifier for the attribute.

Response

Product attribute retrieved successfully.

id
integer

Attribute ID.

name
string

Attribute name.

position
integer

Attribute position.

visible
boolean

Define if the attribute is visible on the "Additional information" tab in the product's page.

variation
boolean

Define if the attribute can be used as variation.

options
string[]

List of available term names of the attribute.

I