ConnectScheduling / Client / reject_time_off

reject_time_off

ConnectScheduling.Client.reject_time_off(**kwargs)

Rejects a time off request.

Rejecting a REJECTED request succeeds without a change. Returns ConflictException if the request is PENDING or CANCELLED. PENDING means Connect Customer is still processing the request asynchronously. Wait until GetTimeOff returns a status other than PENDING, 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 returns ResourceNotFoundException.

  • Description (string) – A description recorded with the rejection, such as the reason. GetTimeOff doesn’t return it.

Return type:

dict

Returns:

Response Syntax

{}

Response Structure

  • (dict) –

    The response for RejectTimeOff.

Exceptions