Step 4: Create a custom resource scope

POST {{apiPath}}/environments/{{envID}}/resources/{{customResourceID}}/scopes

In this step, you create a scope for the custom resource that you apply to the resource access grant in Step 5. The POST /environments/{{envID}}/resources/{{resourceID}}/scopes creates the custom scope associated with the custom resource entity ID specified in the request URL.

The response returns the scope ID, which is needed in Step 5.

Request Body

{"name"=>"CustomScope_{{$timestamp}}", "description"=>"My scope"}

HEADERS

KeyDatatypeRequiredDescription
Authorizationstring
Content-Typestring