Search Staff
POST/staff/search
Search for Staff members using a variety of filters.
Request
- application/json
Body
Optional Filtering
staffType objectnullable
staffRoom objectnullable
qualificationType objectnullable
trainingProvider objectnullable
qualificationLevel objectnullable
qualificationMajor objectnullable
qualificationMinor objectnullable
interactionType objectnullable
interactionCampus objectnullable
activityType objectnullable
activityStatus objectnullable
keyCode objectnullable
identityCodeType objectnullable
Responses
- 200
- 400
- 401
- 403
- 404
- 422
- 500
- application/json
- Schema
- Example (from schema)
- Successful
Schema
- Array [
- ]
Status Code
meta objectrequired
Meta options for search responses
Possible values: >= 1
Default value: 1
page number starts with 1
Possible values: >= 1
and <= 100
Default value: 10
No of items per page
number of records in the result set
Possible values: >= 1
Default value: 1
page number starts with 1
Possible values: >= 1
and <= 100
Default value: 100
No of records to limit per page
Possible values: <= 100
number of records in the current page
number of pages in the result set
Default value: surname,givenName,schoolId
sort by field(s)
Default value: ASC
sort direction
range object
Possible values: >= 1
Default value: 1
start range
Default value: 100
end range
data object[]
{
"code": "OK",
"meta": {
"page": 1,
"limit": 10,
"traceContext": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"totalRecordCount": 1,
"pageNum": 1,
"pageLimit": 100,
"pageRecordCount": 1,
"pageNumTotal": 1,
"pageSortBy": "surname,givenName,schoolId",
"pageSortDir": "ASC",
"range": {
"start": 1,
"end": 1
}
},
"data": [
{
"communityId": "string",
"givenName": "string",
"preferredName": "string",
"surname": "string",
"nameSuffix": "string",
"schoolId": "string",
"recordType": "string",
"displayName": "string",
"displayNameList": "string",
"initials": "string",
"email": "string",
"genderId": "string",
"gender": "string",
"genderCode": "string",
"title": "string",
"staffId": "string",
"stafftype": "string",
"staffTypeCode": "string",
"employmentStatus": "string"
}
]
}
{
"code": "OK",
"data": [
{
"communityId": "7cedbe5f-187e-4b7a-8ecd-c8cf01fbaa57",
"givenName": "Joe",
"preferredName": "Joe",
"otherGivenName": null,
"surname": "Bloggs",
"nameSuffix": null,
"schoolId": "87",
"recordType": "Person",
"companyName": null,
"sort_name": "Bloggs Joe",
"modified": null,
"displayName": "Mr Joe Bloggs",
"displayNameList": "Bloggs, Mr Joe",
"spouseCommunityId": null,
"initials": "JB",
"email": "joe@example.com",
"mobile": null,
"phone": null,
"studentType": null,
"studentTypeCode": null,
"genderId": "e5ce905a-7525-4dd1-899d-a629ea840a35",
"gender": "Male",
"genderCode": "M",
"genderSortOrder": 1,
"genderSystemMeaning": "Male",
"titleObj": {
"id": "09b163d3-7821-45be-9611-a7f430b4d9a4",
"description": "Mr"
},
"title": "Mr",
"addressId": "6d82554b-06c4-43a5-adfd-1487c00b6c68",
"internalNameFormat": "Bloggs, Joe",
"internalName": "Bloggs, Joe",
"externalName": "Joe Bloggs",
"mailNameFormat": "Mr J Bloggs",
"salutationFormat": "Mr Bloggs",
"addressFull": "",
"addressComma": "",
"postalAddressFull": "",
"postalAddressComma": "",
"homeAddress1": null,
"homeAddress2": null,
"homeAddress3": null,
"homeSuburb": null,
"homePostCode": null,
"homeCountry": "Australia",
"homeState": null,
"postalAddress1": null,
"postalAddress2": null,
"postalAddress3": null,
"postalSuburb": null,
"postalPostCode": null,
"postalCountry": "Australia",
"postalState": null,
"defaultSMS": null,
"preferredPhone": null,
"birthDate": null,
"constituenciesCsv": "@STF",
"entityTypes": [
"community",
"staff"
],
"photoId": null,
"totalRecordCount": 1,
"schoolStaffCode": "JB",
"staffHouseId": null,
"staffId": "8898cc2f-669b-4fc5-bad2-ed7880fdbcf2",
"staffExtension": null,
"staffCampusWithCode": null,
"staffType": "Teacher",
"staffTypeCode": "T",
"staffRoom": null,
"staffRoomCode": null,
"isTeacher": true,
"isHeadOfCampus": false,
"isYearLevelCoordinator": false,
"isHeadOfHouse": false,
"isFormTeacher": false,
"isRollGroupTeacher": false,
"isTutorGroupTeacher": false,
"isHomeRoomTeacher": false,
"employmentStatus": "Current",
"campuses": [],
"staffDepartment": [],
"staffCampusesAll": "",
"staffCampusCode": null,
"emailAddresses": [
{
"id": "ae0be82f-4b9a-43f3-9980-ee2d7668a39a",
"emailType": {
"id": "cbe66754-7137-4514-bbd6-35fc7284dbc9",
"description": "Occupation"
},
"value": "joe@example.com",
"default": true
}
]
}
],
"meta": {
"traceContext": "3b907939-1cec-4572-b25f-ea076e34115f",
"totalRecordCount": 1,
"pageNum": 1,
"pageLimit": 100,
"pageRecordCount": 1,
"pageNumTotal": 1,
"pageSortBy": "surname,givenName,schoolId",
"pageSortDir": "ASC",
"range": {
"start": 1,
"end": 1
}
}
}
Bad Request
- application/json
- Schema
- Example (from schema)
- Example
Schema
- Array [
- ]
errors object[]required
{
"errors": [
{
"code": "string",
"message": "string"
}
]
}
{
"errors": [
{
"code": "PA1100",
"message": "Bad Request"
}
]
}
Unauthorized
- application/json
- Schema
- Example (from schema)
- Example
Schema
- Array [
- ]
errors object[]required
{
"errors": [
{
"code": "string",
"message": "string"
}
]
}
{
"errors": [
{
"code": "PA1101",
"message": "Unauthorized"
}
]
}
Forbidden
- application/json
- Schema
- Example (from schema)
- Example
Schema
- Array [
- ]
errors object[]required
{
"errors": [
{
"code": "string",
"message": "string"
}
]
}
{
"errors": [
{
"code": "PA1102",
"message": "Forbidden"
}
]
}
Resource not found
- application/json
- Schema
- Example (from schema)
- Example
Schema
- Array [
- ]
errors object[]required
{
"errors": [
{
"code": "string",
"message": "string"
}
]
}
{
"errors": [
{
"code": "PA1103",
"message": "Not Found"
}
]
}
Unprocessable entity
- application/json
- Schema
- Example (from schema)
- Example
Schema
- Array [
- ]
errors object[]required
{
"errors": [
{
"code": "string",
"message": "string"
}
]
}
{
"errors": [
{
"code": "PA1108",
"message": "Unprocessable Entity"
}
]
}
Internal Server Error
- application/json
- Schema
- Example (from schema)
- Example
Schema
- Array [
- ]
errors object[]required
{
"errors": [
{
"code": "string",
"message": "string"
}
]
}
{
"errors": [
{
"code": "PA1109",
"message": "Internal Server Error"
}
]
}