> ## Documentation Index
> Fetch the complete documentation index at: https://developers.hubspot.de/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Update a contact's subscription status

> Legen Sie den Abonnementstatus eines spezifischen Kontakts fest.

export const ScopesList = ({scopes = [], description = "Diese API erfordert einen der folgenden Bereiche:"}) => {
  if (!scopes || scopes.length === 0) {
    return null;
  }
  const sortedScopes = scopes.sort((a, b) => a.localeCompare(b));
  return <div>
      <div className="text-sm mb-2">{description}</div>
      <div>
        {sortedScopes.map((scope, index) => <div key={index}>
            <code>
              <span className="text-xs">{scope}</span>
            </code>
          </div>)}
      </div>
    </div>;
};

export const SupportedProducts = ({marketing, sales, service, cms, marketingLevel, salesLevel, serviceLevel, cmsLevel}) => {
  const translations = {
    header: "Unterstützte Produkte",
    description: "Erfordert eines der folgenden Produkte oder höher.",
    productNames: {
      marketing: "Marketing Hub",
      sales: "Sales Hub",
      service: "Service Hub",
      cms: "Content Hub"
    },
    tiers: {
      free: "Kostenlos",
      starter: "Starter",
      professional: "Professional",
      enterprise: "Enterprise"
    }
  };
  const translateTier = tier => {
    if (!tier) return '';
    const lowerTier = tier.toLowerCase();
    return translations.tiers[lowerTier] || tier;
  };
  const products = [{
    name: marketing ? translations.productNames.marketing : '',
    level: translateTier(marketingLevel),
    icon: "https://mintlify-assets.b-cdn.net/Icons/marketing-bolt.svg",
    alt: "Marketing Hub"
  }, {
    name: sales ? translations.productNames.sales : '',
    level: translateTier(salesLevel),
    icon: "https://mintlify-assets.b-cdn.net/Icons/sales-star.svg",
    alt: "Sales Hub"
  }, {
    name: service ? translations.productNames.service : '',
    level: translateTier(serviceLevel),
    icon: "https://mintlify-assets.b-cdn.net/Icons/service-heart.svg",
    alt: "Service Hub"
  }, {
    name: cms ? translations.productNames.cms : '',
    level: translateTier(cmsLevel),
    icon: "https://mintlify-assets.b-cdn.net/Icons/content-play.svg",
    alt: "Content Hub"
  }].filter(product => product.name && product.level);
  if (products.length === 0) return null;
  return <div>
      <div className="text-sm mb-2">{translations.description}</div>
      <div className={`grid ${products.length === 1 ? 'grid-cols-1' : 'grid-cols-2'} gap-1.5`}>
        {products.map((product, index) => <div key={index} style={{
    display: 'flex',
    alignItems: 'center'
  }}>
            <img src={product.icon} alt={product.alt} className="w-3.5 h-3.5 mr-1.5 mt-2.5 mb-2.5 flex-shrink-0 align-middle" />
            <span className="font-medium mr-1 text-sm">{product.name} -</span>
            <span className="text-sm">{product.level}</span>
          </div>)}
      </div>
    </div>;
};

<AccordionGroup>
  <Accordion title="Supported products" defaultOpen="true" icon="cubes">
    <SupportedProducts marketing={true} sales={true} service={true} cms={true} marketingLevel="STARTER" salesLevel="FREE" serviceLevel="FREE" cmsLevel="FREE" />
  </Accordion>

  <Accordion title="Required Scopes" icon="key">
    <ScopesList
      scopes={[
  'communication_preferences.write',
  'communication_preferences.read_write'
]}
    />
  </Accordion>
</AccordionGroup>


## OpenAPI

````yaml specs/2026-03/communication-preferences-subscriptions-v2026-03.json POST /communication-preferences/2026-03/statuses/{subscriberIdString}
openapi: 3.0.1
info:
  title: Communication Preferences Subscriptions
  description: Basepom for all HubSpot Projects
  version: 2026-03
  x-hubspot-product-tier-requirements:
    marketing: STARTER
    sales: FREE
    service: FREE
    cms: FREE
    commerce: FREE
    crmHub: FREE
    dataHub: FREE
servers:
  - url: https://api.hubapi.com
security: []
tags:
  - name: Batch
  - name: Definitions
  - name: Status
paths:
  /communication-preferences/2026-03/statuses/{subscriberIdString}:
    post:
      tags:
        - Status
      summary: Abonnementstatus eines Kontakts aktualisierem
      description: Legen Sie den Abonnementstatus eines spezifischen Kontakts fest.
      operationId: post-/communication-preferences/2026-03/statuses/{subscriberIdString}
      parameters:
        - name: subscriberIdString
          in: path
          description: >-
            Die eindeutige ID des Abonnenten, dessen Status der
            Kommunikationseinstellungen aktualisiert wird.
          required: true
          style: simple
          explode: false
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PartialPublicStatusRequest'
        required: true
      responses:
        '200':
          description: successful operation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ActionResponseWithResultsPublicStatus'
        default:
          $ref: '#/components/responses/Error'
          description: ''
      security:
        - oauth2:
            - communication_preferences.read_write
        - oauth2:
            - communication_preferences.write
components:
  schemas:
    PartialPublicStatusRequest:
      required:
        - channel
        - statusState
        - subscriptionId
      type: object
      properties:
        channel:
          type: string
          description: >-
            Die Art des Kommunikationskanals, wobei nur die Option „EMAIL“
            unterstützt wird.
          enum:
            - EMAIL
        legalBasis:
          type: string
          description: "Die rechtliche Grundlage für die Kommunikation, u.\_a. mit folgenden Optionen „LEGITIMATE_INTEREST_PQL“, „LEGITIMATE_INTEREST_CLIENT“, „PERFORMANCE_OF_CONTRACT“, „CONSENT_WITH_NOTICE“, „NON_GDPR“, „PROCESS_AND_STORE“ und „LEGITIMATE_INTEREST_OTHER“."
          enum:
            - CONSENT_WITH_NOTICE
            - LEGITIMATE_INTEREST_CLIENT
            - LEGITIMATE_INTEREST_OTHER
            - LEGITIMATE_INTEREST_PQL
            - NON_GDPR
            - PERFORMANCE_OF_CONTRACT
            - PROCESS_AND_STORE
        legalBasisExplanation:
          type: string
          description: Eine Erläuterung der rechtlichen Grundlage für die Kommunikation.
        statusState:
          type: string
          description: >-
            Der aktuelle Abonnementstatus des Kontakts, mit den Optionen
            „SUBSCRIBED“, „UNSUBSCRIBED“ oder „NOT_SPECIFIED“.
          enum:
            - NOT_SPECIFIED
            - SUBSCRIBED
            - UNSUBSCRIBED
        subscriptionId:
          type: integer
          description: Die eindeutige ID des zu aktualisierenden Abonnements.
          format: int64
    ActionResponseWithResultsPublicStatus:
      required:
        - completedAt
        - results
        - startedAt
        - status
      type: object
      properties:
        completedAt:
          type: string
          description: >-
            Der Zeitpunkt (Datum und Uhrzeit), zu dem der Vorgang abgeschlossen
            wurde.
          format: date-time
        errors:
          type: array
          description: Eine Liste der während des Vorgangs aufgetretenen Fehler.
          items:
            $ref: '#/components/schemas/StandardError'
        links:
          type: object
          additionalProperties:
            type: string
          description: "Enthält URLs im Zusammenhang mit der Antwort,  z.\_B. Dokumentation oder Ressourcen."
        numErrors:
          type: integer
          description: Die Anzahl der während des Vorgangs aufgetretenen Fehler.
          format: int32
        requestedAt:
          type: string
          description: >-
            Der Zeitpunkt (Datum und Uhrzeit), zu dem die Anfrage gestellt
            wurde.
          format: date-time
        results:
          type: array
          description: Ein Array mit Ergebnissen aus dem Vorgang.
          items:
            $ref: '#/components/schemas/PublicStatus'
        startedAt:
          type: string
          description: >-
            Der Zeitpunkt (Datum und Uhrzeit), zu dem der Vorgang gestartet
            wurde.
          format: date-time
        status:
          type: string
          description: >-
            Zeigt den aktuellen Status des Vorgangs an, mit den möglichen
            Werten: PENDING, PROCESSING, CANCELED, COMPLETE.
          enum:
            - CANCELED
            - COMPLETE
            - PENDING
            - PROCESSING
    StandardError:
      required:
        - category
        - context
        - errors
        - links
        - message
        - status
      type: object
      properties:
        category:
          type: string
          description: Eine Zeichenfolge, die den Fehlertyp kategorisiert.
        context:
          type: object
          additionalProperties:
            type: array
            items:
              type: string
          description: >-
            Ein Objekt, das zusätzlichen Kontext zur Fehlerbedingung enthält,
            wobei die Schlüssel als Kontextnamen und Werte als Arrays von
            Zeichenfolgen dargestellt werden.
        errors:
          type: array
          description: >-
            Ein Array von ErrorDetail-Objekten mit weiteren Informationen zum
            aufgetretenen Fehler.
          items:
            $ref: '#/components/schemas/ErrorDetail'
        id:
          type: string
          description: Eine Zeichenfolge, die die eindeutige ID des Fehlers darstellt.
        links:
          type: object
          additionalProperties:
            type: string
          description: >-
            Ein Objekt, das Namen von Links zu zugeordneten URIs zuordnet, mit
            einer Dokumentation zum Fehler oder empfohlenen Abhilfemaßnahmen.
        message:
          type: string
          description: >-
            Eine Zeichenfolge, die eine für Menschen lesbare Nachricht mit einer
            Beschreibung des Fehlers enthält.
        status:
          type: string
          description: Eine Zeichenfolge, die auf den Status des Fehlers verweist.
        subCategory:
          type: object
          properties: {}
          description: >-
            Ein Objekt, das eine spezifischere Kategorisierung des Fehlers
            bereitstellt.
      description: Ye olde error
    PublicStatus:
      required:
        - channel
        - source
        - status
        - subscriberIdString
        - subscriptionId
        - timestamp
      type: object
      properties:
        businessUnitId:
          type: integer
          description: Die ID des Unternehmensbereichs, der dem Abonnement zugeordnet ist.
          format: int64
        channel:
          type: string
          description: >-
            Die Art des Kommunikationskanals, wobei nur die Option „EMAIL“
            unterstützt wird.
          enum:
            - EMAIL
        legalBasis:
          type: string
          description: "Die rechtliche Grundlage für die Kommunikation, u.\_a. mit folgenden Optionen „LEGITIMATE_INTEREST_PQL“, „LEGITIMATE_INTEREST_CLIENT“, „PERFORMANCE_OF_CONTRACT“, „CONSENT_WITH_NOTICE“, „NON_GDPR“, „PROCESS_AND_STORE“ und „LEGITIMATE_INTEREST_OTHER“."
          enum:
            - CONSENT_WITH_NOTICE
            - LEGITIMATE_INTEREST_CLIENT
            - LEGITIMATE_INTEREST_OTHER
            - LEGITIMATE_INTEREST_PQL
            - NON_GDPR
            - PERFORMANCE_OF_CONTRACT
            - PROCESS_AND_STORE
        legalBasisExplanation:
          type: string
          description: Eine Erläuterung der rechtlichen Grundlage für die Kommunikation.
        setStatusSuccessReason:
          type: string
          description: "Der Grund für die erfolgreiche Änderung des Abonnementstatus, wie z.\_B. „RESUBSCRIBE_OCCURRED“ oder „NO_STATUS_CHANGE“."
          enum:
            - NO_STATUS_CHANGE
            - REQUESTED_CHANGE_OCCURRED
            - RESUBSCRIBE_OCCURRED
            - UNSUBSCRIBE_FROM_ALL_OCCURRED
        source:
          type: string
          description: >-
            Der Ursprung oder die Methode, über den/die der Abonnementsstatus
            festgelegt wurde.
        status:
          type: string
          description: >-
            Der aktuelle Abonnementstatus des Kontakts, mit den Optionen
            „SUBSCRIBED“, „UNSUBSCRIBED“ oder „NOT_SPECIFIED“.
          enum:
            - NOT_SPECIFIED
            - SUBSCRIBED
            - UNSUBSCRIBED
        subscriberIdString:
          type: string
          description: Die E-Mail-Adresse des Kontakts.
        subscriptionId:
          type: integer
          description: Die eindeutige ID des Abonnements.
          format: int64
        subscriptionName:
          type: string
          description: Der Name des Abonnements.
        timestamp:
          type: string
          description: >-
            Der Zeitpunkt (Datum und Uhrzeit), zu dem der Abonnementstatus
            zuletzt aktualisiert wurde.
          format: date-time
    Error:
      required:
        - category
        - correlationId
        - message
      type: object
      properties:
        category:
          type: string
          description: Die Fehlerkategorie
        context:
          type: object
          additionalProperties:
            type: array
            items:
              type: string
          description: Kontext zur Fehlerbedingung
          example: >-
            {invalidPropertyName=[propertyValue], missingScopes=[scope1,
            scope2]}
        correlationId:
          type: string
          description: >-
            Eine eindeutige ID für die Anfrage. Berücksichtigen Sie diesen Wert
            in Fehlerberichten oder Support-Tickets.
          format: uuid
          example: aeb5f871-7f07-4993-9211-075dc63e7cbf
        errors:
          type: array
          description: Weitere Informationen zum Fehler
          items:
            $ref: '#/components/schemas/ErrorDetail'
        links:
          type: object
          additionalProperties:
            type: string
          description: >-
            Eine Zuordnung der Namen von Links zu zugeordneten URIs mit einer
            Dokumentation zum Fehler oder empfohlenen Abhilfemaßnahmen
        message:
          type: string
          description: >-
            Eine für Menschen lesbare Nachricht mit einer Beschreibung des
            Fehlers und ggf. Abhilfemaßnahmen
          example: An error occurred
        subCategory:
          type: string
          description: Eine spezifische Kategorie, die genauere Details zum Fehler enthält
      example:
        message: Invalid input (details will vary based on the error)
        correlationId: aeb5f871-7f07-4993-9211-075dc63e7cbf
        category: VALIDATION_ERROR
        links:
          knowledge-base: https://www.hubspot.com/products/service/knowledge-base
    ErrorDetail:
      required:
        - message
      type: object
      properties:
        code:
          type: string
          description: Der Statuscode, der dem Fehlerdetail zugeordnet ist
        context:
          type: object
          additionalProperties:
            type: array
            items:
              type: string
          description: Kontext zur Fehlerbedingung
          example: '{missingScopes=[scope1, scope2]}'
        in:
          type: string
          description: >-
            Der Name des Felds oder Parameters, in dem der Fehler gefunden
            wurde.
        message:
          type: string
          description: >-
            Eine für Menschen lesbare Nachricht mit einer Beschreibung des
            Fehlers und ggf. Abhilfemaßnahmen
        subCategory:
          type: string
          description: Eine spezifische Kategorie, die genauere Details zum Fehler enthält
  responses:
    Error:
      description: An error occurred.
      content:
        '*/*':
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    oauth2:
      type: oauth2
      flows:
        authorizationCode:
          authorizationUrl: https://app.hubspot.com/oauth/authorize
          tokenUrl: https://api.hubapi.com/oauth/v1/token
          scopes:
            communication_preferences.read_write: ''
            communication_preferences.statuses.batch.read: ''
            communication_preferences.statuses.batch.write: ''

````