---
title: "Update customer's consents"
method: PUT
path: "/customers/{customerId}/consents"
---

# Update customer's consents

`PUT /customers/{customerId}/consents`

Use `/customers/:customerId/consents` to set or update customer's consents. <br> This endpoint should be used just after registration (for checkout) or to enable consents management (myAccount). <br>There are two types of consents: required terms and conditions (Cleeng terms and your terms), and not required marketing consents (if enabled you).

## Path parameters

- `customerId` string, required

## Request body

- object
  - `consents` object[], required — Array that contains customers consent name, version and state (accepted/declined)
    - `name` string, required — Name of consent. One of: terms, broadcaster_terms, broadcaster_marketing
    - `version` string, required — Version of consent that will be updated, e.g. "1". Only the newest consent can be updated
    - `state` string — One of: accepted, declined

## Response `200`

200

- object
  - `responseData` object
  - `errors` unknown[]
    - unknown

## Other responses

- `401` — 401
- `500` — 500

---

[API](https://skmtc.net/cleeng/apis/mediastore-api.md) · [All operations](https://skmtc.net/cleeng/apis/mediastore-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/cleeng/mediastore-api/versions/00cbfe7998a4/schema)
