---
title: "Update a marketing preference for an organisation"
method: PUT
path: "/customers/marketing-preferences/{marketingPreferenceId}"
tags: ["MarketingPreferences"]
---

# Update a marketing preference for an organisation

`PUT /customers/marketing-preferences/{marketingPreferenceId}`

This endpoint updates a marketing preference belonging to an organisation.

## Request body

- object
  - `text` string, required — The text of the marketing preference

## Response `200`

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.
- `404` — The resource couldn't be found
- `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)
