> ## Documentation Index
> Fetch the complete documentation index at: https://getfaceage.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Update template config

> Create or change the UI configuration of a business's template.

Creates or updates the template configuration of a business. Colors accept any CSS color value, such as `#EEE` or `rgb(239, 55, 134)`.

## Path parameters

**business\_id** `integer` *required*

ID of the business.

## Body

**base\_color** `string`

Main color of the UI.

**basic\_action\_color** `string`

Color of secondary action buttons.

**submit\_action\_color** `string`

Color of submit buttons.

**quiz\_input\_color** `string`

Color of quiz inputs.

**background\_upload\_color** `string`

Background color of the upload area.

**border** `string`

Border radius, in pixels.

**position\_accepted\_status\_color** `string`

Color shown when the face position is accepted.

**position\_not\_accepted\_status\_color** `string`

Color shown when the face position is not accepted.

**product\_shadow** `string`

Shadow of product cards.

**product\_border\_width** `string`

Border width of product cards, in pixels.

**product\_border\_color** `string`

Border color of product cards.

**product\_padding** `string`

Padding of product cards, in pixels.

**product\_action\_color** `string`

Color of product action buttons.

**product\_show\_type** `string`

How products are displayed, for example `slide`.

**tools\_icon** `string`

URL of the tools widget icon. See [Upload tools icon](https://getfaceage.com/docs/api-reference/template/upload-tools-icon.md).

**position\_show\_mobile\_tool\_left\_distance** `string`

Left offset of the tools widget on mobile, in pixels.

**position\_show\_desktop\_tool\_left\_distance** `string`

Left offset of the tools widget on desktop, in pixels.

**position\_show\_mobile\_tool\_button\_distance** `string`

Bottom offset of the tools widget on mobile, in pixels.

**position\_show\_desktop\_tool\_button\_distance** `string`

Bottom offset of the tools widget on desktop, in pixels.

## Response

**status** `boolean`

`true` when the template is saved.

**data** `object`

The saved template configuration.

```bash cURL theme={null}
curl --request POST 'https://core.getfaceage.com/api/v1/business/template/{business_id}' \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer your_secret_key' \
  --form 'base_color="rgb(233, 150, 122)"' \
  --form 'basic_action_color="#EEE"' \
  --form 'submit_action_color="rgb(239, 55, 134)"' \
  --form 'quiz_input_color="rgb(240, 128, 128)"' \
  --form 'background_upload_color="rgb(250, 128, 114)"' \
  --form 'border="40"' \
  --form 'product_shadow="0"' \
  --form 'product_border_width="20"' \
  --form 'product_border_color="#DE3163"' \
  --form 'product_padding="15"' \
  --form 'product_action_color="#FFA07A"' \
  --form 'product_show_type="slide"' \
  --form 'position_accepted_status_color="#9FE2BF"' \
  --form 'position_not_accepted_status_color="#DE3163"' \
  --form 'tools_icon="https://face.com/storage/tools_icon/12/66f7cd7b9924f.jpeg"' \
  --form 'position_show_mobile_tool_left_distance="5"' \
  --form 'position_show_desktop_tool_left_distance="10"' \
  --form 'position_show_mobile_tool_button_distance="15"' \
  --form 'position_show_desktop_tool_button_distance="20"'
```

```json 200 theme={null}
{
  "status": true,
  "data": {
    "base_color": "rgb(233, 150, 122)",
    "basic_action_color": "#EEE",
    "submit_action_color": "rgb(239, 55, 134)",
    "base_border_radius": "40px",
    "quiz_input_color": "rgb(240, 128, 128)",
    "background_upload_color": "rgb(250, 128, 114)",
    "border": "40",
    "position_accepted_status_color": "#9FE2BF",
    "position_not_accepted_status_color": "#DE3163",
    "product_shadow": "0",
    "product_border_width": "20",
    "product_border_color": "#DE3163",
    "product_padding": "15",
    "product_action_color": "#FFA07A",
    "product_show_type": "slide",
    "position_show_mobile_tool_left_distance": "5",
    "position_show_desktop_tool_left_distance": "10",
    "position_show_mobile_tool_button_distance": "15",
    "position_show_desktop_tool_button_distance": "20",
    "tools_icon": "https://face.com/storage/tools_icon/12/66f7cd7b9924f.jpeg"
  }
}
```

```json 401 theme={null}
{
  "message": "Unauthenticated."
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.