PwsGetDepartmentList
Overview
This web service retrieves a list of department summary records (PwsDepartmentSummary), based on specified search criteria. You can specify which department or departments to retrieve either by specifying a set of search criteria, or by specifying a specific department (PwsDepartmentRef).
Rate Limiting
In order to protect our servers from inadvertent service overuse or intentional attack, and to fairly distribute services to all our customers, we have implemented a rate limiting algorithm. When fully deployed, this new algorithm will cause services to either succeed with new warnings or fail with new errors when services are consumed at too high a rate. Programs that consume Projector services should be enhanced to handle rate limiting errors so that they can continue functioning properly. For more information please visit: Projector Rate Limiting Behavior.
Request Format
- PwsGetDepartmentList
- serviceRequest: PwsGetDepartmentListRq
- RequestId: Int32
- SessionTicket: String
- DepartmentIdentity: PwsDepartmentRef
- MaxRowsToReturn: Int32
- QueryString: String (255)
- serviceRequest: PwsGetDepartmentListRq
Request Elements
Element | Data Type | Required? | Default | Description | Sample Data |
---|---|---|---|---|---|
RequestId | Int32 | No | Click here for more information. | ||
SessionTicket | String | Yes | Click here for more information. | ARNkL4C1bp7KLtsSXQW6/g== | |
DepartmentIdentity | No | For this service, the caller may specify a department identity to retrieve a specific department summary. If a department identity is not specified all departments fitting the other specified criteria will be returned. | |||
MaxRowsToReturn | Int32 | No | The maximum number of departments to be returned. This value is disregarded if a department is specified in DepartmentIdentity. | 5 | |
QueryString | String (255) | No | A search string to narrow down the results. A department will be included in the results if the search string matches the department name. This value is disregarded if a department is specified in DepartmentIdentity. | Tech |
Request Usage Example(s)
Response Format
- PwsGetDepartmentListResponse
- PwsGetDepartmentListResult: PwsGetDepartmentListRs
- Messages: PwsMessage[]
- ResponseId: Int32
- Status: RequestStatus
- ServerTimestampUtc: DateTime
- Departments: PwsDepartmentSummary[]
- PwsGetDepartmentListResult: PwsGetDepartmentListRs
Response Elements
Element | Data Type | Description | Sample Data |
---|---|---|---|
Messages | The web service response status and message. Click herefor more information. | ||
ResponseId | Int32 | Click here for more information. | 0 |
Status | RequestStatus | Click here for more information | Ok |
ServerTimestampUtc | DateTime | Click here for more information. | 2018-03-08T16:59:32.3174314Z |
Departments | The department summary record(s) retrieved by the service. Click here for more information. |
Response Usage Example(s)
PwsGetDepartmentList - Common Errors and Warnings
- For all errors and warnings please refer to the Complete List of Errors and Warnings
ErrorNumber | ErrorCode | ErrorText |
---|---|---|
57575 | DepartmentNotFound | The specified department does not exist. |