---
title: "Authorize an authenticated project user for this session"
method: PUT
path: "/sandbox-sessions/{sessionId}/grants/{subjectId}"
tags: ["Sandboxes"]
---

# Authorize an authenticated project user for this session

`PUT /sandbox-sessions/{sessionId}/grants/{subjectId}`

## Request

- Base URL: `https://api.volcano.dev`
- URL: `https://api.volcano.dev/sandbox-sessions/{sessionId}/grants/{subjectId}`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer

## Path parameters

- `sessionId` string, uuid, required
- `subjectId` string, uuid, required

## Request body

- SandboxSubjectGrantRequest
  - `expires_at` string, date-time, required

## Response `204`

Authorize an authenticated project user for this session

## Other responses

- `default`: Request refused or unavailable. Errors include invalid input (400), unauthenticated (401), forbidden (403), not found (404), conflicting retry (409), capacity exhausted (429), and temporarily unavailable (503). Code `feature_unavailable` with 404 means sandboxes are not available in this environment.

## Changes

- **2026-10-05** `d350e7525428`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/kong/apis/volcano-api/changes/sandbox-sessions/:sessionId/grants/:subjectId/put.md)

---

[API](https://skmtc.dev/kong/apis/volcano-api.md) - [All operations](https://skmtc.dev/kong/apis/volcano-api/llms.txt) - [OpenAPI document](https://skmtc.dev/kong/apis/volcano-api/revisions/84c4488f91e9?raw)
