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: { "attribute_group_assignment": { "attribute_group_id": 2, "assignment_target": "self", "assignment_type": "global", "assignment_global_type": "MediaItem" } } Sample: Assign attribute group to all categories under specified category set (category set with id 1 in this example) { "attribute_group_assignment": { "attribute_group_id": 2, "assignment_target": "children", "assignment_type": "specific", "assigned_entity_id": 1, "assigned_entity_type": "CategorySet" } } response: { "id": 1, "attribute_group_id": 2, "assignment_target": "self", "assignment_type": "global", "assignment_global_type": "MediaItem", "attribute_group_code": "media_item_ag1" }
Param name | Description |
---|---|
attribute_group_assignment required |
Validations:
|
attribute_group_assignment[attribute_group_id] optional , nil allowed |
Attribute Group ID Validations:
|
attribute_group_assignment[assigned_entity_id] optional , nil allowed |
ID of Entity to which the attribute group is being assigned. For example; the ID of CategorySet if the attribute group is being assigned to CategorySet Validations:
|
attribute_group_assignment[assigned_entity_type] optional , nil allowed |
Type of entity to which the attribute group is being assigned Validations:
|
attribute_group_assignment[assignment_target] optional , nil allowed |
Target entity to which the attribute group is being assigned. For example; if the assignment_target is self and provided entity is CategorySet, the attribute group will be assigned to CategorySet itself and if the assignment_target is children, the attribute group will be assigned to the categories under the provided category set Validations:
|
attribute_group_assignment[assignment_type] optional , nil allowed |
If global, the attribute group will be assigned across all the provided assignment_global_type. If specific, the attribute group will be assigned to specifc entities. For example; assign attribute group to all the categories under specific category set Validations:
|
attribute_group_assignment[assignment_global_type] optional , nil allowed |
Type of Entity for assigning attribute group to when the assignment_type is global, Validations:
|