Skip to main content

Retrieve Product Attribute

Retrieves detailed information about a specific attribute by its id

HTTP Request

GET/api/products/attributes/:id

Authorization

Authorization

  • Required: Yes
  • Permission: Staff with AttributePermission or Admin
  • Permission Code: 1822
  • Authentication: Token-based (Authorization: Token <your_api_key>)

Path Parameters

ParameterTypeRequiredDescription
idIntegerYesUnique ID of the attribute

Example Requests

1import requests
2
3# Retrieve a specific product attribute
4response = requests.get('http://www.example.com/api/products/attributes/456',
5  headers={'Authorization': 'Token <your_api_key>'}
6)
7
8print(response.json())

Response Fields

FieldTypeDescription
idIntegerUnique ID of the product attribute
nameStringName of the attribute(unique)
descriptionObjectDescription of the attribute
created_atString (ISO 8601)Timestamp when product attribute was created
updated_atString (ISO 8601)Timestamp when product attribute was last updated

Example Response

{
"id": 3,
"name": "BusSpeed",
"description": "Ram bus speed",
"created_at": "2025-12-24T15:26:26.560144Z",
"updated_at": "2025-12-24T15:26:26.560149Z"
}