Organization API can perform functions to interact or exchange data with Organization.
Add organization
Add a new organization.
Name
{ "id": "apiTestOrg", "name": "API Test Org", "description": "This is an organization created by API." }
Assign user to organization
Assign a Joget user to an organization.
{ "userId": "david", "startDate": null, "endDate": null, "employeeCode": null, "gradeId": "G-002", "departmentId": "D-007", "organizationId": "ORG-001" }
Delete organization
Delete an organization via organization ID.
{ "date": "Wed Aug 28 15:43:58 SGT 2019", "code": "200", "message": "Successful operation" }
Find organization
Gets all organizations by default.
Able to filter or sort the returned results via parameters.
Organization data column to sort.
Must be used in conjunction with "sortDescending" parameter.
Sort the specified "sort" parameter value in ascending or descending order.
Expects a boolean value.
Must be used in conjunction with "sort" parameter.
[ { "id": "ORG-001", "name": "Joget.Org", "description": "" } ]
Get organization by ID
Get details of a organization via organization ID.
Unassign user from organization
Unassign a Joget user from an organization.
{ "date": "Thu Dec 05 03:29:56 SGT 2019", "code": "200", "message": "Successful operation" }
Update organization
Update the details of a organization.
{ "id": "apiTestOrg", "name": "API Test Org", "description": "This organization is updated via API." }