REST API - createResource
The table summarizes the REST API - createResource.
Request
| Format | POST <baseurl>/orgresource/create |
| Body | createResource element: A collection of LDAP references from which new resources are to be created. |
Response
| JSON | Returns a JSON representation of the content of the createResourceResponse element. |
| XML | Returns the content of the createResourceResponse element (from the OrgResourceService schema). |
Example
| Request | POST <baseurl>/orgresource/create |
| Request body | <xml-fragment> <candidate container-id="1" name="Jon Parkin" label="Mr Jon Parkin" ldap-alias="easyAs" ldap-dn="OU=Jon Parkin, OU=Paris, OU=AllEmployees, O=easyAsInsurance"> </candidate> </xml-fragment> |
| Response | {
"entity": {
"-already-present": "false",
"-container-id": "1",
"-ldap-alias": "easyAs",
"-ldap-dn": "OU=Jon Parkin, OU=Paris, OU=AllEmployees, O=easyAsInsurance",
"-guid": "5D9349F8-F8BA-407F-B1EA-D5FCDEEB49A1",
"-name": "Jon Parkin",
"-label": "Mr Jon Parkin"
}
}
|
Copyright © Cloud Software Group, Inc. All rights reserved.
