# Add or update a docs domain
POST /api/projects/{projectId}/domains
## Request
```bash
curl -X POST 'https://sourced.sh/api/projects/{projectId}/domains' \
  -H 'Authorization: Bearer $SOURCED_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{}'
```
## Parameters

- projectId (path, required): Project identifier.

## Request body

type: object
required: domain
properties:
  domain (required): string

## Responses

### 201

Domain configuration and DNS records.
### 400


### 401


### 403


### 404


