---
updatedAt: 2026-06-25T09:46:22.000Z
agentTools:
  projectIndex: https://marketing.developer.dotdigital.com/llms.txt
---

# Update preference

Updates a preference or preference category by id

<br />

> 📘 How to find preference IDs
>
> To find the id's for your existing preferences please call [Get preferences](https://marketing.developer.dotdigital.com/reference/get-preferences)

<span class="callRateMedium"></span>

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Preferences and subscriptions",
    "version": "2.0.1",
    "description": "Manage contact subscriptions, suppressions, and marketing preferences. Use this\nAPI to unsubscribe or resubscribe contacts (with or without a challenge email),\nbulk-suppress contacts, and query suppressed or unsubscribed contacts since a\ngiven date. Also provides full CRUD for preference categories and individual\npreferences, and endpoints to get or set the preference opt-in status for a\nspecific contact."
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true,
  "x-samples-languages": [
    "curl",
    "csharp",
    "java",
    "javascript",
    "node",
    "python",
    "php",
    "ruby"
  ],
  "externalDocs": {
    "description": "Learn more about Dotdigital APIs",
    "url": "https://developer.dotdigital.com"
  },
  "servers": [
    {
      "url": "https://{region}-api.dotdigital.com",
      "variables": {
        "region": {
          "default": "r1",
          "enum": [
            "r1",
            "r2",
            "r3"
          ],
          "description": "The Dotdigital region id your account belongs to"
        }
      }
    }
  ],
  "security": [
    {
      "basicAuth": []
    }
  ],
  "components": {
    "securitySchemes": {
      "basicAuth": {
        "type": "http",
        "scheme": "basic"
      }
    }
  },
  "paths": {
    "/v2/preferences/{id}": {
      "parameters": [
        {
          "in": "header",
          "name": "x-ddg-integration-token",
          "required": false,
          "description": "If you are a partner of Dotdigital and have a [verified integration](https://developer.dotdigital.com/docs/partner-integration-verification) then include your [integration tracking token](https://developer.dotdigital.co/docs/verified-integration-tracking) here.",
          "schema": {
            "type": "string",
            "pattern": "/^(?:\\{{0,1}(?:[0-9a-fA-F]){8}-(?:[0-9a-fA-F]){4}-(?:[0-9a-fA-F]){4}-(?:[0-9a-fA-F]){4}-(?:[0-9a-fA-F]){12}\\}{0,1})$/",
            "example": "5a96bc79-19a7-4544-973b-e2da0c9136f9"
          }
        }
      ],
      "put": {
        "summary": "Update preference",
        "deprecated": false,
        "description": "Updates a preference or preference category by id",
        "operationId": "update-preference",
        "tags": [
          "Preferences and subscriptions"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "",
            "required": true,
            "example": "",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "id",
                  "publicName",
                  "privateName"
                ],
                "properties": {
                  "id": {
                    "type": "integer",
                    "description": "The id of the preference or preference category that you want to update",
                    "format": "int32"
                  },
                  "publicName": {
                    "type": "string",
                    "description": "The public name of the preference or the preference category. Contacts can see the public names of preferences in preference centres and signup forms."
                  },
                  "privateName": {
                    "type": "string",
                    "description": "The private name of the preference or the preference category. Contacts can't see private names in the preference centre or in signup forms."
                  },
                  "isPreference": {
                    "type": "boolean",
                    "description": "If this value is true, a new preference is created. If this value is false, a new preference category is created.",
                    "default": false
                  },
                  "order": {
                    "type": "string",
                    "description": "The position that you want the preference or the preference category to appear on the 'Contact preferences' page, starting from 0. Specify either an integer for absolute position, alternatively use \"top\" or \"bottom\""
                  },
                  "isPublic": {
                    "type": "boolean",
                    "description": "For preferences, if this value is true, the preference is visible in signup forms and preference centres.",
                    "default": true
                  },
                  "categoryID": {
                    "type": "integer",
                    "description": "For preferences, the unique ID of the preference category that you want to add the preference to. Default for preferences: 0. Default for preference categories: null",
                    "format": "int32"
                  }
                }
              },
              "examples": {
                "Request Example": {
                  "value": {
                    "id": 2,
                    "privateName": "Preference name",
                    "publicName": "Preference name",
                    "order": 1,
                    "isPublic": false,
                    "categoryId": 14
                  },
                  "summary": "Request Example"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Result": {
                    "summary": "Result",
                    "value": "{ \nid: 2,\npublicName: 'Preference name',\nprivateName: 'Preference name',\nisPreference: true,\norder: 1,\nisPublic: false,\ncategoryId: 14,\nlastModified: '2020-01-01T09:40:18.527Z'\n}"
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}
```

# Sibling pages

* [Unsubscribe contact](https://marketing.developer.dotdigital.com/reference/unsubscribe-contact.md)
* [Bulk suppress contacts](https://marketing.developer.dotdigital.com/reference/bulk-suppress-contacts.md)
* [Resubscribe contact](https://marketing.developer.dotdigital.com/reference/resubscribe-contact.md)
* [Resubscribe contact with no challenge](https://marketing.developer.dotdigital.com/reference/resubscribe-contact-with-no-challenge.md)
* [Get suppressed contacts since date](https://marketing.developer.dotdigital.com/reference/get-suppressed-contacts-since-date.md)
* [Get subscriptions for contact](https://marketing.developer.dotdigital.com/reference/get-subscriptions-for-contact.md)
* [Get unsubscribed contacts since date](https://marketing.developer.dotdigital.com/reference/get-unsubscribed-contacts-since-date.md)
* [Create preference](https://marketing.developer.dotdigital.com/reference/create-preference.md)
* [Get preferences](https://marketing.developer.dotdigital.com/reference/get-preferences.md)
* [Get modified preferences since date](https://marketing.developer.dotdigital.com/reference/get-modified-preferences-since-date.md)
* [Delete preference](https://marketing.developer.dotdigital.com/reference/delete-preference.md)
* [Set preferences for contact](https://marketing.developer.dotdigital.com/reference/set-preferences-for-contact.md)
* [Get preferences for contact](https://marketing.developer.dotdigital.com/reference/get-preferences-for-contact.md)
* [Get contacts opted into a preference and an address book](https://marketing.developer.dotdigital.com/reference/get-contacts-opted-into-a-preference-and-an-address-book.md)
* [Get contacts opted into a preference](https://marketing.developer.dotdigital.com/reference/get-contacts-opted-into-a-preference.md)
* [Get contacts with modified preference opt-in since date](https://marketing.developer.dotdigital.com/reference/get-contacts-with-modified-preference-opt-in-since-date.md)
* [Get contacts with modified preference opt-in in address book since date](https://marketing.developer.dotdigital.com/reference/get-contacts-with-modified-preference-opt-in-in-address-book-since-date.md)