You are viewing an old version of this page. View the current version.
Compare with Current
View Page History
« Previous
Version 8
Next »
Group API can perform functions to interact or exchange data for 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 | |
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"
}
|
|
3 | |
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": ""
},
.....
]
|
|
4 | |
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. | 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": ""
}
]
|
|
5 | |
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": ""
}
|
|
6 | |
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."
}
|
|