---
raw: true
search:
  tags:
    - Domains
    - PATCH
seo:
  description: >-
    Changes settings of a domain the team registered through… Reference for the
    PATCH /v1/domains/{domainId}/registration endpoint in the Spacefast Partner
    API.
sidebar:
  label: Update registration settings
  badge: PATCH
title: Update registration settings
type: openapi-operation
---
Changes settings of a domain the team registered through Spacefast: `transferLock`, WHOIS `privacySetting`, the registrant (`contactId` of a saved contact), and the `autoRenew` preference. Unlocking transfers, turning off privacy, or changing the registrant affects who controls the domain and whose details are public, so make those changes only at the user's request. `autoRenew` is saved as a preference only; nothing renews automatically yet, and renewal is a separate registration action.

`PATCH /v1/domains/{domainId}/registration`

**Request body** (`application/json`, required)

- `autoRenew` (boolean) — Saves the auto-renew preference. Nothing renews on its own yet; renew with \`{ action: "renew" }\`.
- `transferLock` (boolean) — Pass \`true\` to enable the registrar transfer lock. Pass \`false\` to disable it.
- `privacySetting` (string) — WHOIS privacy behavior.
- `contactId` (string | null) — Registrant contact record.

Request body example:

```json
{
  "autoRenew": true,
  "transferLock": true,
  "privacySetting": "enable_privacy_service",
  "contactId": "string"
}
```

**Responses**

- `200` — Response for status 200
- `default` — Problem details (RFC 9457). Any 4xx/5xx response is one \`application/problem+json\` document.

Response example, 200:

```json
{
  "$schema": "http://example.com",
  "data": {
    "id": "string",
    "domainId": "string",
    "hostname": "string",
    "provider": "dsapi",
    "status": "string",
    "expiresAt": "2019-08-24T14:15:22Z",
    "redemptionEndsAt": "2019-08-24T14:15:22Z",
    "autoRenew": true,
    "transferLock": true,
    "privacySetting": "enable_privacy_service",
    "contactId": "string",
    "failureReason": "string",
    "purchase": {
      "intentId": "string",
      "lineStatus": "awaiting_payment",
      "checkout": {
        "id": "string",
        "url": "http://example.com",
        "expiresAt": "2019-08-24T14:15:22Z"
      },
      "checkoutUnavailable": true,
      "quotedFeeAmountCents": -9007199254740991,
      "paidAmountCents": -9007199254740991,
      "refund": {
        "reference": "string",
        "amountCents": -9007199254740991,
        "refundedAt": "2019-08-24T14:15:22Z"
      }
    },
    "createdAt": "2019-08-24T14:15:22Z",
    "updatedAt": "2019-08-24T14:15:22Z"
  }
}
```
