Follow these guidelines when you build send requests using the identity domains REST API.
URL Structure
Access the identity domains REST API through a URL, which includes the REST endpoint, the resource that you want to access, and any query parameters that you want to include in a request. Get the complete URL structure for the identity domains REST API from your Oracle Cloud administrator or identity domain administrator.
Basic Endpoint
The basic endpoint for the identity domains REST API is:
https://<domainURL>/
Where: domainURL represents the domain-specific URL. To get this URL using the identity domains Console, see Finding an Identity Domain URL.
Alternatively, get this URL from your Oracle Cloud administrator or identity domain administrator.
Resource Endpoints
When you create a new resource or perform a search for members of a resource type, you append the name of the resource. For example, when you send a POST request to create a new user, you use the endpoint:
https://<domainURL>/admin/v1/Users
Specific Resources Within an Endpoint
To access a specific resource, you append the value of the id attribute for that resource to the resource endpoint. For example, if you created a User, and the response to your POST request included the ocid value ocid1.user.oc1..xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx in the response body, you would use the following endpoint to access that specific User resource in subsequent GET,PATCH, or PUT requests: