CreateSCIMGroup - Create a SCIM group
|
Applicable editions |
Central edition, Region edition |
Service endpoints and authorization
-
Get service endpoints: Replace {domain} in the API request syntax.
-
Get organizationId: Required only for the Central edition. Go to the Organization Management console and open the Basic Information page to obtain the organization ID.
|
Product |
Resource |
Required permissions |
|
Organization Management |
SCIM |
Read and write |
Request syntax
Central edition
POST https://{domain}/oapi/v1/platform/organizations/{organizationId}/scim/v2/Groups
Region edition
POST https://{domain}/oapi/v1/platform/scim/v2/Groups
Request headers
|
Parameter |
Type |
Required |
Description |
Example value |
|
x-yunxiao-token |
string |
Yes |
Personal access token. |
pt-0fh3****0fbG_35af****0484 |
Request parameters #1
|
Parameter |
Type |
Location |
Required |
Description |
Example value |
|
organizationId |
string |
path |
Yes |
Organization ID. |
|
| - |
object |
body |
No |
||
|
displayName |
string |
body |
Yes |
||
|
externalId |
string |
body |
No |
||
|
id |
string |
body |
No |
||
| members |
array |
body |
No |
||
| - |
object |
body |
No |
||
|
$ref |
string |
body |
No |
||
|
display |
string |
body |
No |
||
|
type |
string |
body |
No |
||
|
value |
string |
body |
No |
||
| meta |
object |
body |
No |
||
|
created |
string |
body |
No |
||
|
lastModified |
string |
body |
No |
||
|
location |
string |
body |
No |
||
|
resourceType |
string |
body |
No |
||
|
version |
string |
body |
No |
||
|
schemas |
array[string] |
body |
Yes |
||
| urn:alibaba:params:scim:schemas:extension:nezha:2.0:Group |
object |
body |
No |
||
|
parentExternalId |
string |
body |
No |
||
|
parentId |
string |
body |
No |
||
|
path |
string |
body |
No |
Request parameters #2
|
Parameter |
Type |
Location |
Required |
Description |
Example value |
|
organizationId |
string |
path |
Yes |
Organization ID |
|
| - |
object |
body |
No |
||
|
displayName |
string |
body |
Yes |
||
|
externalId |
string |
body |
No |
||
|
id |
string |
body |
No |
||
| members |
array |
body |
No |
||
| - |
object |
body |
No |
||
|
$ref |
string |
body |
No |
||
|
display |
string |
body |
No |
||
|
type |
string |
body |
No |
||
|
value |
string |
body |
No |
||
| meta |
object |
body |
No |
||
|
created |
string |
body |
No |
||
|
lastModified |
string |
body |
No |
||
|
location |
string |
body |
No |
||
|
resourceType |
string |
body |
No |
||
|
version |
string |
body |
No |
||
|
schemas |
array[string] |
body |
Yes |
||
| urn:alibaba:params:scim:schemas:extension:nezha:2.0:Group |
object |
body |
No |
||
|
parentExternalId |
string |
body |
No |
||
|
parentId |
string |
body |
No |
||
|
path |
string |
body |
No |
Request example #1
Central edition
curl -X 'POST' \
'https://{domain}/oapi/v1/platform/organizations/{organizationId}/scim/v2/Groups' \
-H 'Content-Type: application/json' \
-H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484' \
--data '
{
"displayName": "",
"externalId": "",
"id": "",
"members": [
{
"$ref": "",
"display": "",
"type": "",
"value": ""
}
],
"meta": {
"created": "",
"lastModified": "",
"location": "",
"resourceType": "",
"version": ""
},
"schemas": [
],
"urn:alibaba:params:scim:schemas:extension:nezha:2.0:Group": {
"parentExternalId": "",
"parentId": "",
"path": ""
}
}'
Region edition
curl -X 'POST' \
'https://{domain}/oapi/v1/platform/scim/v2/Groups' \
-H 'Content-Type: application/json' \
-H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484' \
--data '
{
"displayName": "",
"externalId": "",
"id": "",
"members": [
{
"$ref": "",
"display": "",
"type": "",
"value": ""
}
],
"meta": {
"created": "",
"lastModified": "",
"location": "",
"resourceType": "",
"version": ""
},
"schemas": [
],
"urn:alibaba:params:scim:schemas:extension:nezha:2.0:Group": {
"parentExternalId": "",
"parentId": "",
"path": ""
}
}'
Request example #2
Central edition
curl -X 'POST' \
'https://{domain}/oapi/v1/platform/organizations/{organizationId}/scim/v2/Groups' \
-H 'Content-Type: application/json' \
-H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484' \
--data '
{
"displayName": "",
"externalId": "",
"id": "",
"members": [
{
"$ref": "",
"display": "",
"type": "",
"value": ""
}
],
"meta": {
"created": "",
"lastModified": "",
"location": "",
"resourceType": "",
"version": ""
},
"schemas": [
],
"urn:alibaba:params:scim:schemas:extension:nezha:2.0:Group": {
"parentExternalId": "",
"parentId": "",
"path": ""
}
}'
Region edition
curl -X 'POST' \
'https://{domain}/oapi/v1/platform/scim/v2/Groups' \
-H 'Content-Type: application/json' \
-H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484' \
--data '
{
"displayName": "",
"externalId": "",
"id": "",
"members": [
{
"$ref": "",
"display": "",
"type": "",
"value": ""
}
],
"meta": {
"created": "",
"lastModified": "",
"location": "",
"resourceType": "",
"version": ""
},
"schemas": [
],
"urn:alibaba:params:scim:schemas:extension:nezha:2.0:Group": {
"parentExternalId": "",
"parentId": "",
"path": ""
}
}'
Response parameters
|
Parameter |
Type |
Description |
Example value |
| - |
object |
||
|
displayName |
string |
||
|
externalId |
string |
||
|
id |
string |
||
| members |
array |
||
| - |
object |
||
|
$ref |
string |
||
|
display |
string |
||
|
type |
string |
||
|
value |
string |
||
| meta |
object |
||
|
created |
string |
||
|
lastModified |
string |
||
|
location |
string |
||
|
resourceType |
string |
||
|
version |
string |
||
|
schemas |
array[string] |
||
| urn:alibaba:params:scim:schemas:extension:nezha:2.0:Group |
object |
||
|
parentExternalId |
string |
||
|
parentId |
string |
||
|
path |
string |
Response example
{
"displayName": "",
"externalId": "",
"id": "",
"members": [
{
"$ref": "",
"display": "",
"type": "",
"value": ""
}
],
"meta": {
"created": "",
"lastModified": "",
"location": "",
"resourceType": "",
"version": ""
},
"schemas": [
],
"urn:alibaba:params:scim:schemas:extension:nezha:2.0:Group": {
"parentExternalId": "",
"parentId": "",
"path": ""
}
}
Error codes
Visit Error code center to view API-related error codes.