---
title: "Answer an access request"
method: POST
path: "/api/v1/access-requests/{request_id}"
tags: ["access-requests"]
---

# Answer an access request

`POST /api/v1/access-requests/{request_id}`

## Request

- Base URL: `https://easeweb.host`
- URL: `https://easeweb.host/api/v1/access-requests/{request_id}`
- Auth: one of:
  - HTTP bearer
  - API key in cookie `sessionid`

Approve or decline a request for access to one of your presentations or projects. "role" may change what is given
(default: what was asked for); "whole_project" gives it for every presentation of the project of that presentation.

## Path parameters

- `request_id` integer, required: The id of the access request.

## Request body

- object
  - `approve` boolean, required: true approves the request, false declines it.
  - `role` 'view' | 'edit': "view" -- read; "edit" -- read and change.
  - `whole_project` boolean: Give the access for the whole project the presentation is in (default false: this presentation only).

## Response `200`

OK

- object

## Other responses

- `4XX`: Error

---

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