---
title: "Create a marketing preference"
method: POST
path: "/customers/marketing-preferences"
tags: ["MarketingPreferences"]
---

# Create a marketing preference

`POST /customers/marketing-preferences`

This endpoint creates a new marketing preference for an organisation.

## Request body

- object
  - `text` string, required — The text of the marketing preference
  - `locale` string, required — The locale this marketing preference's text is written in. A marketing preference only ever has one language; to offer the same preference in multiple languages, create a separate marketing preference per locale. This must be one of the platform's supported locales, which can be retrieved using the [`listMetaSupportedLocales`](/endpoints/Meta#listMetaSupportedLocales) endpoint.
  - `site_id` string, uuid — Optional site that this marketing preference applies to. When set, only customers signing up at this site are offered the opt-in; leave blank to apply the preference across every site in the organisation.
  - `organisation_id` string, uuid, required — Identifier of the organisation that owns this marketing preference. Preferences are inherited by every site in the organisation unless `site_id` narrows the scope.

## Response `201`

The marketing preference was successfully retrieved

- object
  - `data` MarketingPreference, required
    - `id` string, uuid, required — The ID of the marketing preference
    - `text` string, required — The text of the marketing preference
    - `locale` string, required — The locale this marketing preference's text is written in. A marketing preference only ever has one language; to offer the same preference in multiple languages, create a separate marketing preference per locale. This must be one of the platform's supported locales, which can be retrieved using the [`listMetaSupportedLocales`](/endpoints/Meta#listMetaSupportedLocales) endpoint.
    - `organisation_id` string, required — The ID of the organisation this marketing preference is linked to
    - `created_at` string, date-time, required — The date and time which the marketing preference was created
    - `updated_at` string, date-time, required — The date and time which the marketing preference was last updated

## Other responses

- `401` — The user is unauthenticated
- `403` — The authenticated user does not have permission.
- `422` — The request didn't pass validation

---

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