The following macros are not currently supported in the header:
  • style

GET /staff/:id

Resource URL

Returns a staff object

GET /staff/:id
ANY /staff/:id?_method=get

Parameters

Table of allowed parameters.

_fieldspartial stringAllows you to specify optional fields and linked objects to include in the response.

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.

idnumberThe staff identifier. For example, 123. This can be used in subsequent staff requests as :staff_id.
usernamestringA unique name given to a staff member. This can be used in subsequent staff requests as :username.
firstnamestringThe firstname of the staff member.
surnamestringThe surname of the staff member.
titlestringThe staff members title. For example: mr, mrs, dr, etc
emailstringThe staff members email.
faxstringThe staff members fax
phonestringThe staff members phone number.
mobilestringThe staff members mobile number
positionstringThe staff members position. For example, software engineer or CEO.
timezonestringThe timezone of the current user. If blank, the user is using the system's timezone.

 

Sample Response

GET /staff/1.json?_fields=email&_limit=2
{
   "response" :
      {
         "firstname" : "AffinityLive",
         "email" : "system@affinitylive.com",
         "id" : "1",
         "surname" : "System"
      },
   "meta" : {
      "status" : "ok",
      "message" : "Everything executed as expected."
   }
}