Reorder Metadata within Product Type
PUT/product/:guid/metaData/reorder
Change the order of Metadata within the Product Type by specifying a new predecessor successor pair.
The predecessor will be removed from its current place in the Product Type and reinserted directly before (visually: above) the successor.
The successor will retain its current place in the Product Type.
Note it takes two operations to reorder a Metadata to the last position:
first reorder it before the last one, then reorder the last one before it.
Request
Path Parameters
The guid of the Product Type.
- application/json
Body
Input data
The guid of the Metadata that will be moved within the Product Type.
The guid of the Metadata that determines where to move the predecessor.
Responses
- 204
- 403
- 404
- 406
- 500
Reordering of MetaData within Product Type successful.
Unauthorized. You do not have permission to modify the Product Type.
- application/json
- Schema
- Example (from schema)
Schema
The general error code.
The exact reason of failure.
{
"error_code": "string",
"error_description": "string"
}
Product Type or Metadata not found.
- application/json
- Schema
- Example (from schema)
Schema
The general error code.
The exact reason of failure.
{
"error_code": "string",
"error_description": "string"
}
Request is invalid, see error context for validation errors. Or, predecessor and successor are equal.
- application/json
- Schema
- Example (from schema)
Schema
The general error code.
The exact reason of failure.
{
"error_code": "string",
"error_description": "string"
}
Internal server error. Reordering failed or successor does not exist.
- application/json
- Schema
- Example (from schema)
Schema
The general error code.
The exact reason of failure.
{
"error_code": "string",
"error_description": "string"
}