ConnectScheduling / Client / reject_time_off
reject_time_off¶
- ConnectScheduling.Client.reject_time_off(**kwargs)¶
Rejects a time off request.
Rejecting a
REJECTEDrequest succeeds without a change. ReturnsConflictExceptionif the request isPENDINGorCANCELLED.PENDINGmeans Connect Customer is still processing the request asynchronously. Wait untilGetTimeOffreturns a status other thanPENDING, and then retry.See also: AWS API Documentation
Request Syntax
response = client.reject_time_off( InstanceId='string', UserId='string', TimeOffId='string', Description='string' )
- Parameters:
InstanceId (string) –
[REQUIRED]
The identifier of the Connect Customer instance. This can be the ID or the ARN of the instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
UserId (string) –
[REQUIRED]
The identifier of the user who the time off request belongs to. This can be the ID or the ARN of the user.
TimeOffId (string) –
[REQUIRED]
The unique identifier of the time off request to reject. If the time off request doesn’t belong to
UserId, the operation returnsResourceNotFoundException.Description (string) – A description recorded with the rejection, such as the reason.
GetTimeOffdoesn’t return it.
- Return type:
dict
- Returns:
Response Syntax
{}Response Structure
(dict) –
The response for
RejectTimeOff.
Exceptions