CreateHoursOfOperationOverride - Amazon Connect

CreateHoursOfOperationOverride

Creates an hours of operation override in an Amazon Connect hours of operation resource

Request Syntax

PUT /hours-of-operations/InstanceId/HoursOfOperationId/overrides HTTP/1.1 Content-type: application/json { "Config": [ { "Day": "string", "EndTime": { "Hours": number, "Minutes": number }, "StartTime": { "Hours": number, "Minutes": number } } ], "Description": "string", "EffectiveFrom": "string", "EffectiveTill": "string", "Name": "string" }

URI Request Parameters

The request uses the following URI parameters.

HoursOfOperationId

The identifier for the hours of operation

Required: Yes

InstanceId

The identifier of the Amazon Connect instance.

Length Constraints: Minimum length of 1. Maximum length of 100.

Required: Yes

Request Body

The request accepts the following data in JSON format.

Config

Configuration information for the hours of operation override: day, start time, and end time.

Type: Array of HoursOfOperationOverrideConfig objects

Array Members: Minimum number of 0 items. Maximum number of 100 items.

Required: Yes

Description

The description of the hours of operation override.

Type: String

Pattern: ^[\P{C}\r\n\t]{1,250}$

Required: No

EffectiveFrom

The date from when the hours of operation override would be effective.

Type: String

Pattern: ^\d{4}-\d{2}-\d{2}$

Required: Yes

EffectiveTill

The date until when the hours of operation override would be effective.

Type: String

Pattern: ^\d{4}-\d{2}-\d{2}$

Required: Yes

Name

The name of the hours of operation override.

Type: String

Pattern: ^[\P{C}\r\n\t]{1,127}$

Required: Yes

Response Syntax

HTTP/1.1 200 Content-type: application/json { "HoursOfOperationOverrideId": "string" }

Response Elements

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in JSON format by the service.

HoursOfOperationOverrideId

The identifier for the hours of operation override.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 36.

Errors

For information about the errors that are common to all actions, see Common Errors.

DuplicateResourceException

A resource with the specified name already exists.

HTTP Status Code: 409

InternalServiceException

Request processing failed because of an error or failure with the service.

HTTP Status Code: 500

InvalidParameterException

One or more of the specified parameters are not valid.

HTTP Status Code: 400

InvalidRequestException

The request is not valid.

HTTP Status Code: 400

LimitExceededException

The allowed limit for the resource has been exceeded.

HTTP Status Code: 429

ResourceNotFoundException

The specified resource was not found.

HTTP Status Code: 404

ThrottlingException

The throttling limit has been exceeded.

HTTP Status Code: 429

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: