---
title: "Assign resources to a user"
method: POST
path: "/accounts/assign-resources"
tags: ["Resource Access"]
---

# Assign resources to a user

`POST /accounts/assign-resources`

## Request

- Base URL: `https://api.quiva.ai`
- URL: `https://api.quiva.ai/accounts/assign-resources`
- Auth: one of:
  - HTTP bearer
  - API key in header `x-api-key`
- TypeScript: <https://skmtc.dev/quivaworks/apis/quiva-ai-gateway/docs/accounts/assign-resources/post.ts> (a function with typed inputs; its response is checked against the schema)

Grants a member of the caller's account access to resources such as spaces, with optional read, write, execute and delete permissions. Admin or root only.

## Request body

- object
  - `user_id` string, required: Member to grant
  - `resources` object[], required
    - `type` string, required: Resource type, for example `space`
    - `id` string, required: Resource id
    - `read` boolean
    - `write` boolean
    - `execute` boolean
    - `delete` boolean

## Response `200`

Success

- object
  - `message` string: Success message

## Other responses

- `400`: Bad request
- `401`: Unauthorized
- `403`: Caller is not an admin or root

## Changes

- **2026-11-12** `700eb1ace61a`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/quivaworks/apis/quiva-ai-gateway/changes/accounts/assign-resources/post.md)

---

[API](https://skmtc.dev/quivaworks/apis/quiva-ai-gateway.md) - [All operations](https://skmtc.dev/quivaworks/apis/quiva-ai-gateway/llms.txt) - [OpenAPI document](https://skmtc.dev/quivaworks/apis/quiva-ai-gateway/revisions/700eb1ace61a?raw)
