---
title: "Update the booking site"
---

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

# Update the booking site

Path: Nicer API › identity

`PUT /identity/booking-site`

URL: `https://api.nicer.travel/identity/booking-site`

Updates the active agency's booking-site theme, advisor-pages policy, Nicer subdomain or on/off switch, and answers the booking site as it now stands. branding replaces the whole theme. Agency admins and Nicer staff only.

## Authentication

- `bearerAuth`, http bearer, header `Authorization`, format `JWT`

## Header parameters

- `x-nicer-company` (`identity.bookingSite.update.header.x-nicer-company`; string, required) — Company context. Authentication and tenant membership are validated by the API.

## Request body

_Required._

- `advisorSites` (`identity.bookingSite.update.advisorSites`; boolean, optional)
- `branding` (`identity.bookingSite.update.branding`; object, optional)
  - `accentColor` (`identity.bookingSite.update.branding.accentColor`; string, optional)
    - pattern: `^#[0-9a-fA-F]{6}$`
  - `backgroundColor` (`identity.bookingSite.update.branding.backgroundColor`; string, optional)
    - pattern: `^#[0-9a-fA-F]{6}$`
  - `bodyFont` (`identity.bookingSite.update.branding.bodyFont`; string, optional)
    - one of `"Inter"`, `"DM Sans"`, `"Manrope"`, `"Poppins"`, `"Montserrat"`, `"Lato"`, `"Nunito"`, `"Work Sans"`, `"Playfair Display"`, `"Merriweather"`, `"Lora"`, `"Cormorant Garamond"`
  - `borderColor` (`identity.bookingSite.update.branding.borderColor`; string, optional)
    - pattern: `^#[0-9a-fA-F]{6}$`
  - `contact` (`identity.bookingSite.update.branding.contact`; object, optional)
    - `email` (`identity.bookingSite.update.branding.contact.email`; string, optional)
      - format: `email` · maxLength: `254` · pattern: `^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$`
    - `instagram` (`identity.bookingSite.update.branding.contact.instagram`; string, optional)
      - maxLength: `64` · pattern: `^(?:@?[\w.]{1,30}|https:\/\/(?:www\.)?instagram\.com\/[\w.]{1,30}\/?)$`
    - `phone` (`identity.bookingSite.update.branding.contact.phone`; string, optional)
      - maxLength: `32`
    - `whatsapp` (`identity.bookingSite.update.branding.contact.whatsapp`; string, optional)
      - maxLength: `32`
  - `faviconUrl` (`identity.bookingSite.update.branding.faviconUrl`; string, optional)
  - `headingFont` (`identity.bookingSite.update.branding.headingFont`; string, optional)
    - one of `"Inter"`, `"DM Sans"`, `"Manrope"`, `"Poppins"`, `"Montserrat"`, `"Lato"`, `"Nunito"`, `"Work Sans"`, `"Playfair Display"`, `"Merriweather"`, `"Lora"`, `"Cormorant Garamond"`
  - `hero` (`identity.bookingSite.update.branding.hero`; object, optional)
    - `imageUrl` (`identity.bookingSite.update.branding.hero.imageUrl`; string, optional)
      - format: `uri` · maxLength: `2048`
    - `subtitle` (`identity.bookingSite.update.branding.hero.subtitle`; string, optional)
      - maxLength: `160`
    - `title` (`identity.bookingSite.update.branding.hero.title`; string, optional)
      - maxLength: `80`
  - `logoDarkUrl` (`identity.bookingSite.update.branding.logoDarkUrl`; string, optional)
    - format: `uri` · maxLength: `2048`
  - `logoUrl` (`identity.bookingSite.update.branding.logoUrl`; string, optional)
  - `mode` (`identity.bookingSite.update.branding.mode`; string, optional)
    - one of `"light"`, `"dark"`, `"system"`
  - `mutedTextColor` (`identity.bookingSite.update.branding.mutedTextColor`; string, optional)
    - pattern: `^#[0-9a-fA-F]{6}$`
  - `primaryColor` (`identity.bookingSite.update.branding.primaryColor`; string, optional)
  - `privacyUrl` (`identity.bookingSite.update.branding.privacyUrl`; string, optional)
    - format: `uri` · maxLength: `2048`
  - `radius` (`identity.bookingSite.update.branding.radius`; integer, optional)
    - maximum: `24` · minimum: `0`
  - `seo` (`identity.bookingSite.update.branding.seo`; object, optional)
    - `description` (`identity.bookingSite.update.branding.seo.description`; string, optional)
      - maxLength: `160`
    - `title` (`identity.bookingSite.update.branding.seo.title`; string, optional)
      - maxLength: `60`
  - `surfaceColor` (`identity.bookingSite.update.branding.surfaceColor`; string, optional)
    - pattern: `^#[0-9a-fA-F]{6}$`
  - `textColor` (`identity.bookingSite.update.branding.textColor`; string, optional)
    - pattern: `^#[0-9a-fA-F]{6}$`
- `enabled` (`identity.bookingSite.update.enabled`; boolean, optional)
- `handle` (`identity.bookingSite.update.handle`; string, optional)
  - pattern: `^[a-z0-9](?:[a-z0-9-]{1,38}[a-z0-9])$`

## Example request

```json
{
  "advisorSites": true,
  "branding": {
    "accentColor": "string",
    "backgroundColor": "string",
    "bodyFont": "Inter",
    "borderColor": "string",
    "contact": {
      "email": "user@example.com",
      "instagram": "string",
      "phone": "string",
      "whatsapp": "string"
    },
    "faviconUrl": "string",
    "headingFont": "Inter",
    "hero": {
      "imageUrl": "http://example.com",
      "subtitle": "string",
      "title": "string"
    },
    "logoDarkUrl": "http://example.com",
    "logoUrl": "string",
    "mode": "light",
    "mutedTextColor": "string",
    "primaryColor": "string",
    "privacyUrl": "http://example.com",
    "radius": 24,
    "seo": {
      "description": "string",
      "title": "string"
    },
    "surfaceColor": "string",
    "textColor": "string"
  },
  "enabled": true,
  "handle": "string"
}
```

## Code samples

### JavaScript SDK

```javascript
import { createClient } from "@nicertravel/sdk";

const nicer = createClient({
  baseUrl: "https://api.nicer.travel",
  token: process.env.NICER_TOKEN,
  headers: { "x-nicer-company": process.env.NICER_COMPANY },
});

await nicer.identity.bookingSite.update({});
```

### Nicer CLI

```bash
nicer identity booking-site update --company "$NICER_COMPANY" --input - <<'JSON'
{}
JSON
```

### cURL

```bash
curl --request PUT \
  --url https://api.nicer.travel/identity/booking-site \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'x-nicer-company: string' \
  --data '
{
  "advisorSites": true,
  "branding": {
    "accentColor": "string",
    "backgroundColor": "string",
    "bodyFont": "Inter",
    "borderColor": "string",
    "contact": {
      "email": "user@example.com",
      "instagram": "string",
      "phone": "string",
      "whatsapp": "string"
    },
    "faviconUrl": "string",
    "headingFont": "Inter",
    "hero": {
      "imageUrl": "http://example.com",
      "subtitle": "string",
      "title": "string"
    },
    "logoDarkUrl": "http://example.com",
    "logoUrl": "string",
    "mode": "light",
    "mutedTextColor": "string",
    "primaryColor": "string",
    "privacyUrl": "http://example.com",
    "radius": 24,
    "seo": {
      "description": "string",
      "title": "string"
    },
    "surfaceColor": "string",
    "textColor": "string"
  },
  "enabled": true,
  "handle": "string"
}
'
```

### TypeScript

```typescript
const url = 'https://api.nicer.travel/identity/booking-site';
const options = {
  method: 'PUT',
  headers: {
    'Content-Type': 'application/json',
    'x-nicer-company': 'string',
    Authorization: 'Bearer <token>'
  },
  body: JSON.stringify({
    advisorSites: true,
    branding: {
      accentColor: 'string',
      backgroundColor: 'string',
      bodyFont: 'Inter',
      borderColor: 'string',
      contact: {
        email: 'user@example.com',
        instagram: 'string',
        phone: 'string',
        whatsapp: 'string'
      },
      faviconUrl: 'string',
      headingFont: 'Inter',
      hero: {imageUrl: 'http://example.com', subtitle: 'string', title: 'string'},
      logoDarkUrl: 'http://example.com',
      logoUrl: 'string',
      mode: 'light',
      mutedTextColor: 'string',
      primaryColor: 'string',
      privacyUrl: 'http://example.com',
      radius: 24,
      seo: {description: 'string', title: 'string'},
      surfaceColor: 'string',
      textColor: 'string'
    },
    enabled: true,
    handle: 'string'
  })
};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://api.nicer.travel/identity/booking-site"

payload = {
    "advisorSites": True,
    "branding": {
        "accentColor": "string",
        "backgroundColor": "string",
        "bodyFont": "Inter",
        "borderColor": "string",
        "contact": {
            "email": "user@example.com",
            "instagram": "string",
            "phone": "string",
            "whatsapp": "string"
        },
        "faviconUrl": "string",
        "headingFont": "Inter",
        "hero": {
            "imageUrl": "http://example.com",
            "subtitle": "string",
            "title": "string"
        },
        "logoDarkUrl": "http://example.com",
        "logoUrl": "string",
        "mode": "light",
        "mutedTextColor": "string",
        "primaryColor": "string",
        "privacyUrl": "http://example.com",
        "radius": 24,
        "seo": {
            "description": "string",
            "title": "string"
        },
        "surfaceColor": "string",
        "textColor": "string"
    },
    "enabled": True,
    "handle": "string"
}
headers = {
    "Content-Type": "application/json",
    "x-nicer-company": "string",
    "Authorization": "Bearer <token>"
}

response = requests.put(url, json=payload, headers=headers)

print(response.text)
```

## Responses

### 200

OK

#### Example

```json
{
  "advisorSites": true,
  "branding": {
    "accentColor": "string",
    "backgroundColor": "string",
    "bodyFont": "Inter",
    "borderColor": "string",
    "contact": {
      "email": "user@example.com",
      "instagram": "string",
      "phone": "string",
      "whatsapp": "string"
    },
    "faviconUrl": "string",
    "headingFont": "Inter",
    "hero": {
      "imageUrl": "http://example.com",
      "subtitle": "string",
      "title": "string"
    },
    "logoDarkUrl": "http://example.com",
    "logoUrl": "string",
    "mode": "light",
    "mutedTextColor": "string",
    "primaryColor": "string",
    "privacyUrl": "http://example.com",
    "radius": 24,
    "seo": {
      "description": "string",
      "title": "string"
    },
    "surfaceColor": "string",
    "textColor": "string"
  },
  "canManage": true,
  "companyName": "string",
  "displayName": "string",
  "dnsTargetZone": "string",
  "enabled": true,
  "envDomain": "string",
  "handle": "string",
  "hosts": [
    {
      "advisorUserId": "string",
      "aliasOf": "string",
      "app": "BOOKING",
      "attempt": 9007199254740991,
      "canonical": true,
      "companyName": "string",
      "createdAt": "string",
      "createdBy": "string",
      "dnsTarget": "string",
      "kind": "SUBDOMAIN",
      "lastError": "string",
      "status": "PENDING_DNS",
      "updatedAt": "string",
      "validationMode": "cloudfront",
      "validationRedirectFrom": "string",
      "validationRedirectTo": "string",
      "host": "string",
      "certificateIssued": true,
      "hasTenant": true
    }
  ],
  "myShareUrl": "string",
  "pages": [
    {
      "advisorUserId": "string",
      "enabled": true
    }
  ],
  "platformHost": "string"
}
```

- `advisorSites` (`identity.bookingSite.update.response.200.advisorSites`; boolean, required)
- `branding` (`identity.bookingSite.update.response.200.branding`; object, required)
  - `accentColor` (`identity.bookingSite.update.response.200.branding.accentColor`; string, optional)
    - pattern: `^#[0-9a-fA-F]{6}$`
  - `backgroundColor` (`identity.bookingSite.update.response.200.branding.backgroundColor`; string, optional)
    - pattern: `^#[0-9a-fA-F]{6}$`
  - `bodyFont` (`identity.bookingSite.update.response.200.branding.bodyFont`; string, optional)
    - one of `"Inter"`, `"DM Sans"`, `"Manrope"`, `"Poppins"`, `"Montserrat"`, `"Lato"`, `"Nunito"`, `"Work Sans"`, `"Playfair Display"`, `"Merriweather"`, `"Lora"`, `"Cormorant Garamond"`
  - `borderColor` (`identity.bookingSite.update.response.200.branding.borderColor`; string, optional)
    - pattern: `^#[0-9a-fA-F]{6}$`
  - `contact` (`identity.bookingSite.update.response.200.branding.contact`; object, optional)
    - `email` (`identity.bookingSite.update.response.200.branding.contact.email`; string, optional)
      - format: `email` · maxLength: `254` · pattern: `^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$`
    - `instagram` (`identity.bookingSite.update.response.200.branding.contact.instagram`; string, optional)
      - maxLength: `64`
    - `phone` (`identity.bookingSite.update.response.200.branding.contact.phone`; string, optional)
      - maxLength: `32`
    - `whatsapp` (`identity.bookingSite.update.response.200.branding.contact.whatsapp`; string, optional)
      - maxLength: `32`
  - `faviconUrl` (`identity.bookingSite.update.response.200.branding.faviconUrl`; string, optional)
  - `headingFont` (`identity.bookingSite.update.response.200.branding.headingFont`; string, optional)
    - one of `"Inter"`, `"DM Sans"`, `"Manrope"`, `"Poppins"`, `"Montserrat"`, `"Lato"`, `"Nunito"`, `"Work Sans"`, `"Playfair Display"`, `"Merriweather"`, `"Lora"`, `"Cormorant Garamond"`
  - `hero` (`identity.bookingSite.update.response.200.branding.hero`; object, optional)
    - `imageUrl` (`identity.bookingSite.update.response.200.branding.hero.imageUrl`; string, optional)
      - format: `uri` · maxLength: `2048`
    - `subtitle` (`identity.bookingSite.update.response.200.branding.hero.subtitle`; string, optional)
      - maxLength: `160`
    - `title` (`identity.bookingSite.update.response.200.branding.hero.title`; string, optional)
      - maxLength: `80`
  - `logoDarkUrl` (`identity.bookingSite.update.response.200.branding.logoDarkUrl`; string, optional)
    - format: `uri` · maxLength: `2048`
  - `logoUrl` (`identity.bookingSite.update.response.200.branding.logoUrl`; string, optional)
  - `mode` (`identity.bookingSite.update.response.200.branding.mode`; string, optional)
    - one of `"light"`, `"dark"`, `"system"`
  - `mutedTextColor` (`identity.bookingSite.update.response.200.branding.mutedTextColor`; string, optional)
    - pattern: `^#[0-9a-fA-F]{6}$`
  - `primaryColor` (`identity.bookingSite.update.response.200.branding.primaryColor`; string, optional)
  - `privacyUrl` (`identity.bookingSite.update.response.200.branding.privacyUrl`; string, optional)
    - format: `uri` · maxLength: `2048`
  - `radius` (`identity.bookingSite.update.response.200.branding.radius`; integer, optional)
    - maximum: `24` · minimum: `0`
  - `seo` (`identity.bookingSite.update.response.200.branding.seo`; object, optional)
    - `description` (`identity.bookingSite.update.response.200.branding.seo.description`; string, optional)
      - maxLength: `160`
    - `title` (`identity.bookingSite.update.response.200.branding.seo.title`; string, optional)
      - maxLength: `60`
  - `surfaceColor` (`identity.bookingSite.update.response.200.branding.surfaceColor`; string, optional)
    - pattern: `^#[0-9a-fA-F]{6}$`
  - `textColor` (`identity.bookingSite.update.response.200.branding.textColor`; string, optional)
    - pattern: `^#[0-9a-fA-F]{6}$`
- `canManage` (`identity.bookingSite.update.response.200.canManage`; boolean, required)
- `companyName` (`identity.bookingSite.update.response.200.companyName`; string, required)
- `displayName` (`identity.bookingSite.update.response.200.displayName`; string, required)
- `dnsTargetZone` (`identity.bookingSite.update.response.200.dnsTargetZone`; string, required)
- `enabled` (`identity.bookingSite.update.response.200.enabled`; boolean, required)
- `envDomain` (`identity.bookingSite.update.response.200.envDomain`; string, required)
- `hosts` (`identity.bookingSite.update.response.200.hosts`; array of object, required)
  - `canonical` (`identity.bookingSite.update.response.200.hosts.canonical`; boolean, required)
  - `companyName` (`identity.bookingSite.update.response.200.hosts.companyName`; string, required)
    - minLength: `1`
  - `createdAt` (`identity.bookingSite.update.response.200.hosts.createdAt`; string, required)
  - `createdBy` (`identity.bookingSite.update.response.200.hosts.createdBy`; string, required)
    - minLength: `1`
  - `kind` (`identity.bookingSite.update.response.200.hosts.kind`; string, required)
    - one of `"SUBDOMAIN"`, `"CUSTOM"`, `"ALIAS"`
  - `status` (`identity.bookingSite.update.response.200.hosts.status`; string, required)
    - one of `"PENDING_DNS"`, `"ISSUING"`, `"ACTIVE"`, `"FAILED_DNS"`, `"FAILED_CERT"`, `"REMOVING"`
  - `updatedAt` (`identity.bookingSite.update.response.200.hosts.updatedAt`; string, required)
  - `host` (`identity.bookingSite.update.response.200.hosts.host`; string, required)
    - minLength: `1`
  - `certificateIssued` (`identity.bookingSite.update.response.200.hosts.certificateIssued`; boolean, required)
  - `hasTenant` (`identity.bookingSite.update.response.200.hosts.hasTenant`; boolean, required)
  - `advisorUserId` (`identity.bookingSite.update.response.200.hosts.advisorUserId`; string, optional)
    - minLength: `1`
  - `aliasOf` (`identity.bookingSite.update.response.200.hosts.aliasOf`; string, optional)
  - `app` (`identity.bookingSite.update.response.200.hosts.app`; string, optional)
    - one of `"BOOKING"`, `"PORTAL"`, `"PAY"`
  - `attempt` (`identity.bookingSite.update.response.200.hosts.attempt`; integer, optional)
    - maximum: `9007199254740991` · minimum: `0`
  - `dnsTarget` (`identity.bookingSite.update.response.200.hosts.dnsTarget`; string, optional)
  - `lastError` (`identity.bookingSite.update.response.200.hosts.lastError`; string, optional)
  - `validationMode` (`identity.bookingSite.update.response.200.hosts.validationMode`; string, optional)
    - one of `"cloudfront"`, `"self-hosted"`
  - `validationRedirectFrom` (`identity.bookingSite.update.response.200.hosts.validationRedirectFrom`; string, optional)
  - `validationRedirectTo` (`identity.bookingSite.update.response.200.hosts.validationRedirectTo`; string, optional)
- `pages` (`identity.bookingSite.update.response.200.pages`; array of object, required)
  - `advisorUserId` (`identity.bookingSite.update.response.200.pages.advisorUserId`; string, required)
  - `enabled` (`identity.bookingSite.update.response.200.pages.enabled`; boolean, required)
- `handle` (`identity.bookingSite.update.response.200.handle`; string, optional)
- `myShareUrl` (`identity.bookingSite.update.response.200.myShareUrl`; string, optional)
- `platformHost` (`identity.bookingSite.update.response.200.platformHost`; string, optional)

### 400

Request failed. `errorCode` is stable; `errorMessage` is for humans.

#### Example

```json
{
  "errorCode": "string",
  "errorMessage": "string"
}
```

- `errorCode` (`identity.bookingSite.update.response.400.errorCode`; string, required)
- `errorMessage` (`identity.bookingSite.update.response.400.errorMessage`; string, required)

### 401

Request failed. `errorCode` is stable; `errorMessage` is for humans.

#### Example

```json
{
  "errorCode": "string",
  "errorMessage": "string"
}
```

- `errorCode` (`identity.bookingSite.update.response.401.errorCode`; string, required)
- `errorMessage` (`identity.bookingSite.update.response.401.errorMessage`; string, required)

### 403

Request failed. `errorCode` is stable; `errorMessage` is for humans.

#### Example

```json
{
  "errorCode": "string",
  "errorMessage": "string"
}
```

- `errorCode` (`identity.bookingSite.update.response.403.errorCode`; string, required)
- `errorMessage` (`identity.bookingSite.update.response.403.errorMessage`; string, required)


Source: https://docs.nicer.travel/api/identity/identity.bookingSite.update/index.md
