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.