---
title: "Set application access for users"
method: PUT
path: "/applications/user/access"
tags: ["Application"]
---

# Set application access for users

`PUT /applications/user/access`

## Request

- Base URL: `https://api.your-domain.com`
- URL: `https://api.your-domain.com/applications/user/access`
- Auth: API key in header `X-API-KEY`
- TypeScript: <https://skmtc.dev/neulandai/apis/neuland-ai-hub-api/docs/applications/user/access/put.ts> (a function with typed inputs; its response is checked against the schema)

Grant or update application access for a list of users (tenant admin only).

## Query parameters

- `cookie_name` string, nullable
- `tenant_id` integer

## Request body

- ApplicationAccessIn: Schema for granting app access to users
  - `application_id` integer, required: ID of the application to grant access to.
  - `user_ids` integer[], nullable: IDs of the users who should have access to the application.

## Response `200`

Successful Response

- ApplicationMember[]
  - `user_id` integer, required: ID of the user.
  - `tenant_id` integer, required: ID of the tenant.
  - `app_id` integer, required: ID of the application.
  - `granted_by` integer, nullable, required: ID of the user who granted access.
  - `created_at` string, date-time: Timestamp when access was created.

## Other responses

- `401`: Missing or invalid authentication.
- `403`: Tenant admin privileges required.
- `404`: No application exists with the given id.
- `422`: Validation Error

---

[API](https://skmtc.dev/neulandai/apis/neuland-ai-hub-api.md) - [All operations](https://skmtc.dev/neulandai/apis/neuland-ai-hub-api/llms.txt) - [OpenAPI document](https://skmtc.dev/neulandai/apis/neuland-ai-hub-api/revisions/b53e89b98c2b?raw)
