---
title: "Create or update password for the site user."
method: POST
path: "/v1/sites/users/{user_id}/password"
tags: ["Site Users"]
---

# Create or update password for the site user.

`POST /v1/sites/users/{user_id}/password`

For a given site user, create a new password when user is initially invited to site or resets their password

## Path parameters

- `user_id` integer, required

## Request body

- CreateSiteUserPasswordRequest
  - `password` string, required — Password for the site user
  - `token` string, required — Token that allows the password to be set

## Response `200`

OK

- SuccessResponse
  - `success` boolean — whether the request succeeded
  - `errors` string[]
  - `messages` string[], nullable
  - `result` object
    - `success` boolean — whether the request succeeded

## Other responses

- `400` — Bad Request
- `401` — Authentication failed
- `403` — Not authorized to access endpoint
- `404` — Given site not found for user
- `405` — Invalid input
- `500` — Internal error

---

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