grant_resource_access
Endpoint#
| Property | Value |
|---|---|
| Type | mutation |
| Method | POST |
| Path | /api/external/v1/grant_resource_access |
| Handler | OperatelyWeb.Api.Mutations.GrantResourceAccess |
Authentication#
- Requires a valid API token.
- Requires a write-enabled token.
- Read-only tokens return
403.
Inputs#
| Field | Type | Required | Nullable | Default |
|---|---|---|---|---|
person_id | string | Yes | No | - |
resources | array of resource_access_input object | Yes | No | - |
Outputs#
| Field | Type | Required | Nullable |
|---|---|---|---|
success | boolean | Yes | No |
cURL Example#
Copied
curl --request POST \
--url "https://app.operately.com/api/external/v1/grant_resource_access" \
--header "Authorization: Bearer ${OPERATELY_API_TOKEN}" \
--header "Content-Type: application/json" \
--data '{"person_id":"value", "resources":[{"access_level":"no_access", "resource_id":"value", "resource_type":"space"}]}'Response Example#
{
"success": true
}