Step 3: Create a custom scope
POST {{apiPath}}/environments/{{envID}}/resources/{{customResourceID}}/scopes
In this step, you create a custom scope associated with the custom resource you created in Step 2. This custom scope will be needed for the resource access grant in Step 5.
The GET /environments/{{envID}}/resources/{{resourceID}}/scopes
operation creates a new scope associated with the resource entity ID specified in the request URL. The value for the {{resourceID}}
parameter is the ID of the custom resource you created in Step 2.
Request Body
{"name"=>"CustomResourceScope_{{$timestamp}}", "description"=>"My scope"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Authorization | string | ||
Content-Type | string |