Task 2 - Create and fetch an Organization
Task 2 - Create an Organization
An organization typically represents a real-world organization. It is a container of all the groups, libraries, and schemas of that organization. So, in this step you create an organization to hold all the schemas that you will create for this tutorial.
You do not need any special privileges to create an organization. Every organization you create is private by default. You will have admin privileges to the organization; and groups, libraries, and schemas within that organization.
Expected task outcome
By the end of this task you will be able to:
- Create a new organization.
- Fetch details of organization.
Endpoints used in this task
You will use the following API endpoints in this task:
.. list-table:: :widths: 10, 50, 40 :header-rows: 1
-
- Method
- Endpoint
- Operation
-
- POST
- /organizations
Create an Organization_
-
- GET
- /organizations/{organizationId}
Fetch an Organization_
Step 1 - Create a Organization
In Postman, on the sidebar, Select Task 2 > POST Create a Organization and click Send. The equivalent cURL request is as follows.
Note: You can retrieve the resource information of a tenant using the requested tenant ID in a two-legged context Get tenantId.
Request
|
Response
Step 2 - Fetch Organization
This topic explains how to fetch the details of a specific organization and the permission you have been granted.
In postman, Select Task 2 > GET Fetch Organization and click Send. The equivalent cURL request is as follows.
Request
|