---
title: "Replace User Account Permissions"
method: PUT
path: "/organizations/users/{user_id}/account-permissions"
---

# Replace User Account Permissions

`PUT /organizations/users/{user_id}/account-permissions`

## Request

- Base URL: `https://api-sandbox.y.uno/v1`
- URL: `https://api-sandbox.y.uno/v1/organizations/users/{user_id}/account-permissions`
- Auth: API key in header `PUBLIC-API-KEY` and API key in header `PRIVATE-SECRET-KEY`
- TypeScript: <https://skmtc.dev/y/apis/ai-caller/docs/organizations/users/:user_id/account-permissions/put.ts> (a function with typed inputs; its response is checked against the schema)

Replaces all account permission assignments for a user. This is a full replacement.

## Path parameters

- `user_id` string, uuid, required

## Request body

- object
  - `account_permissions` object[], required
    - `account_id` string, uuid, required
    - `role_id` string, required

## Response `200`

OK

- object
  - `status` string

---

[API](https://skmtc.dev/y/apis/ai-caller.md) - [All operations](https://skmtc.dev/y/apis/ai-caller/llms.txt) - [OpenAPI document](https://skmtc.dev/y/apis/ai-caller/revisions/05b629819b49?raw)
