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

# Set application access for a user group

`PUT /applications/group/access`

## Request

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

Grant or update application access for a user group (tenant admin only).

## Query parameters

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

## Request body

- GroupAppAccessIn: Schema for granting app access to a group
  - `application_id` integer, required: ID of the application to grant access to.
  - `group_ids` integer[], nullable: IDs of the user groups that should have access to the application.

## Response `200`

Successful Response

- ApplicationGroup[]
  - `tenant_id` integer, required: ID of the tenant.
  - `group_id` integer, required: ID of the user group.
  - `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 the user group was created.

## Other responses

- `401`: Missing or invalid authentication.
- `403`: Tenant admin privileges required.
- `404`: Application not found, or one or more groups not found.
- `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)
