You are viewing an old version of this page. View the current version.
Compare with Current
View Page History
« Previous
Version 11
Next »
Group API can perform functions to interact or exchange data with Groups.
| Name | Description |
---|
1 | | Name | Description |
---|
URL | /group | HTTP Method | POST | Body Parameters | Parameter | Description |
---|
id | Group ID. | name | Group name. | description | Description of group. |
| Sample Response |
{
"id": "apiTestGroup",
"name": "API Test Group",
"description": "This is a group created by API."
}
|
|
2 | |
Assign a Joget user to a group.
Name | Description |
---|
URL | /group/assignUser/{group}/{username} | HTTP Method | POST | Path Parameters | Parameter | Description |
---|
group | Group ID. | username | Username of Joget user. |
| Sample Response |
{
"username": "cat",
"groups": [
{
"name": "G-004",
"description": "This is API generated group.",
"organizationId": ""
}
]
}
|
|
3 | |
Delete a group via group ID.
Name | Description |
---|
URL | /group/{id} | HTTP Method | DELETE | Path Parameters | Parameter | Description |
---|
id | Group ID. |
| Sample Response |
{
"date": "Wed Aug 28 16:13:00 SGT 2019",
"code": "200",
"message": "Successful operation"
}
|
|
4 | |
Get all groups by default. Able to filter or sort the returned results via parameters.
Name | Description |
---|
URL | /group/find | HTTP Method | GET | Query String Parameters | Parameter | Description |
---|
nameFilter | Filters the response via group ID. | organizationId | Filter groups that belong to an organization, via organization ID. | sort | Group data column to sort. Must be used in conjunction with "sortDescending" parameter. | sortDescending | Sort the specified "sort" parameter value in ascending or descending order. Expects a boolean value. Must be used in conjunction with "sort" parameter. | startOffset | Starting position of records to start query. Expects an integer. | pageSize | Number of results to return. Expects an integer. |
| Sample Response |
[
{
"id": "G-001",
"name": "Managers",
"description": ""
},
{
"id": "G-002",
"name": "CxO",
"description": ""
},
.....
]
|
|
5 | |
Find the group that belongs to the specified user via username.
Name | Description |
---|
URL | /group/findByUser/{username} | HTTP Method | GET | Path Parameters | Parameter | Description |
---|
username | Username of a Joget user. |
| Query String Parameters | Parameter | Description |
---|
nameFilter | Filters the response via group ID. | organizationId | Filter groups that belong to an organization, via organization ID. | inGroup | Search for group(s) that the user belongs or does not belong to. Expects a boolean value. | sort | Group data column to sort. Must be used in conjunction with "sortDescending" parameter. | sortDescending | Sort the specified "sort" parameter value in ascending or descending order. Expects a boolean value. Must be used in conjunction with "sort" parameter. | startOffset | Starting position of records to start query. Expects an integer. | pageSize | Number of results to return. Expects an integer. |
| Sample Response |
[
{
"id": "G-001",
"name": "Managers",
"description": ""
}
]
|
|
6 | |
Get details of a group via group ID.
Name | Description |
---|
URL | /group/{id} | HTTP Method | GET | Path Parameters | Parameter | Description |
---|
id | Group ID. |
| Sample Response |
{
"id": "G-002",
"name": "CxO",
"description": ""
}
|
|
7 | |
Unassign a Joget user from a group.
Name | Description |
---|
URL | /group/unassignUser/{group}/{username} | HTTP Method | DELETE | Path Parameters | Parameter | Description |
---|
group | Group ID. | username | Username of Joget user. |
| Sample Response |
{
"date": "Thu Dec 05 03:29:56 SGT 2019",
"code": "200",
"message": "Successful operation"
}
|
|
8 | |
Update the details of a group.
Name | Description |
---|
URL | /group | HTTP Method | PUT | Body Parameters | Parameter | Description |
---|
id | Group ID. | name | Group name. | description | Description of group. |
| Sample Response |
{
"id": "apiTestGroup",
"name": "API Test Group",
"description": "This group is updated via API."
}
|
|