CheckBusinessHours
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
Test
RAM authorization
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.