---
title: "PUT /api/admin/subscription-groups/assignments"
method: PUT
path: "/api/admin/subscription-groups/assignments"
tags: ["Subscription Groups"]
---

# PUT /api/admin/subscription-groups/assignments

`PUT /api/admin/subscription-groups/assignments`

Create or update user subscription group assignments. This performs a patch update on the user's subscription group assignments.

## Request body

- object
  - `workspaceId` string, required
  - `userUpdates` object[], required
    - `userId` string, required
    - `changes` object, required — A map from subscription group ids to a boolean indicating whether the user is subscribed to the subscription group.

## Response `200`

An empty String

- string — An empty String

---

[API](https://skmtc.net/dittofeed/apis/dittofeed-api.md) · [All operations](https://skmtc.net/dittofeed/apis/dittofeed-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/dittofeed/dittofeed-api/revisions/13cf71747bf1/schema)
