Article summary
Did you find this summary helpful?
Thank you for your feedback
POST /v1/groups/{groupId}/member/{userId}
Add a member to a group.
Parameters:
Property | Data Type | Description |
---|---|---|
groupId* | String | ID of group. |
userId* | String | ID of user. |
Request Body: None
Request Example:
curl -X POST 'https://api.perimeter81.com/api/rest/v1/groups/<GROUP_ID>/member/<USER_ID>' -H 'Authorization: Bearer <ACCESS_TOKEN>'
Response:
Status Code | Message/Response Body | Description |
---|---|---|
201 | Group | Success. Group member added. |
Response Example:
{
"tenantId":"<TENANT_NAME>",
"name":"<GROUP_NAME>",
"description":"<GROUP_DESCRIPTION>",
"isDefault":false,
"applications":[],
"networks":[],
"vpnLocations":[],
"users":[
"<USER1_ID>",
"<USER2_ID>",
"<USER3_ID"
],
"createdAt":"2020-03-05T17:04:38.946Z",
"updatedAt":"2021-09-30T14:03:30.947Z",
"id":"<GROUP_ID>"
}
Was this article helpful?