| Code | Description |
|---|---|
| 401 | Unauthorized. Include a WWW-Authenticate header field containing a challenge applicable to the requested resource. |
| 403 | Forbidden. The request was a valid request, but the server is refusing to respond to it. 403 error semantically means "unauthorized", i.e. the user does not have the necessary permissions for the resource. |
| 404 | Not Found. The requested resource could not be found. |
| 422 | Unprocessable Entity. The request was well-formed but was unable to be followed due to semantic errors. |
| 500 | Internal Server Error. An unexpected condition was encountered. |
request:
{
"association_attribute_value": {
"entity_code": "Product_ABC",
"entity_type": "Product",
"associated_id": "npc_entity_1",
"associated_type": "NpcEntity",
"attribute_definition_code": "season_npc"
}
}
or
{
"association_attribute_value": {
"entity_id": "34",
"entity_type": "Product",
"associated_id": "2",
"associated_type": "NpcEntity",
"attribute_definition_code": "20"
}
}
response:
{
"id": 8,
"attribute_definition_id": 20,
"entity_id": 34,
"entity_type": "Product",
"associated_id": 2,
"associated_type": "NpcEntity",
"created_at": "2019-09-06T14:25:09.236+10:00",
"updated_at": "2019-09-06T14:26:10.492+10:00"
}
| Param name | Description |
|---|---|
|
association_attribute_value required |
Validations:
|
|
association_attribute_value[entity_id] optional , nil allowed |
Entity ID Validations:
|
|
association_attribute_value[entity_type] required |
Validations:
|
|
association_attribute_value[entity_code] optional , nil allowed |
Entity code Validations:
|
|
association_attribute_value[associated_id] optional , nil allowed |
Associated ID Validations:
|
|
association_attribute_value[associated_type] required |
Validations:
|
|
association_attribute_value[associated_code] optional , nil allowed |
Associated code Validations:
|
|
association_attribute_value[attribute_definition_id] optional , nil allowed |
Attribute Definition ID Validations:
|
|
association_attribute_value[attribute_definition_code] optional , nil allowed |
Attribute Definition code Validations:
|