---
title: "Set Subject Namespace Access"
method: PUT
path: "/api/agent-data/access"
tags: ["agent-data"]
---

# Set Subject Namespace Access

`PUT /api/agent-data/access`

## Request

- Base URL: `https://app.thinqos.com` (the document declares no server; this is the origin it was published from)
- URL: `https://app.thinqos.com/api/agent-data/access`
- Auth: none declared

Set *subject*'s database level on one namespace by writing its folder rung.

## Request body

- SetNamespaceAccessIn
  - `subject_identity_id` string, required
  - `namespace_id` string, required
  - `level` string, required

## Response `200`

Successful Response

- NamespaceAccessOut
  - `namespace_id` string, required
  - `namespace` string, required
  - `environment_name` string, required
  - `library_id` string, required
  - `level` string, required
  - `can_manage` boolean, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/thinqos/apis/thinqos-api.md) · [All operations](https://skmtc.dev/thinqos/apis/thinqos-api/llms.txt) · [OpenAPI document](https://skmtc.dev/thinqos/apis/thinqos-api/revisions/ce2c2ce318b1?raw)
