EnderDash

Create Access Grant

POST
/organizations/createAccessGrant

Authorization

better-auth.session_token<token>

Signed-in EnderDash browser session cookie.

In: cookie

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

organizationId?string
Length1 <= length
organizationSlug?string
Length1 <= length
memberId*string
Formatuuid
serverId?|null
reason?string
Lengthlength <= 1000
draft*

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/organizations/createAccessGrant" \  -H "Content-Type: application/json" \  -d '{    "memberId": "92983ab9-49c8-444b-85ae-6e40402cf72e",    "draft": {      "effect": 0,      "actions": [        0      ],      "scope": {        "scopeKind": "any"      }    }  }'
null