# Introduction

This section of API allows to manage domains on which the website operates.

Website domains operate on [Domains](doc-341668#domain-model) defined
for customer that must be configured first.

## Website Domain model

### Example

```json
{
  "website_domain": {
    "id": 22,
    "site_domain_id": 43",
    "primary": true,
    "created_at": "2022-04-12T10:01:38.071466Z",
    "updated_at": "2022-04-12T14:50:59.475870Z"
  }
}
```

### Definition

| Key                | Type        | Optional             | Read-only | Description
|--------------------|-------------|----------------------|-----------| ---------
| id                 | integer     | no                   | yes       |
| site_domain_id     | integer     | no                   | no        | ID of [Domain](doc-341668#domain-model)
| primary            | boolean     | yes                  | no        | Is the domain primary? See below
| created_at         | datetime    | no                   | yes       | Time of record creation
| updated_at         | datetime    | no                   | yes       | Time of record last update

  
#### Primary domain
  
Only one domain can be primary. When one domain gets marked as primary, previous primary domain is
automatically demoted.