Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Resource URL

Returns an array of jobs displaying the latest modified first.

Code Block
languagebash
GET /jobs
ANY /jobs?_method=get

Parameters

Table of allowed parameters.

_pageunsigned intThe page of the list to display. For example, 5 will display the fifth page. Each page contains 10 resources.
_limitunsigned intThe maximum number of resources to return. Default is 10 and maximum is 50.
_offsetunsigned intThe position in the list of resources to return from. For example, if you had 20 resources and requested an offset of 10. Resources 10 to 19 would be returned. Offset cannot be used in conjunction with _page.
_fieldspartial stringAllows you to specify optional fields and linked objects to include in the response.
_filerspartial stringYou can filter jobs using this parameter.

Handling the response

Below is a table of available response fields and objects that are returned within the response object of the returned object. The optional fields and objects can be requested in the _fields parameter; see included examples. Underlined values are default.

idunsigned intUnique id assigned to the job
titlestring 
againststringResource endpoint for the object the job is against. For example, /companies/12
date_createdunix timestamp 
date_modifiedunix timestamp 
date_startedunix timestamp 
date_dueunix timestamp 
date_completedunix_timestamp 
standingstringe.g, pending, active, inactive or complete.
pausedunsigned int 
rate_typestringe.g, hours, budget or fixed.
rate_chargeddecimal 
typeunsigned int or objectContains the job's type id or if using parenthesis, the job's rate object.
rateunsigned int or objectJob's rate id or object.
budgetunsigned int or objectJob's budget id or object.
statusunsigned int or objectJob's status id or object.
managerunsigned int or objectJob's manager (staff) id or object.
modified_byunsigned int or objectThe staff id or object of the last user to modify the job.

 

Fields that can be object indicate the field can be requested as a resource. For example.

Code Block
languagebash
GET /jobs.json?_fields=manager

would return the manager's staff id. Where as,

Code Block
languagebash
GET /jobs.json?_fields=manager()

would return the manager's staff object, including any optional fields or objects within the parenthesis.