PwsDeleteResourceAvailableTimeOff
Overview
This web services deletes the available time off for a specific time off reason (PwsTimeOffReasonRef) and resource (PwsResourceRef).
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
- PwsDeleteResourceAvailableTimeOff
- serviceRequest: PwsDeleteResourceAvailableTimeOffRq
- RequestId: Int32
- SessionTicket: String
- EndDate: DateTime
- ResourceIdentity: PwsResourceRef
- StartDate: DateTime
- TimeOffReasonIdentity: PwsTimeOffReasonRef
- serviceRequest: PwsDeleteResourceAvailableTimeOffRq
Request Elements
Element | Data Type | Required? | Description | Sample Data |
---|---|---|---|---|
RequestId | Int32 | No | Click here for more information. | 1 |
SessionTicket | String | Yes | Click here for more information. | AUL1Tsqbhar4SWXC5j9T+w== |
EndDate | DateTime | No | The EndDate and the StartDate define the period in which the time off hours should be deleted. Leaving EndDate null will result in deleting all available time off hours after the specified StartDate. Leaving StartDate null will result in deleting all available time off hours up until the EndDate. Leaving both null will result deleting all available time off hours. | 2018-01-31T00:00:00.000Z |
ResourceIdentity | Yes | The resource identity | ||
StartDate | DateTime | No | See EndDate | 2018-01-01T00:00:00.000Z |
TimeOffReasonIdentity | Yes | The time off reason identity |
Request Usage Example(s)
Response Format
- PwsDeleteResourceAvailableTimeOffResponse
- PwsDeleteResourceAvailableTimeOffResult: PwsDeleteResourceAvailableTimeOffRs
- Messages: PwsMessage[]
- ResponseId: Int32
- Status: RequestStatus
- ServerTimestampUtc: DateTime
- PwsDeleteResourceAvailableTimeOffResult: PwsDeleteResourceAvailableTimeOffRs
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 | |
ServerTimestampUtc | DateTime | Click here for more information | 2018-03-01T20:47:10.0345768Z |
Response Usage Example(s)
PwsDeleteResourceAvailableTimeOffResponse - 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 "{FieldName}" in the class "{TypeName}" is invalid or out of range. The time component of the specified date must be midnight UTC. |
50024 | EntityNotFound | Resource was not found. Another user may have deleted it. |
50024 | EntityNotFound | Time Off Reason was not found. Another user may have deleted it. |