---
title: "Decide an access request"
method: POST
path: "/api/v1/project-rooms/{id}/access-requests"
tags: ["Projects"]
---

# Decide an access request

`POST /api/v1/project-rooms/{id}/access-requests`

## Request

- Base URL: `https://askthegrid.com`
- URL: `https://askthegrid.com/api/v1/project-rooms/{id}/access-requests`
- Auth: HTTP bearer

Managers approve a request at a chosen role or decline it. The decision and membership change commit atomically; concurrent project changes return 409.

## Path parameters

- `id` string, required

## Request body

- union
  - object
    - `requestId` string, required
    - `decision` 'approve', required
    - `role` 'viewer' | 'editor' | 'manager', required
  - object
    - `requestId` string, required
    - `decision` 'decline', required

## Response `200`

Success

- object
  - `decided` boolean, required

## Other responses

- `400`: The request did not match the contract.
- `401`: Missing or invalid credentials.
- `429`: Rate limit exceeded. Wait `Retry-After` seconds; `X-RateLimit-Limit`, `X-RateLimit-Remaining` and `X-RateLimit-Reset` report the budget. Signed-in sessions and API keys have larger budgets than anonymous callers.

---

[API](https://skmtc.dev/askthegrid/apis/ask-the-grid-api.md) · [All operations](https://skmtc.dev/askthegrid/apis/ask-the-grid-api/llms.txt) · [OpenAPI document](https://skmtc.dev/askthegrid/apis/ask-the-grid-api/revisions/9cd80115e395?raw)
