PwsGetResourceWorkingSchedule
Overview
This web service retrieves a resource's working schedule (their planned working hours and company holidays) for a specified date range.
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
- PwsGetResourceWorkingSchedule
- serviceRequest: PwsGetResourceWorkingScheduleRq
- RequestId: Int32
- SessionTicket: String
- EndDate: DateTime
- ResourceIdentity: PwsResourceRef
- StartDate: DateTime
- serviceRequest: PwsGetResourceWorkingScheduleRq
Request Elements
Element | Data Type | Required? | Description | Sample Data |
---|---|---|---|---|
Int32 | No | Click here for more information. | 1 | |
String | Yes | Click here for more information. | AcsjFlnb6JTLhBDDgVd7bg== | |
EndDate | DateTime | Yes | The EndDate (in UTC format) and the StartDate (in UTC format) defines the period of the resource's schedule that should be retrieved | 2018-03-31T00:00:00.000Z |
ResourceIdentity | No | The resource associated with the schedule when other than the authenticated user. If a resource identity is not specified the schedule of the authenticated user will be submitted. | ||
StartDate | DateTime | Yes | See EndDate | 2018-03-28T00:00:00.000Z |
Request Usage Example(s)
Response Format
- PwsGetResourceWorkingScheduleResponse
- PwsGetResourceWorkingScheduleResult: PwsGetResourceWorkingScheduleRs
- Messages: PwsMessage[]
- ResponseId: Int32
- Status: RequestStatus
- ServerTimestampUtc: DateTime
- WorkingSchedule: PwsWorkingScheduleDay[]
- PwsGetResourceWorkingScheduleResult: PwsGetResourceWorkingScheduleRs
Response Elements
Element | Data Type | Description | Sample Data |
---|---|---|---|
Messages | The web service response status and message. Click here for more information. | ||
ResponseId | Int32 | Click here for more information | 1 |
Status | Click here for more information | Ok | |
DateTime | Click here for more information | 2018-03-21T14:26:20.2162604Z | |
WorkingSchedule | The complete details of a resource's working schedule. Each day within the specified range is represented by a single record. |
Response Usage Example(s)
PwsGetResourceWorkingSchedule - Common Errors and Warnings
- For all errors and warnings please refer to the Complete List of Errors and Warnings
ErrorNumber | ErrorCode | ErrorText |
---|---|---|
10116 | InvalidDateValueSpecified | The date specified in the field "StartDate" in the class "PwsGetResourceWorkingScheduleRq" is invalid or out of range. The time component of the specified date must be midnight UTC. |
50223 | NoPermissionToActOnBehalfOfResource | The specified user does not have permission to act on behalf of this resource. |
57545 | ResourceNotFound | The specified resource does not exist. |