# Put Single Domain

Endpoint: PUT /seg/config/v1/beta/{customerId}/directory/domains/{domain}
Version: 1.2.1
Security: Prod

## Path parameters:

  - `customerId` (string, required)

  - `domain` (string, required)

## Request fields (application/json):

  - `rewrite` (object)

  - `rewrite.inbound` (string)

  - `rewrite.outbound` (string)

  - `comment` (string)

## Response 200 fields (application/json):

  - `timestamp` (string)
    Response timestamp, format: %Y-%m-%dT%H:%M:%S.%f%z

  - `message` (string, required)

  - `unsuccessful` (any)

## Response 404 fields (application/json):

  - `timestamp` (string)
    Response timestamp, format: %Y-%m-%dT%H:%M:%S.%f%z

  - `code` (integer, required)
    Error code

  - `message` (string, required)
    Error message

## Response 500 fields (application/json):

  - `timestamp` (string)
    Response timestamp, format: %Y-%m-%dT%H:%M:%S.%f%z

  - `code` (integer, required)
    Error code

  - `message` (string, required)
    Error message

