Skip to content

Commit

Permalink
Merge pull request #504 from permitio/maya/per-11831-fix-access-reque…
Browse files Browse the repository at this point in the history
…st-urls-in-the-docs

Fix urls in access request doc
  • Loading branch information
maya-barak authored Feb 10, 2025
2 parents 75d2ddb + b278f5e commit 2551d39
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions docs/api/elements/access-requests.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ Replace `API_SECRET_KEY` with the key from the Permit dashboard, as well as the
To create a new access request, make a POST request to the following with the required data.

```bash
curl 'https://api.permit.io/v2/facts/{project_id}/{env_id}/access_requests' \
curl 'https://api.permit.io/v2/elements/{proj_id}/{env_id}/config/{elements_config_id}/access_requests' \
-H 'cookie: <COOKIE FROM LOGIN>'
-H 'element_id: ELEMENTS_CONFIG_ID'
-data-raw
Expand Down Expand Up @@ -135,7 +135,7 @@ The user who creates the access request must be in the tenant that the access re

To get a specific access request, make a GET request to the following.
```bash
curl 'https://api.permit.io/v2/facts/{project_id}/{env_id}/access_requests/{access_request_id}' \
curl 'https://api.permit.io/v2/elements/{proj_id}/{env_id}/config/{elements_config_id}/access_requests/{access_request_id}' \
-H 'cookie: <COOKIE FROM LOGIN>'
-H 'element_id: ELEMENTS_CONFIG_ID'
```
Expand Down Expand Up @@ -173,7 +173,7 @@ You can filter access requests by passing the following headers:
To get a list of access requests, make the following GET request:

```bash
curl 'https://api.permit.io/v2/facts/{project_id}/{env_id}/access_requests' \
curl 'https://api.permit.io/v2/elements/{proj_id}/{env_id}/config/{elements_config_id}/access_requests' \
-H 'cookie: <COOKIE FROM LOGIN>'
-H 'element_id: ELEMENTS_CONFIG_ID'
-H 'status: Status of the access request'
Expand Down Expand Up @@ -223,7 +223,7 @@ Users who are not designated as reviewers will only have visibility into their o
To update an access request, make the following PATCH request (data is optional):

```bash
curl 'https://api.permit.io/v2/facts/{project_id}/{env_id}/access_requests/{access_request_id}/reviewer' \
curl 'https://api.permit.io/v2/elements/{proj_id}/{env_id}/config/{elements_config_id}/access_requests/{access_request_id}/reviewer' \
-H 'cookie: <COOKIE FROM LOGIN>'
-H 'element_id: ELEMENTS_CONFIG_ID'
--data-raw
Expand Down Expand Up @@ -261,7 +261,7 @@ The return access request object will look like this:
To approve an access request, make the following PUT request (data is optional):

```bash
curl 'https://api.permit.io/v2/facts/{project_id}/{env_id}/access_requests/{access_request_id}/approve' \
curl 'https://api.permit.io/v2/elements/{proj_id}/{env_id}/config/{elements_config_id}/access_requests/{access_request_id}/approve' \
-H 'cookie: <COOKIE FROM LOGIN>'
-H 'element_id: ELEMENTS_CONFIG_ID'
--data-raw
Expand Down Expand Up @@ -298,7 +298,7 @@ The return user object will look like this:
To deny an access request, make the following PUT request (data is optional):

```bash
curl 'https://api.permit.io/v2/facts/{project_id}/{env_id}/access_requests/{access_request_id}/deny' \
curl 'https://api.permit.io/v2/elements/{proj_id}/{env_id}/config/{elements_config_id}/access_requests/{access_request_id}/deny' \
-H 'cookie: <COOKIE FROM LOGIN>'
-H 'element_id: ELEMENTS_CONFIG_ID'
--data-raw
Expand Down Expand Up @@ -336,7 +336,7 @@ The return access request object will look like this:
To cancel an access request, make the following PUT request:

```bash
curl 'https://api.permit.io/v2/facts/{project_id}/{env_id}/access_requests/{access_request_id}/cancel' \
curl 'https://api.permit.io/v2/elements/{proj_id}/{env_id}/config/{elements_config_id}/access_requests/{access_request_id}/cancel' \
-H 'cookie: <COOKIE FROM LOGIN>'
-H 'element_id: ELEMENTS_CONFIG_ID'
--data-raw
Expand Down

0 comments on commit 2551d39

Please sign in to comment.