AttributeValues
Retrieve an attribute value by ID.
Unique identifier of the resource
1
An attribute value.
Unauthorized Access
The given resource or object was not found or does not exist.
Server Error
GET /api/v1/attribute_value/{id}/ 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": {
"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"
}
}
Update an attribute value by ID.
Unique identifier of the resource
1
1
The display label of the attribute value
Color Red
The actual value of the attribute
Red
Order of the attribute value
1
ERP code for integration purposes
ERPCODE123
Date and time when the attribute value was created
2021-01-01T00:00:00Z
Date and time when the attribute value was last modified
2021-01-01T00:00:00Z
Attribute value updated successfully.
Required field(s) are missing, data is invalid, or the action is not allowed.
Unauthorized Access
The given resource or object was not found or does not exist.
A custom 406 error occurs due to different validation failures in viewset or service level, such as uniqueness checks or other service-related exceptions.
Server Error
PUT /api/v1/attribute_value/{id}/ 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"
}
}
Delete an attribute value by ID.
Unique identifier of the resource
1
Attribute value deleted successfully.
No content
Unauthorized Access
The given resource or object was not found or does not exist.
Server Error
DELETE /api/v1/attribute_value/{id}/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Accept: */*
No content
Partial update an attribute value by ID.
Unique identifier of the resource
1
1
The display label of the attribute value
Color Red
The actual value of the attribute
Red
Order of the attribute value
1
ERP code for integration purposes
ERPCODE123
Date and time when the attribute value was created
2021-01-01T00:00:00Z
Date and time when the attribute value was last modified
2021-01-01T00:00:00Z
Attribute value updated successfully.
Required field(s) are missing, data is invalid, or the action is not allowed.
Unauthorized Access
The given resource or object was not found or does not exist.
A custom 406 error occurs due to different validation failures in viewset or service level, such as uniqueness checks or other service-related exceptions.
Server Error
PATCH /api/v1/attribute_value/{id}/ 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"
}
}
Create an attribute value.
1
The display label of the attribute value
Color Red
The actual value of the attribute
Red
Order of the attribute value
1
ERP code for integration purposes
ERPCODE123
Date and time when the attribute value was created
2021-01-01T00:00:00Z
Date and time when the attribute value was last modified
2021-01-01T00:00:00Z
Attribute value created successfully.
Required field(s) are missing, data is invalid, or the action is not allowed.
Unauthorized Access
A custom 406 error occurs due to different validation failures in viewset or service level, such as uniqueness checks or other service-related exceptions.
Server Error
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?