Skip to navigation

Post My Work Search

View as Markdown

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

AuthorizationBearer

OAuth 2.0 Client Credentials Flow. To obtain an access token:

  1. Request API credentials from HINDSITE support to receive your client_id and client_secret

  2. 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
  1. The response will contain your access token:
{
  "access_token": "your_access_token_here",
  "token_type": "Bearer",
  "expires_in": 7200,
  "created_at": 1234567890
}
  1. Include the token in subsequent API requests:
Authorization: Bearer your_access_token_here

Request

This endpoint expects an object.
fromdateRequired

First day, YYYY-MM-DD. Completed work is returned when it was completed on or after this day.

todateRequired

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

work_order_taskslist of objectsOptional

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_orderslist of objectsOptional

Work orders assigned to the caller. Each carries asset and location.

actionslist of objectsOptional

Actions assigned to the caller. Each carries user.

defectslist of objectsOptional

Open defects where the caller is an assignee. Each carries location.

time_entrieslist of objectsOptional
The caller's time entries on the returned tasks, work orders and defects. Time on a work order the caller is only assigned to through one of its tasks is not included.

Errors

400
Bad Request Error