Option Set Options
Option Set Options
Options belonging to an option set.
This is archived documentation. The V2 Catalog API is deprecated. For current API documentation, see the Catalog API.
Option Set Option Object Properties
List Option Set Options
Gets the options associated with an option set. (Default sorting is by option id, from lowest to highest.)
GET /stores/{store_hash}/v2/option_sets/{option_set_id}/options
Pagination
Parameters can be added to the URL query string to paginate the collection. The maximum limit is 250. If a limit isn’t provided, up to 50 option_set_options are returned by default.
Response
Example JSON returned in the response:
Get an Option Set Option
Gets an option set option.
GET /stores/{store_hash}/v2/option_sets/{option_set_id}/options/{id}
Response
Example JSON returned in the response:
Create an Option Set Option
Creates a new option associated with an option set.
POST /stores/{store_hash}/v2/option_sets/{option_set_id}/options
Read-only Properties
The following properties of the option set option are read-only. If one or more of these properties are included in the request, it will be rejected.
- id
- option_set_id
- values
- option
Requirements
The following properties of the option set option are required. The request won’t be fulfilled unless these properties are valid.
- option_id
Request
Example request object:
Response
Example JSON returned in the response:
Update an Option Set Option
Updates an existing option set option.
PUT /stores/{store_hash}/v2/option_sets/{option_set_id}/options/{id}
Read-only Properties
The following properties of the option set option are read-only. If one or more of these properties are included in the request, it will be rejected.
- id
- option_id
- option_set_id
- values
- option
Requirements
The following properties of the option set option are required. The request won’t be fulfilled unless these properties are valid.
Request
Example request object:
Response
Example JSON returned in the response:
Delete an Option Set Option
Deletes an option belonging to an option set.
DELETE /stores/{store_hash}/v2/option_sets/{option_set_id}/options/{id}
Delete Multiple Option Set Options
Deletes multiple options associated with an option set.
DELETE /stores/{store_hash}/v2/option_sets/{option_set_id}/options
Pagination
Parameters can be added to the URL query string to paginate the collection. The maximum limit is 250. If a limit isn’t provided, up to 50 option_set_options are returned by default.