Create an Operation Rule
This operation creates an operation rule.
- application/json
Request Body
operationWindow object required
endDate integerEpoch Date value at 12:00 AM of the particular end Date
name stringstartDate integerEpoch Date value at 12:00 AM of the particular start Date
operations integer[]dayTime object[] required
Add the time interval of the days in dayOfWeek that will be in blackout period
startTime integerTime value
endTime integerdayOfWeek string[] requiredPossible values: [
MONDAY
,TUESDAY
,WEDNESDAY
,THURSDAY
,FRIDAY
,SATURDAY
,SUNDAY
]Select the Day of the week for the rule
weekOfTheMonth string[] requiredPossible values: [
EVERY
,FIRST
,SECOND
,THIRD
,FOURTH
,LAST
]Select the week of the month for the blackout window. Select EVERY for all weeks
entity object
clientGroupId integerclientId integer
Responses
- 200
OK
- application/json
- Schema
- Example (from schema)
- Example 1
Schema
error object
errorCode integeroperationWindow object
endDate integername stringruleId integerstartDate integeroperations integer[]dayTime object[]
startTime integerendTime integerdayOfWeek integer[]
{
"error": {
"errorCode": 0
},
"operationWindow": {
"endDate": 0,
"name": "string",
"ruleId": 0,
"startDate": 0,
"operations": [
0
],
"dayTime": [
{
"startTime": 0,
"endTime": 0,
"dayOfWeek": [
0
]
}
]
}
}
{
"error": {
"errorCode": 0
},
"operationWindow": {
"endDate": 0,
"name": "Test_1",
"ruleId": 1,
"startDate": 0,
"operations": [
1,
2
],
"dayTime": [
{
"startTime": 46800,
"endTime": 50400,
"dayOfWeek": [
1,
2
]
}
]
}
}
Loading...