Business direction
Create business direction#
Creates a new Business direction object.
Request body:
| Attribute | Type | Description | Nullable |
|---|---|---|---|
| externalId | String | Business direction external id | true |
| name | String | Business direction name | false |
| createTask | Boolean | Whether users of this business direction can create tasks | true |
| geoCheckStart | String | Geolocation check when starting a task/checklist response: accept, ignore | true |
| geoCheckFinish | String | Geolocation check when finishing a task/checklist response: accept, ignore | true |
| active | Boolean | Whether the business direction is active. Default true | true |
Examples
200 OK
Update business direction#
Updates an existing business direction by id. Returns the updated Business direction object.
Request body:
| Attribute | Type | Description | Nullable |
|---|---|---|---|
| externalId | String | Business direction external id | true |
| name | String | Business direction name | false |
| createTask | Boolean | Whether users of this business direction can create tasks | true |
| geoCheckStart | String | Geolocation check when starting a task/checklist response: accept, ignore | true |
| geoCheckFinish | String | Geolocation check when finishing a task/checklist response: accept, ignore | true |
| active | Boolean | Whether the business direction is active | true |
Examples
200 OK
List business directions#
Returns a list of Business direction objects.
Request parameters:
| Request Parameter | Type | Description | Required |
|---|---|---|---|
| ids | List of integers | Find business directions by ids | false |
| nameLike | String | Find business direction by name | false |
| onlyActive | Boolean | Get only active business directions. Default true | false |
Examples
200 OK
Get business direction dependency#
Returns the Business direction dependency object: which other business directions' tasks/checklists this business direction can see and act on.
Examples
200 OK
Add business direction dependency#
Adds dependent business directions, in addition to the ones already set.
Request body:
| Attribute | Type | Description | Nullable |
|---|---|---|---|
| forTasks | List of integers | ids of the business directions for which tasks can additionally be seen/assigned | true |
| forChecklists | List of integers | ids of business directions for which inspections can additionally be planned | true |
Examples
200 OK
Replace business direction dependency#
Replaces the business direction's dependent directions with the given ones โ anything not in the list is removed.
Request body:
| Attribute | Type | Description | Nullable |
|---|---|---|---|
| forTasks | List of integers | ids of the business directions for which tasks can be seen/assigned | false |
| forChecklists | List of integers | ids of business directions for which inspections can be planned | false |
Examples
200 OK
Remove business direction dependency#
Removes the given dependent business directions; anything not listed is left as is.
Request body:
| Attribute | Type | Description | Nullable |
|---|---|---|---|
| forTasks | List of integers | ids of the business directions to stop sharing tasks with | true |
| forChecklists | List of integers | ids of business directions to stop sharing checklist planning with | true |
Examples
200 OK
Remove all business direction dependencies#
Removes all dependent business directions (for both tasks and checklists).
Examples
200 OK