Page created: 30 Sep 2020
|
Page updated: 30 Sep 2020
Creating a group is a similar process, performing a POST operation against the Group endpoint:
curl -v -X POST --user 1234-aaaa-bbbb-5678:eXJzbmVha3kh \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d ' {
"schemas":["urn:scim:schemas:core:1.0"],
"displayName":"Software Developers" }' \
https://directory-api.pingone.com:443/api/directory/group
A successful request will result in a HTTP 200 OK response and the JSON representation of the group that was just created:
HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
{
"id":"7c513a7e-55d4-441c-858c-7329e6268084",
"displayName":"Software Developers",
"schemas": [
"urn:scim:schemas:core:1.0",
"urn:scim:schemas:com_pingone:1.0"
],
"meta": {
"lastModified":"2015-04-16T10:08:22.324-06:00",
"created":"2015-04-16T10:08:22.324-06:00",
"location":"https://directory-api.pingone.com/v1/group/7c513a7e-55d4-441c-858c-7329e6268084"
},
"urn:scim:schemas:com_pingone:1.0": {
"createTimeStamp":1429200502324,
"lastModifiedTimeStamp":1429200502324,
"accountId":"a6538050-412a-4bca-a44d-07deb4b073a8",
"directoryId":"90b3dfe3-f8d0-45ad-8c04-047c88b03137"
}
}