Post My Work Search
Returns the work assigned to the caller between two days. Tasks and work orders are returned when their start (the earlier of planned and actual start) is on or before to, and they are incomplete or were completed on or after from; days are compared in the work order’s location’s time zone, and items with no planned or actual start are left out. A task counts as completed once its form is completed, or, without an instruction, once it is marked complete, even while open defects keep the task itself open. Cancelled work orders, backlog work orders the caller can’t manage, and tasks on a work order that is on hold are left out. Actions are returned when they are due on or before to in the organisation’s time zone, and are open or were completed on or after from. Open defects where the caller is an assignee are returned whatever their date.
Authentication
OAuth 2.0 Client Credentials Flow. To obtain an access token:
-
Request API credentials from HINDSITE support to receive your
client_idandclient_secret -
Make a POST request to obtain an access token:
POST https://app.hindsiteind.com/oauth/token
Content-Type: application/x-www-form-urlencoded
grant_type=client_credentials&client_id=YOUR_CLIENT_ID&client_secret=YOUR_CLIENT_SECRET
- The response will contain your access token:
{
"access_token": "your_access_token_here",
"token_type": "Bearer",
"expires_in": 7200,
"created_at": 1234567890
}
- Include the token in subsequent API requests:
Authorization: Bearer your_access_token_here
Request
First day, YYYY-MM-DD. Completed work is returned when it was completed on or after this day.
Last day, YYYY-MM-DD. Work is returned when it starts, or for actions is due, on or before this day, so overdue work is included.
Response
The caller’s work between from and to
Tasks assigned to the caller. Each carries asset, location, work_order, custom_fields and custom_field_definitions, and form once the task has been started.
Work orders assigned to the caller. Each carries asset and location.
Actions assigned to the caller. Each carries user.
Open defects where the caller is an assignee. Each carries location.
