Elevated Access Requests
You can ask to consider elevating an access token durring a NextZen GraphQL API query by setting the Resource header, indicating which resource to use as consideration. You may indicate an organization or program resource as a urn in the form.
If you registered your organization with the name Helping Hands and were given the slug helping-hands , the resource URN would be:
urn:prime:service:api:resource:organization:slug:helping-hands
And if you created a program in that organization with the name Here Again and were given the slug here-again , the resource URN would be:
urn:prime:service:api:resource:program:slug:here-again
The request will consider the indicated resource, and will add access only if the user indentied by the origial access token has more privileges granted by the resource.
For example, the following NextZen GraphQL API query will return a full response if the user has additional privileges in the specified resource.
POST
https://helping-hands.portals.wizehive.app/api/graphql
| Authorization | Bearer eyJhbGciOiJSUz.eyJpc3MiOiJodHR.mDZCJz7tfFR2k8edoHje-YO-1EI69SYbeR |
|---|---|
| Resource | urn:prime:service:api:resource:program:slug:here-again |
None
Authenticated Requests
