---
title: "Create user-site assignment"
method: POST
path: "/v1/createUserSiteAssignments"
tags: ["User"]
---

# Create user-site assignment

`POST /v1/createUserSiteAssignments`

Assign a user to a specific site. Requires admin permissions.

## Request body

- object
  - `userId` string, required — ID of the user to assign
  - `siteId` string, required — ID of the site to assign the user to

## Response `200`

User-site assignment created successfully

- object
  - `success` boolean
  - `message` string

## Other responses

- `4XX` — Client error response

## Changes

- **2025-12-02** `341d0d8f51f9` — 1 info
  - endpoint added
- **2025-11-17** `1ecbbc9bbafb` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/voltview/apis/voltview-api/changes/v1/createUserSiteAssignments/post.md)

---

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