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: { "category": { "name": "Test Updated" } } response: { "id": 3, "name": "Test Updated", "description": null, "parent_id": null, "category_set_id": 1, "path": "default: Test", "category_set": { "id": 1, "name": "default" } }
Param name | Description |
---|---|
category required |
Validations:
|
category[category_set] optional , nil allowed |
Category set name. Default is ‘default’ category set. Ignored if parent_id is provided. Validations:
|
category[path] optional , nil allowed |
Full path of the category including all ancestors. Ignored if name is provided. Validations:
|
category[name] optional , nil allowed |
Category name Validations:
|
category[parent_id] optional , nil allowed |
Parent category id Validations:
|
category[description] optional , nil allowed |
Category description Validations:
|
category[sort_order] optional , nil allowed |
Sort order for category. Must be positive whole number Validations:
|
category[attribute_values] optional , nil allowed |
Attribute values assigned to the Category. Validations:
|
category[media_items] optional , nil allowed |
Set media items to the entity (existing media items will be removed). Validations:
|
category[media_items][media_item_type] optional , nil allowed |
Validations:
|
category[media_items][url] optional , nil allowed |
URL that stores the corresponding media item Validations:
|
category[media_items][description] optional , nil allowed |
Description for the media item Validations:
|
category[media_items][sort_order_position] optional , nil allowed |
The position of the media item. Non negative integer is supported Validations:
|
category[media_items][is_primary] optional , nil allowed |
Make this media item as primary Validations:
|
category[media_items][tag_list] optional , nil allowed |
Tags for this media item Validations:
|
category[media_items][processing_options] optional , nil allowed |
Options to perform extra image processing on the media item. This is applicable only when media_item_type is ‘ImageMediaItem’ Validations:
|
category[media_items][processing_options][apply_background] optional , nil allowed |
Setting this to true would result in a new media item created against the product with background applied. Removes transparency. Validations:
|
category[media_items][processing_options][background_colour] optional , nil allowed |
The colour name or a hex colour code for the background colour for the created media item. Defaults to white. Validations:
|
category[media_items][processing_options][processed_tags] optional , nil allowed |
The tags for the created media item. Validations:
|