---
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`

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.net/neulandai/apis/neuland-ai-hub-api.md) · [All operations](https://skmtc.net/neulandai/apis/neuland-ai-hub-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/neulandai/neuland-ai-hub-api/revisions/b53e89b98c2b/schema)
