You are viewing an old version of this page. View the current version.
Compare with Current
View Page History
« Previous
Version 10
Next »
Organization API can perform functions to interact or exchange data with Organization.
| Name | Description |
---|
1 | | Name | Description |
---|
URL | /organization | HTTP Method | POST | Body Parameters | Parameter | Description |
---|
id | Organization ID. | name | Organization name. | description | Description of organization. |
| Sample Response |
{
"id": "apiTestOrg",
"name": "API Test Org",
"description": "This is an organization created by API."
}
|
|
2 | |
Delete an organization via organization ID.
Name | Description |
---|
URL | /organization/{id} | HTTP Method | DELETE | Path Parameters | Parameter | Description |
---|
id | Organization ID. |
| Sample Response |
{
"date": "Wed Aug 28 15:43:58 SGT 2019",
"code": "200",
"message": "Successful operation"
}
|
|
3 | |
Gets all organizations by default. Able to filter or sort the returned results via parameters.
Name | Description |
---|
URL | /organization/find | HTTP Method | GET | Query String Parameters | Parameter | Description |
---|
nameFilter | Filters the response via organization ID. | sort | Organization 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": "ORG-001",
"name": "Joget.Org",
"description": ""
}
]
|
|
4 | |
Get details of a organization via organization ID.
Name | Description |
---|
URL | /organization/{id} | HTTP Method | GET | Path Parameters | Parameter | Description |
---|
id | Organization ID. |
| Sample Response |
[
{
"id": "ORG-001",
"name": "Joget.Org",
"description": ""
}
]
|
|
5 | |
Update the details of a organization.
Name | Description |
---|
URL | /organization | HTTP Method | PUT | Body Parameters | Parameter | Description |
---|
id | Organization ID. | name | Organization name. | description | Description of organization. |
| Sample Response |
{
"id": "apiTestOrg",
"name": "API Test Org",
"description": "This organization is updated via API."
}
|
|