Create Group
Create a new group
POST /group/v1/create
This API is used to create a group
The endpoint for Create Group is
/group/v1/createThe fields marked with an asterisk (*) are mandatory. They cannot be null or empty.
Headers
Name
Value
Content-Type*
application/json
Authorization*
Bearer <token>
X-Authenticated-User-token*
<keycloak-access-token>
Body
{
"request": {
"userId": "user id to be deleted"
}
}Name
Type
Description
userId*
string
User id of the user to be deleted
Response
{
"id": "api.group.create",
"ver": "v1",
"ts": "2020-12-01 20:52:25:226+0000",
"params": null,
"result": {
"groupId": "682473c2-12ba-4a89-b8db-67c2c65ca97a"
},
"responseCode": 200
}{
"id": "api.group.create",
"ver": null,
"ts": "2020-12-02 11:09:52:748+0530",
"params": {
"resmsgid": null,
"msgid": "6da747d8-c19f-40cb-9938-fcf0913e301f",
"err": "GS_CRT02",
"status": "failed",
"errmsg": "Failed to create group, fields are missing in the request. Enter the required values and resend the request."
},
"result": {},
"responseCode": 400
}{
"id": "api.group.create",
"ver": null,
"ts": "2020-12-02 05:53:25:361+0000",
"params": {
"resmsgid": null,
"msgid": "f5e58ea069e93de16e721d0312a195dc",
"err": "GS_UNAUTHORIZED",
"status": "failed",
"errmsg": "You are an unauthorized.Contact your system administrator"
},
"result": {},
"responseCode": 401
}Last updated
Was this helpful?