POST/groups/{groupId}/administrators

Adds a group master. This API operation cannot add an administrator for an external group.

Authorization

oauth2

OAuth 2.0 authentication.
For more information, see Authentication and Authorization.

Scope

directory
group

HTTP Request

POSThttps://www.worksapis.com/v1.0/groups/{groupId}/administrators

Path Parameters

ParameterTypeDescription
groupId string 

Group ID or external key.
External key in "externalKey:{externalKey}" format


required 

Header Parameters

HeadertypeDescription
Authorization string 

Bearer {token}


required 
Content-Type string 

application/json


required
example : application/json 

Request Body

PropertyTypeDescription
userId string 

Member ID
- Email address
- Resource ID
- External key in "externalKey:{externalKey}" format


required 

Request Example

example

1{2  "userId": "userf7da-f82c-4284-13e7-030f3b4c756x"3}

Response

HTTP 201

Created

HTTP 400

Bad Request

HTTP 403

Forbidden

HTTP 404

Not Found

HTTP 409

Conflict