---
title: "POST /api/v1/persons/{personId}/grant-access"
method: POST
path: "/api/v1/persons/{personId}/grant-access"
tags: ["Persons"]
---

# POST /api/v1/persons/{personId}/grant-access

`POST /api/v1/persons/{personId}/grant-access`

## Request

- Base URL: `https://api.immy.bot` (the document declares no server; this is the origin it was published from)
- URL: `https://api.immy.bot/api/v1/persons/{personId}/grant-access`
- Auth: none declared

## Path parameters

- `personId` integer, required

## Request body

- GrantAccessRequest
  - `expirationTime` 'OneHour' | 'OneDay' | 'Indefinite' | 'ThreeDays': The string or integer value may be used. OneHour = 1, OneDay = 2, Indefinite = 3, ThreeDays = 4

## Response `200`

OK

- GrantAccessResponse
  - `success` boolean
  - `message` string, nullable
  - `userId` integer, nullable

---

[API](https://skmtc.dev/immy/apis/immy-bot-api-2.md) · [All operations](https://skmtc.dev/immy/apis/immy-bot-api-2/llms.txt) · [OpenAPI document](https://skmtc.dev/immy/apis/immy-bot-api-2/revisions/75b50268fa51?raw)
