Choice Set Values
This is used to view, create, update and delete choice set values.
Choice Set Value Properties
| id |
{ "id" : 255 }
The unique ID of the choice set value |
| name |
{ "name": "Blue" }
The name for the choice set value |
| price |
{ "price" : 9.95 }
The price the customer will pay for selecting the choice set value (in addition to the normal price for the product) |
| sortOrder |
{ "sortOrder" : 2 }
The sort order for the choice set value |
What you can do with choice set values
POST /v1/choice-set-values
Create a new choice set
PUT /v1/choice-set-values/ID
Update a choice set
DELETE /v1/choice-set-values
Delete a choice set
POST /v1/choice-set-values
Creates a new choice set value.
| name | required |
| set | required |
| price | optional |
| sortOrder | optional |
POST /v1/choice-set-values
POST /v1/choice-sets-values
{
"set": 1,
"name": "Blue",
"price": 9.95,
"sortOrder": 2
}
POST /v1/choice-set-values
HTTP/1.1 201 Created
{
"id": 1,
"name": "Blue",
"price": 9.95,
"sortOrder": 2
}
PUT /v1/choice-set-values/ID
Update a choice set.
PUT /v1/choice-set-values/1
PUT /v1/choice-set-values/1
{
"name": "Light Blue"
}
PUT /v1/choice-set-values/1
HTTP/1.1 200 OK
{
"id": 1,
"name": "Light Blue",
"price": 9.95,
"sortOrder": 2
}
DELETE /v1/choice-set-values/ID
Deletes an existing choice set value.
Returns 204 No Content on success.