PwsGetResourceAvailableTimeOff
Overview
This web service retrieves a resource's available time off minutes. The caller can execute the web service for a specific resource identity (PwsResourceRef) and/or time off reason identity (PwsTimeOffReasonRef). The combinations include:
- Both ResourceIdentity and TimeOffReasonIdentity specified: The available time off for the specified resource and time off reason will be returned (note: the authenticated user must have permission to view the specified resource's available time off)
- ResourceIdentity specified, TimeOffReasonIdentity not specified: The available time off for the specified resource and all time off reasons will be returned (note: the authenticated user must have permission to view the specified resource's available time off)
- ResourceIdentity not specified, TimeOffReasonIdentity specified: The available time off for all resources and the specified time off reason will be returned (note: the authenticated user must have permission to view one or more resource's available time off)
- Neither ResourceIdentity nor TimeOffReasonIdentity specified: The available time off for all resources and all time off reasons will be returned (note: the authenticated user must have permission to view one or more resource's available time off)
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
- PwsGetResourceAvailableTimeOff
- serviceRequest: PwsGetResourceAvailableTimeOffRq
- RequestId: Int32
- SessionTicket: String
- EndDate: DateTime
- ResourceIdentity: PwsResourceRef
- StartDate: DateTime
- TimeOffReasonIdentity: PwsTimeOffReasonRef
- serviceRequest: PwsGetResourceAvailableTimeOffRq
Request Elements
Element | Data Type | Required? | Description | Sample Data |
---|---|---|---|---|
Int32 | No | Click here for more information. | 1 | |
String | Yes | Click here for more information. | ASIpnfWeYNJkYt6nFvepDA== | |
EndDate | DateTime | No | The StartDate and EndDate defines the period for which to retrieve available time off data. | 2018-12-31T00:00:00.000Z |
ResourceIdentity | No | The identity of the resource. | ||
StartDate | DateTime | No | See EndDate. | 2018-01-01T00:00:00.000Z |
TimeOffReasonIdentity | No | The identity of the time off reason. |
Request Usage Example(s)
Response Format
- PwsGetResourceAvailableTimeOffResponse
- PwsGetResourceAvailableTimeOffResult: PwsGetResourceAvailableTimeOffRs
- Messages: PwsMessage[]
- ResponseId: Int32
- Status: RequestStatus
- ServerTimestampUtc: DateTime
- ResourceAvailableTimeOffSchedule: PwsResourceAvailableTimeOffElement[]
- PwsGetResourceAvailableTimeOffResult: PwsGetResourceAvailableTimeOffRs
Response Elements
Element | Data Type | Description | Sample Data |
---|---|---|---|
Messages | The web service response status and message. Click here for more information. | ||
Int32 | Click here for more information. | 1 | |
Status | Click here for more information. | Ok | |
DateTime | Click here for more information. | 2018-03-19T21:09:50.9182333Z | |
ResourceAvailableTimeOffSchedule | The resource available time off schedule |
Response Usage Example(s)
PwsGetResourceAvailableTimeOff - Common Errors and Warnings
- For all errors and warnings please refer to the Complete List of Errors and Warnings
ErrorNumber | ErrorCode | ErrorText |
---|---|---|
50045 | ViewPermissionDenied | You do not have permission to view this item. |
57545 | ResourceNotFound | The specified resource does not exist. |
57567 | SpecifiedTimeOffReasonDoesNotExist | The specified time off reason does not exist. |