Overview
Insert or update PTO balances on a per time off reason.
This web service inserts or updates available time off records given a resource and time off reason (PwsResourceAvailableTimeoffDetail). The service returns the results of the insert or update (PwsSaveResourceAvailableTimeOffResult).
...
Element | Data Type | Required? | Default | Description | Sample Data |
---|---|---|---|---|---|
RequestId | Int32 | No | Click here for more information. | 1 | |
SessionTicket | String | Yes | Click here for more information. | AV7pfLYHuvIjk5rCwGgoiQ== | |
AbortOnFailureFlag | Boolean | No | false | If set to 'true', the request will be aborted once the service encounters a record it cannot process. If set to 'false', it will process all the records that can be process processed and , fails fail the ones it cannot. | false |
AvailableTimeOffDetail | false | The detailed resource available time off information to be inserted or updated |
...
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. | |
Status | Click here for more information. | ||
ServerTimestampUtc | DateTime | Click here for more information. | |
Results | The results from the request when the service failsIf AbortOnFailureFlag is 'true', this will contain details for records that failed, including the identity of the failed record and the reason for failure. |
Response Usage Example(s)
...
- For all errors and warnings please refer to the Complete List of Errors and Warnings
ErrorNumber | ErrorCode | ErrorText |
---|---|---|
31001 | TimeOffBeginDateRequired | Please specify a begin date. |
31002 | TimeOffEndDateRequired | Please specify an end date. |
31003 | TimeOffEndDatePriorToBeginDate | The specified end date may not be prior to the the specified begin date. |
31004 | TimeOffReasonRequired | Please specify a time off reason. |
31005 | InvalidValueForTimeOffBeginDate | The specified begin date must be expressed as midnight UTC on the desired date. |
31006 | InvalidValueForTimeOffEndDate | The specified end date must be expressed as midnight UTC on the desired date. |
57565 | InvalidTimeOffReason | A specified time off reason identity was incomplete. Each tmie off reason identity must specify either a time off reason id, time off reason uid or time off reason name. |
57567 | SpecifiedTimeOffReasonDoesNotExist | The specified time off reason does not exist. |
64357 | TimeOffReasonInactiveOverRange | Time off reason is inactive for at least part of the specified range. |