Attribute Values
Retrieve a list of attribute values with optional filtering.
Authorizations
Query parameters
pageinteger · min: 1OptionalDefault:
Specifies the page number of the current dataset
1
limitinteger · min: 1OptionalDefault:
Indicates the number of rows on the current page.
10
labelstringOptionalExample:
The display label of the attribute value
Color
valuestringOptionalExample:
Filter by value (contains)
Red
erp_codestringOptionalExample:
Filter by ERP code (contains)
ERPCODE123
value__exactstringOptionalExample:
Filter by value (exact match)
Red
pk__ininteger[]Optional
Filter by multiple primary key values (comma-separated list of integers)
attributeinteger · int64OptionalExample:
Filter by related attribute ID
1
Responses
200
A list of attribute values.
application/json
401
Unauthorized Access
application/json
500
Server Error
get
GET /api/v1/attribute_value/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Accept: */*
[
{
"id": 1,
"attribute": {
"id": 1,
"default_value": {
"id": 1,
"attribute": {
"id": 1,
"default_value": {
"id": 1,
"attribute": "[Circular Reference]",
"label": "Color Red",
"value": "Red",
"order": 1,
"erp_code": "ERPCODE123",
"created_date": "2021-01-01T00:00:00Z",
"modified_date": "2021-01-01T00:00:00Z",
"translations": {
"ANY_ADDITIONAL_PROPERTY": "text"
}
},
"entity_type": {
"id": 1,
"app_label": "text",
"model": "text"
},
"erp_code": "ERPCODE123",
"pre_attribute": true,
"description": "This is a color attribute",
"name": "Color",
"key": "color",
"data_type": "text"
},
"label": "Color Red",
"value": "Red",
"order": 1,
"erp_code": "ERPCODE123",
"created_date": "2021-01-01T00:00:00Z",
"modified_date": "2021-01-01T00:00:00Z",
"translations": {
"ANY_ADDITIONAL_PROPERTY": "text"
}
},
"entity_type": {
"id": 1,
"app_label": "text",
"model": "text"
},
"erp_code": "ERPCODE123",
"pre_attribute": true,
"description": "This is a color attribute",
"name": "Color",
"key": "color",
"data_type": "text"
},
"label": "Color Red",
"value": "Red",
"order": 1,
"erp_code": "ERPCODE123",
"created_date": "2021-01-01T00:00:00Z",
"modified_date": "2021-01-01T00:00:00Z",
"translations": {
"ANY_ADDITIONAL_PROPERTY": "text"
}
}
]
Create an attribute value.
Authorizations
Body
idinteger · int64OptionalExample:
1
labelstring | nullableOptionalExample:
The display label of the attribute value
Color Red
valuestringOptionalExample:
The actual value of the attribute
Red
orderinteger | nullableOptionalExample:
Order of the attribute value
1
erp_codestring · max: 255OptionalExample:
ERP code for integration purposes
ERPCODE123
created_datestring · date-timeOptionalExample:
Date and time when the attribute value was created
2021-01-01T00:00:00Z
modified_datestring · date-timeOptionalExample:
Date and time when the attribute value was last modified
2021-01-01T00:00:00Z
Responses
201
Attribute value created successfully.
application/json
400
Required field(s) are missing, data is invalid, or the action is not allowed.
application/json
401
Unauthorized Access
application/json
406
A custom 406 error occurs due to different validation failures in viewset or service level, such as uniqueness checks or other service-related exceptions.
application/json
500
Server Error
post
POST /api/v1/attribute_value/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 1150
{
"id": 1,
"attribute": {
"id": 1,
"default_value": {
"id": 1,
"attribute": {
"id": 1,
"default_value": {
"id": 1,
"attribute": {
"id": 1,
"default_value": "[Circular Reference]",
"entity_type": {
"app_label": "text",
"model": "text"
},
"erp_code": "ERPCODE123",
"pre_attribute": true,
"description": "This is a color attribute",
"name": "Color",
"key": "color",
"data_type": "text"
},
"label": "Color Red",
"value": "Red",
"order": 1,
"erp_code": "ERPCODE123",
"created_date": "2021-01-01T00:00:00Z",
"modified_date": "2021-01-01T00:00:00Z"
},
"entity_type": {
"app_label": "text",
"model": "text"
},
"erp_code": "ERPCODE123",
"pre_attribute": true,
"description": "This is a color attribute",
"name": "Color",
"key": "color",
"data_type": "text"
},
"label": "Color Red",
"value": "Red",
"order": 1,
"erp_code": "ERPCODE123",
"created_date": "2021-01-01T00:00:00Z",
"modified_date": "2021-01-01T00:00:00Z"
},
"entity_type": {
"app_label": "text",
"model": "text"
},
"erp_code": "ERPCODE123",
"pre_attribute": true,
"description": "This is a color attribute",
"name": "Color",
"key": "color",
"data_type": "text"
},
"label": "Color Red",
"value": "Red",
"order": 1,
"erp_code": "ERPCODE123",
"created_date": "2021-01-01T00:00:00Z",
"modified_date": "2021-01-01T00:00:00Z"
}
{
"id": 1,
"attribute": {
"id": 1,
"default_value": {
"id": 1,
"attribute": {
"id": 1,
"default_value": {
"id": 1,
"attribute": {
"id": 1,
"default_value": "[Circular Reference]",
"entity_type": {
"id": 1,
"app_label": "text",
"model": "text"
},
"erp_code": "ERPCODE123",
"pre_attribute": true,
"description": "This is a color attribute",
"name": "Color",
"key": "color",
"data_type": "text"
},
"label": "Color Red",
"value": "Red",
"order": 1,
"erp_code": "ERPCODE123",
"created_date": "2021-01-01T00:00:00Z",
"modified_date": "2021-01-01T00:00:00Z",
"translations": {
"ANY_ADDITIONAL_PROPERTY": "text"
}
},
"entity_type": {
"id": 1,
"app_label": "text",
"model": "text"
},
"erp_code": "ERPCODE123",
"pre_attribute": true,
"description": "This is a color attribute",
"name": "Color",
"key": "color",
"data_type": "text"
},
"label": "Color Red",
"value": "Red",
"order": 1,
"erp_code": "ERPCODE123",
"created_date": "2021-01-01T00:00:00Z",
"modified_date": "2021-01-01T00:00:00Z",
"translations": {
"ANY_ADDITIONAL_PROPERTY": "text"
}
},
"entity_type": {
"id": 1,
"app_label": "text",
"model": "text"
},
"erp_code": "ERPCODE123",
"pre_attribute": true,
"description": "This is a color attribute",
"name": "Color",
"key": "color",
"data_type": "text"
},
"label": "Color Red",
"value": "Red",
"order": 1,
"erp_code": "ERPCODE123",
"created_date": "2021-01-01T00:00:00Z",
"modified_date": "2021-01-01T00:00:00Z",
"translations": {
"ANY_ADDITIONAL_PROPERTY": "text"
}
}
Was this helpful?