...
Resource URL
Returns a staff object
Code Block | ||
---|---|---|
| ||
GET /staff/:id ANY /staff/:id?_method=get |
...
id | number | The staff identifier. For example, 123. This can be used in subsequent staff requests as :staff_id. |
---|---|---|
username | string | A unique name given to a staff member. This can be used in subsequent staff requests as :username. |
firstname | string | The firstname of the staff member. |
surname | string | The surname of the staff member. |
title | string | The staff members title. For example: mr, mrs, dr, etc |
string | The staff members email. | |
fax | string | The staff members fax |
phone | string | The staff members phone number. |
mobile | string | The staff members mobile number |
position | string | The staff members position. For example, software engineer or CEO. |
timezone | string | The timezone of the current user. If blank, the user is using the system's timezone. |
Sample Response
Code Block | ||
---|---|---|
| ||
GET /staff/1.json?_fields=email&_limit=2 |
Code Block | ||
---|---|---|
| ||
{
"response" :
{
"firstname" : "AffinityLive",
"email" : "system@affinitylive.com",
"id" : "1",
"surname" : "System"
},
{
"firstname" : "Michael",
"email" : "michael.david@internetrix.com.au",
"id" : "2",
"surname" : "David"
}
,
"meta" : {
"status" : "ok",
"message" : "Everything executed as expected."
}
} |