Step 5: Assign a resource grant to the web application
POST {{apiPath}}/environments/{{envID}}/applications/{{customResourceAppID}}/grants
The POST /environments/{{envID}}/applications/{{appID}}/grants
operation creates a new resource access grant for the application.
The body of the request specifies the ID for the resource
property (your new custom resource) and the ID for the scope (your new custom scope) that you assign to the application's resource grant.
The response data shows the resource grant ID and the scope associated with the grant.
Request Body
{"resource"=>{"id"=>"{{customResourceID}}"}, "scopes"=>[{"id"=>"{{customResourceScopeID}}"}]}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Authorization | string | ||
Content-Type | string |