CheckBusinessHours

Updated at:

Checks whether the current time is a working hour, considering holidays and special workdays.

Operation description

Accounts with RAM permissions can go to the Resource Access Management (RAM) console to query all RAM users managed under the Alibaba Cloud account. RAM console URL: https://ram.console.aliyun.com/users.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request parameters

Parameter

Type

Required

Description

Example

Time

integer

No

The 13-digit timestamp. If this parameter is not specified, the current time is used by default.

1789526665860

InstanceId

string

Yes

The instance ID.

ccc-test

Response elements

Element

Type

Description

Example

object

Code

string

The response code.

OK

Data

boolean

Indicates whether the current time is a working hour.

true

HttpStatusCode

integer

The HTTP status code.

200

Message

string

The response message.

None

RequestId

string

The request ID.

678F7002-CA01-4ABF-A112-585AFBDF3A3B

Examples

Success response

JSON format

{
  "Code": "OK",
  "Data": true,
  "HttpStatusCode": 200,
  "Message": "无",
  "RequestId": "678F7002-CA01-4ABF-A112-585AFBDF3A3B"
}

Error codes

HTTP status code

Error code

Error message

Description

400 Parameter.Blank The parameter %s must not be null.
400 Parameter.Empty The parameter %s must not be null or empty.
400 Parameter.Null The parameter %s must not be null.
404 NotExists.InstanceId The specified instance %s does not exist. The specified call center instance does not exist.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.