> For the complete documentation index, see [llms.txt](https://docs.simplio3d.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.simplio3d.com/api-reference/open-api/options/options.md).

# Options

Managing Configurator Options

## <mark style="color:green;">GET</mark> /configurator-options/types/list

#### Retrieve Available Configurator Option Types

**Endpoint**

`GET /open-api/v1/configurator-options/types/list`

**Description**

This endpoint retrieves the list of available configurator option types supported by Simplio3D.

**Request Headers**

* `Authorization`: Bearer token for authentication

**Response**

* **200 OK**: Returns a JSON object containing an array of available option types.
* **400 Bad Request**: Invalid request parameters.
* **401 Unauthorized**: Invalid or missing authentication token.

**Example Response**

```json
{
  "optionTypes": [
    "color",
    "size",
    "material",
    "custom-text"
  ]
}
```

**Notes**

* Ensure you have valid authentication to access this endpoint.
* Utilize the retrieved option types to understand and configure products efficiently within Simplio3D.
* Ensure you have the necessary authorization credentials (e.g., Bearer Token) to access this endpoint which is taken from the 'Share' tab encryption token found at the bottom of the page.

## Retrieve available configurator option types

> Get a list of available configurator option types.

```json
{"openapi":"3.0.0","info":{"title":"Simplio3D-Open REST API","version":"1.0.0"},"tags":[{"name":"Configurator Options","description":"API Endpoints for managing configurator 3D asset models"}],"servers":[{"url":"https://app.simplio3d.com","description":"API Open Base URL"},{"url":""}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"Enter token in format (Bearer <your_token>)"}}},"paths":{"/api/open-api/v1/configurator-options/types/list":{"get":{"tags":["Configurator Options"],"summary":"Retrieve available configurator option types","description":"Get a list of available configurator option types.","operationId":"377d0fed185a7a3f3a39a139d6e02325","responses":{"200":{"description":"List of configurator option types","content":{"application/json":{"schema":{"properties":{"data":{"type":"array","items":{"properties":{"default":{"type":"string"},"checkbox":{"type":"string"},"material":{"type":"string"},"numeral":{"type":"string"},"radio":{"type":"string"},"section":{"type":"string"},"select":{"type":"string"},"select_thumb":{"type":"string"},"text":{"type":"string"},"upload":{"type":"string"},"arrows":{"type":"string"},"patterns":{"type":"string"},"canvas":{"type":"string"},"repeat":{"type":"string"},"rotation":{"type":"string"}},"type":"object"}}},"type":"object"}}}},"401":{"description":"Unauthorized request"},"500":{"description":"Internal server error"}}}}}}
```

## <mark style="color:green;">GET</mark> /configurator-option/{id}

Retrieve details of a specific configurator option using its ID.

#### `GET /configurator-option/{id}`

**Request**

* **Endpoint:** `/configurator-option/{id}`
* **Method:** `GET`
* **Authentication:** Required

**Parameters**

* **id** (string): The unique identifier of the configurator option.

**Response**

A successful request returns a JSON object with details of the configurator option, including:

* **id** (string): The unique identifier of the option.
* **name** (string): The name of the option.
* **description** (string, optional): A description of the option.
* **type** (string): The type of option, e.g., "color", "size".
* **values** (array): The possible values for this option.

**Example Request**

```http
GET /configurator-option/12345 HTTP/1.1
Authorization: Bearer YOUR_ACCESS_TOKEN
Host: api.simplio3d.com
```

**Example Response**

```json
{
  "id": "12345",
  "name": "Color",
  "description": "Select the color for the product",
  "type": "color",
  "values": ["red", "green", "blue"]
}
```

**Notes**

* Ensure proper handling of the authentication token in your API calls.
* Use this endpoint to look up and validate option specifications for product configurators.
* Ensure you have the necessary authorization credentials (e.g., Bearer Token) to access this endpoint which is taken from the 'Share' tab encryption token found at the bottom of the page.

## Get configurator option by ID

> Get a specific configurator option by ID.

```json
{"openapi":"3.0.0","info":{"title":"Simplio3D-Open REST API","version":"1.0.0"},"tags":[{"name":"Configurator Options","description":"API Endpoints for managing configurator 3D asset models"}],"servers":[{"url":"https://app.simplio3d.com","description":"API Open Base URL"},{"url":""}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"Enter token in format (Bearer <your_token>)"}},"schemas":{"ConfiguratorOptionsResource":{"title":"Configurator Options Resource","description":"Configurator Options Resource Schema","required":["id","title","option_type","settings","parameter_list","order","created_at","updated_at"],"properties":{"id":{"description":"Unique identifier of the configurator option","type":"integer"},"configurator_id":{"description":"ID of the associated configurator","type":"integer"},"title":{"description":"Title of the configurator option","type":"string"},"option_type":{"description":"Type of the configurator option","type":"string"},"settings":{"description":"Settings of the configurator option in JSON format","type":"string"},"parameter_list":{"description":"List of parameters for the option","type":"string"},"order":{"description":"Order position of the option","type":"integer"},"created_at":{"description":"Timestamp when the option was created","type":"string","format":"date-time"},"updated_at":{"description":"Timestamp when the option was last updated","type":"string","format":"date-time"},"created_by":{"description":"User who created the option","type":"string"}},"type":"object"}}},"paths":{"/api/open-api/v1/configurator-options/{id}":{"get":{"tags":["Configurator Options"],"summary":"Get configurator option by ID","description":"Get a specific configurator option by ID.","operationId":"ba817dcdd52186f7fefc1b34445b9f98","parameters":[{"name":"id","in":"path","description":"ID of the configurator option","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfiguratorOptionsResource"}}}},"401":{"description":"Unauthorized"},"404":{"description":"Configurator option not found"},"500":{"description":"Server error"}}}}}}
```

## <mark style="color:green;">GET</mark> /configurator-options

#### Fetch All Configurator Options

To retrieve all configurator options, use the `GET /configurator-options` endpoint. This endpoint returns a list of options available for product configuration.

**Request**

* **Method:** GET
* **Endpoint:** `/configurator-options`
* **Headers:**

  * `Authorization: Bearer <your_auth_token>`

  **Response**

  A successful response will return a JSON object with details such as option `id`, `name`, `description`, `type`, and `values`.

**Example Response**

```json
[
  {
    "id": "12345",
    "name": "Color",
    "description": "Select the color for the product",
    "type": "color",
    "values": ["red", "green", "blue"]
  },
  {
    "id": "67890",
    "name": "Size",
    "description": "Choose the size for the product",
    "type": "dropdown",
    "values": ["small", "medium", "large"]
  }
]
```

**Notes**

* Ensure that the authentication token is included in the request header to access the endpoint successfully.
* Use this data to validate and check available options for product configurators efficiently.
* Ensure you have the necessary authorization credentials (e.g., Bearer Token) to access this endpoint which is taken from the 'Share' tab encryption token found at the bottom of the page.

## Fetch all configurator options

> Get a list of configurator 3D assets models.

```json
{"openapi":"3.0.0","info":{"title":"Simplio3D-Open REST API","version":"1.0.0"},"tags":[{"name":"Configurator Options","description":"API Endpoints for managing configurator 3D asset models"}],"servers":[{"url":"https://app.simplio3d.com","description":"API Open Base URL"},{"url":""}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"Enter token in format (Bearer <your_token>)"}},"schemas":{"ConfiguratorOptionsResource":{"title":"Configurator Options Resource","description":"Configurator Options Resource Schema","required":["id","title","option_type","settings","parameter_list","order","created_at","updated_at"],"properties":{"id":{"description":"Unique identifier of the configurator option","type":"integer"},"configurator_id":{"description":"ID of the associated configurator","type":"integer"},"title":{"description":"Title of the configurator option","type":"string"},"option_type":{"description":"Type of the configurator option","type":"string"},"settings":{"description":"Settings of the configurator option in JSON format","type":"string"},"parameter_list":{"description":"List of parameters for the option","type":"string"},"order":{"description":"Order position of the option","type":"integer"},"created_at":{"description":"Timestamp when the option was created","type":"string","format":"date-time"},"updated_at":{"description":"Timestamp when the option was last updated","type":"string","format":"date-time"},"created_by":{"description":"User who created the option","type":"string"}},"type":"object"}}},"paths":{"/api/open-api/v1/configurator-options":{"get":{"tags":["Configurator Options"],"summary":"Fetch all configurator options","description":"Get a list of configurator 3D assets models.","operationId":"a0ca20f2e85eed6d6f24a27a651638c5","parameters":[{"name":"order_by","in":"query","description":"Column to order results by (e.g., 'created_at')","required":false,"schema":{"type":"string"}},{"name":"order","in":"query","description":"Sorting order (asc or desc)","required":false,"schema":{"type":"string","enum":["asc","desc"]}},{"name":"per_page","in":"query","description":"Number of records per page (-1 for all records)","required":false,"schema":{"type":"integer"}},{"name":"page","in":"query","description":"Number of page","required":false,"schema":{"type":"integer"}}],"responses":{"200":{"description":"List of configurator options","content":{"application/json":{"schema":{"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/ConfiguratorOptionsResource"}}},"type":"object"}}}},"400":{"description":"Invalid request parameters"},"401":{"description":"Unauthorized request"},"403":{"description":"Forbidden - user does not have permission"},"500":{"description":"Internal server error"}}}}}}
```

## <mark style="color:green;">GET</mark> /configurator-options-variations

#### Retrieve a List of Configurator Option Variations

To retrieve a list of configurator option variations, you will need to make a GET request to the Simplio3D API endpoint designed for this purpose. Below is a brief explanation of how to interact with this endpoint:

**Endpoint:**

`GET /api/configurator-options-variations`

**Headers:**

* `Authorization: Bearer YOUR_AUTH_TOKEN`

**Response Format:**

The endpoint responds with a JSON array where each element contains details about a specific configurator option. Example structure of each item in the array:

* `id`: Unique identifier for the option.
* `name`: Name of the option.
* `description`: Brief description of the option.
* `type`: Type of input field (e.g., "color", "dropdown").
* `values`: An array of possible values.

Ensure to replace `YOUR_AUTH_TOKEN` with your actual authentication token and verify that your request headers are correctly set for successful interaction with the API.

**NOTE:** Ensure you have the necessary authorization credentials (e.g., Bearer Token) to access this endpoint which is taken from the 'Share' tab encryption token found at the bottom of the page.

## Retrieve a list of configurator option variations

> Get a list of configurator option variations.

```json
{"openapi":"3.0.0","info":{"title":"Simplio3D-Open REST API","version":"1.0.0"},"tags":[{"name":"Configurator Option Variations","description":"Configurator Option Variations"}],"servers":[{"url":"https://app.simplio3d.com","description":"API Open Base URL"},{"url":""}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"Enter token in format (Bearer <your_token>)"}},"schemas":{"ConfiguratorOptionVariationsResource":{"title":"Configurator Option Variations Resource","description":"Schema for configurator option variations","properties":{"id":{"type":"integer"},"configurator_id":{"type":"integer"},"configurator_option_id":{"type":"integer"},"configurator_option_value":{"type":"string"},"title":{"type":"string"},"name":{"type":"string"},"settings":{"type":"string"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}},"type":"object"}}},"paths":{"/api/open-api/v1/configurator-option-variations":{"get":{"tags":["Configurator Option Variations"],"summary":"Retrieve a list of configurator option variations","description":"Get a list of configurator option variations.","operationId":"1cad4c90a74d903aa141d4b88cea869b","parameters":[{"name":"configurator_option_id","in":"query","description":"The ID of the configurator option for which to retrieve variations.","required":false,"schema":{"type":"integer"}}],"responses":{"200":{"description":"List of configurator option variations","content":{"application/json":{"schema":{"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/ConfiguratorOptionVariationsResource"}}},"type":"object"}}}},"400":{"description":"Invalid request parameters"},"401":{"description":"Unauthorized request"},"403":{"description":"Forbidden - user does not have permission"},"500":{"description":"Internal server error"}}}}}}
```

To set configurator options using a POST request in Simplio3D, ensure you include your Open API token in the request headers for authentication. Your request should contain the configurator option details in JSON format. Here's a sample structure:

```json
{
  "id": "option1",
  "name": "Color Selection",
  "description": "Choose your preferred color",
  "type": "dropdown",
  "values": ["Red", "Green", "Blue"]
}
```

Always verify that your API token is correctly placed in the headers for seamless interaction.

## Set configurator options using Open API token

> Set and save configurator options for a user token.

```json
{"openapi":"3.0.0","info":{"title":"Simplio3D-Open REST API","version":"1.0.0"},"tags":[{"name":"Configurator Options","description":"API Endpoints for managing configurator 3D asset models"}],"servers":[{"url":"https://app.simplio3d.com","description":"API Open Base URL"},{"url":""}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"Enter token in format (Bearer <your_token>)"}}},"paths":{"/api/open-api/v1/configurator-options/set/new-options":{"post":{"tags":["Configurator Options"],"summary":"Set configurator options using Open API token","description":"Set and save configurator options for a user token.","operationId":"2563c42c83509ba0316ba9a0c4b8ab32","requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"required":["options"],"properties":{"options":{"description":"JSON formatted Configurator options override data.","type":"string"}},"type":"object"}}}},"responses":{"200":{"description":"Configurator options updated successfully","content":{"application/json":{"schema":{"properties":{"success":{"type":"boolean"},"message":{"type":"string"},"data":{"type":"string"}},"type":"object"}}}},"404":{"description":"Invalid or missing Open API Token ID","content":{"application/json":{"schema":{"properties":{"success":{"type":"boolean"},"message":{"type":"string"}},"type":"object"}}}},"500":{"description":"Unexpected server error","content":{"application/json":{"schema":{"properties":{"success":{"type":"boolean"},"message":{"type":"string"}},"type":"object"}}}}}}}}}
```

#### Using GET for Configurator Option Sets with OpenAPI

To retrieve all configurator option sets in Simplio3D, use a GET request. Ensure your Open API token is included in the headers for authentication. By sending the request to the appropriate endpoint, you will receive a JSON response containing all available configurator options.

## Get all configurator options sets

> Get all configurator options sets for the given configurator ID and user ID.

```json
{"openapi":"3.0.0","info":{"title":"Simplio3D-Open REST API","version":"1.0.0"},"tags":[{"name":"Configurator Options","description":"API Endpoints for managing configurator 3D asset models"}],"servers":[{"url":"https://app.simplio3d.com","description":"API Open Base URL"},{"url":""}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"Enter token in format (Bearer <your_token>)"}},"schemas":{"ConfiguratorOptionsSetResource":{"title":"Configurator Options Set Resource","description":"Configurator Options Resource Schema","required":["id","options","created_at","updated_at"],"properties":{"id":{"description":"Unique identifier of the configurator options set","type":"integer"},"configurator_id":{"description":"ID of the associated configurator","type":"integer"},"options":{"description":"List of options in the set","type":"array","items":{"$ref":"#/components/schemas/ConfiguratorOptionsSetResource"}},"created_at":{"description":"Timestamp when the options set was created","type":"string","format":"date-time"},"updated_at":{"description":"Timestamp when the options set was last updated","type":"string","format":"date-time"}},"type":"object"}}},"paths":{"/api/open-api/v1/configurator-options/get/new-options":{"get":{"tags":["Configurator Options"],"summary":"Get all configurator options sets","description":"Get all configurator options sets for the given configurator ID and user ID.","operationId":"4e80518b98140f47a04739dcd81c78e3","responses":{"200":{"description":"List of configurator options sets","content":{"application/json":{"schema":{"properties":{"success":{"type":"boolean"},"message":{"type":"string"},"data":{"type":"array","items":{"$ref":"#/components/schemas/ConfiguratorOptionsSetResource"}}},"type":"object"}}}},"404":{"description":"Open API token not found"},"500":{"description":"Unexpected server error"}}}}}}
```

## The ConfiguratorOptionVariationsResource object

```json
{"openapi":"3.0.0","info":{"title":"Simplio3D-Open REST API","version":"1.0.0"},"components":{"schemas":{"ConfiguratorOptionVariationsResource":{"title":"Configurator Option Variations Resource","description":"Schema for configurator option variations","properties":{"id":{"type":"integer"},"configurator_id":{"type":"integer"},"configurator_option_id":{"type":"integer"},"configurator_option_value":{"type":"string"},"title":{"type":"string"},"name":{"type":"string"},"settings":{"type":"string"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}},"type":"object"}}}}
```

## The ConfiguratorOptionsResource object

```json
{"openapi":"3.0.0","info":{"title":"Simplio3D-Open REST API","version":"1.0.0"},"components":{"schemas":{"ConfiguratorOptionsResource":{"title":"Configurator Options Resource","description":"Configurator Options Resource Schema","required":["id","title","option_type","settings","parameter_list","order","created_at","updated_at"],"properties":{"id":{"description":"Unique identifier of the configurator option","type":"integer"},"configurator_id":{"description":"ID of the associated configurator","type":"integer"},"title":{"description":"Title of the configurator option","type":"string"},"option_type":{"description":"Type of the configurator option","type":"string"},"settings":{"description":"Settings of the configurator option in JSON format","type":"string"},"parameter_list":{"description":"List of parameters for the option","type":"string"},"order":{"description":"Order position of the option","type":"integer"},"created_at":{"description":"Timestamp when the option was created","type":"string","format":"date-time"},"updated_at":{"description":"Timestamp when the option was last updated","type":"string","format":"date-time"},"created_by":{"description":"User who created the option","type":"string"}},"type":"object"}}}}
```
