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
| Parameter | Type | Required | Description |
|---|---|---|---|
| id | Integer | Yes | Unique ID of the attribute |
Example Requests
- 🐍 Python
- 🌐 Curl
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())1# Retrieve a specific product attribute
2curl -X GET "http://www.example.com/api/products/attributes/456" \
3-H "Authorization: Token <your_api_key>"Response Fields
| Field | Type | Description |
|---|---|---|
| id | Integer | Unique ID of the product attribute |
| name | String | Name of the attribute(unique) |
| description | Object | Description of the attribute |
| created_at | String (ISO 8601) | Timestamp when product attribute was created |
| updated_at | String (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"
}