REST API 1.0 - CustomerID
Last reviewed: 2021-07-22
Note: The term Remove used in in the APIs is exactly the same as the Delete function. Calling any API with the Remove term will result in the associated data being deleted from the database. There is no recovery function for these Remove calls.
- 1 Modification Operations
- 1.1 MOD001b Create Organization
- 1.2 MOD002 Remove Organization
- 1.3 MOD003b Update Organization
- 1.4 MOD004b Update User
- 1.5 MOD005 Assign Role
- 1.6 MOD006 Deassign Role
- 1.7 MOD007 Create Role
- 1.8 MOD008 Remove Role
- 1.9 MOD009 Create User
- 1.10 MOD010b Delete User
- 1.11 MOD011 Initialization
- 1.12 MOD013 Update Users
- 2 Request Operations
Modification Operations
MOD001b Create Organization
Description
Create a new organization, suborganization or virtual organization.
Target Type
Collection
Request URL
Request URL defines the parent of the organization to be created.
Examples
https://HOSTNAME/eidm2/services/orgs/
https://HOSTNAME/eidm2/services/orgs/ORGANIZATION/
https://HOSTNAME/eidm2/services/orgs/ORGANIZATION/SUBORG/
https://HOSTNAME/eidm2/services/orgs/VIRTUALORG/SUBVORG/
https://HOSTNAME/eidm2/services/orgs/1234567-8/
https://HOSTNAME/eidm2/services/orgs/1234567-8/123456789/
Request Method
POST
Request URL Parameters
Name | Accepted Values | Multivalued | Mandatory | Default | Description |
|---|---|---|---|---|---|
virtual | Boolean |
|
| false | Defines whether the organization is virtual. |
organizationId | String |
| X |
| Unique name of the organization to be created. |
friendlyName | String |
| X |
| Human readable name of the organization. |
organizationClass (or organizationType) | String from Configured Set |
|
|
| Organization type defining the initial configuration of the created organization. We support both the old parameter name (organizationClass) and the new parameter name (organizationType). |
"custom attribute" | String | X |
|
| Organization's custom attribute and a value (multiple values are separated with comma). For example, vatnumber=12345 |
Curl Example
curl --insecure -X POST -u restuser:secret "https://localhost:7443/eidm2/services/orgs/?organizationId=6666666-6&friendlyName=TestOrganization"Response Document
<idlist>
<Id>https://HOSTNAME/eidm2/services/org/example1/dep1</Id>
</idlist>MOD002 Remove Organization
Description
Remove the specified organization.