Step 5: Create the application's resource access grant

POST {{apiPath}}/environments/{{envID}}/applications/{{CustomResourceAppID}}/grants

The POST /environments/{{envID}}/applications/{{appID}}/grants operation creates a resource access grant for the application specified by its ID in the request URL.

The body of the request specifies the ID for the custom resouece and the ID for the custom scope.

Request Body

{"resource"=>{"id"=>"{{customResourceID}}"}, "scopes"=>[{"id"=>"{{customScopeID}}"}]}

HEADERS

KeyDatatypeRequiredDescription
Authorizationstring
Content-Typestring