---
title: "Edit Server Configuration"
method: PUT
path: "/server"
tags: ["Server Configuration API"]
---

# Edit Server Configuration

`PUT /server`

## Headers

- `X-Postmark-Server-Token` string, required

## Request body

- EditServerConfigurationRequest
  - `Name` string
  - `Color` 'purple' | 'blue' | 'turqoise' | 'green' | 'red' | 'yellow' | 'grey'
  - `RawEmailEnabled` boolean
  - `DeliveryHookUrl` string
  - `SmtpApiActivated` boolean
  - `InboundHookUrl` string
  - `BounceHookUrl` string
  - `OpenHookUrl` string
  - `PostFirstOpenOnly` boolean
  - `TrackOpens` boolean
  - `TrackLinks` 'None' | 'HtmlAndText' | 'HtmlOnly' | 'TextOnly'
  - `ClickHookUrl` string — Webhook url allowing real-time notification when tracked links are clicked.
  - `InboundDomain` string
  - `InboundSpamThreshold` integer

## Response `200`

OK

- ServerConfigurationResponse
  - `ID` integer
  - `Name` string
  - `ApiTokens` string[]
  - `ServerLink` string
  - `Color` 'purple' | 'blue' | 'turqoise' | 'green' | 'red' | 'yellow' | 'grey'
  - `InboundAddress` string, email
  - `RawEmailEnabled` boolean
  - `DeliveryHookUrl` string
  - `SmtpApiActivated` boolean
  - `InboundHookUrl` string
  - `BounceHookUrl` string
  - `OpenHookUrl` string
  - `PostFirstOpenOnly` boolean
  - `TrackOpens` boolean
  - `TrackLinks` 'None' | 'HtmlAndText' | 'HtmlOnly' | 'TextOnly'
  - `ClickHookUrl` string
  - `InboundDomain` string
  - `InboundHash` string
  - `InboundSpamThreshold` integer

## Other responses

- `422` — An error was generated due to incorrect use of the API. See the Message associated with this response for more information.
- `500` — Indicates an internal server error occurred.

---

[API](https://skmtc.dev/postmarkapp/apis/postmark-api.md) · [All operations](https://skmtc.dev/postmarkapp/apis/postmark-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/postmarkapp/postmark-api/revisions/fdae25f55e2e/schema)
