Update Operation Rules
Select
SaaS
Customer Managed
This operation updates an operation rule. More Details
- application/json
Request Body
operationWindow object
entity object
Responses
- 200
OK
- application/json
- Schema
- Example (from schema)
- Example 1
Schema
error object
operationWindow object
{
"error": {
"errorCode": 0
},
"operationWindow": {
"ruleEnabled": true,
"endDate": 0,
"name": "string",
"ruleId": 0,
"startDate": 0,
"operations": [
0
],
"dayTime": [
{
"startTime": 0,
"endTime": 0,
"dayOfWeek": [
0
]
}
]
}
}
{
"error": {
"errorCode": 0
},
"operationWindow": {
"ruleEnabled": true,
"endDate": 1520658000,
"name": "change_operationRule123",
"ruleId": 10,
"startDate": 1520571600,
"operations": [
1,
2
],
"dayTime": [
{
"startTime": 32400,
"endTime": 36000,
"dayOfWeek": [
1,
2,
3
]
}
]
}
}
PUT /operationwindow
Authorization
type: apiKeyname: Authtokenin: header
Request
Request
curl -L -X PUT 'https://CommandCenterHostName/commandcenter/api/OperationWindow' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"operationWindow": {
"name": "string",
"ruleId": 0,
"operations": [
"OPERATION_ALL"
],
"dayTime": [
{
"dayOfWeek": [
"MONDAY"
],
"startTime": 0,
"endTime": 0,
"weekOfTheMonth": [
"EVERY"
]
}
],
"ruleEnabled": true,
"doNotSubmitJob": true,
"company": {
"providerId": 0,
"providerDomainName": "string"
}
},
"entity": {
"commCellId": 0,
"clientGroupId": 0,
"clientId": 0
}
}'
curl -L -X PUT 'https://CommandCenterHostName/commandcenter/api/OperationWindow' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"operationWindow": {
"name": "string",
"ruleId": 0,
"operations": [
"OPERATION_ALL"
],
"dayTime": [
{
"dayOfWeek": [
"MONDAY"
],
"startTime": 0,
"endTime": 0,
"weekOfTheMonth": [
"EVERY"
]
}
],
"ruleEnabled": true,
"doNotSubmitJob": true,
"company": {
"providerId": 0,
"providerDomainName": "string"
}
},
"entity": {
"commCellId": 0,
"clientGroupId": 0,
"clientId": 0
}
}'
curl -L -X PUT 'https://CommandCenterHostName/commandcenter/api/OperationWindow' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"operationWindow": {
"name": "string",
"ruleId": 0,
"operations": [
"OPERATION_ALL"
],
"dayTime": [
{
"dayOfWeek": [
"MONDAY"
],
"startTime": 0,
"endTime": 0,
"weekOfTheMonth": [
"EVERY"
]
}
],
"ruleEnabled": true,
"doNotSubmitJob": true,
"company": {
"providerId": 0,
"providerDomainName": "string"
}
},
"entity": {
"commCellId": 0,
"clientGroupId": 0,
"clientId": 0
}
}'
curl -L -X PUT 'https://CommandCenterHostName/commandcenter/api/OperationWindow' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"operationWindow": {
"name": "string",
"ruleId": 0,
"operations": [
"OPERATION_ALL"
],
"dayTime": [
{
"dayOfWeek": [
"MONDAY"
],
"startTime": 0,
"endTime": 0,
"weekOfTheMonth": [
"EVERY"
]
}
],
"ruleEnabled": true,
"doNotSubmitJob": true,
"company": {
"providerId": 0,
"providerDomainName": "string"
}
},
"entity": {
"commCellId": 0,
"clientGroupId": 0,
"clientId": 0
}
}'
curl -L -X PUT 'https://CommandCenterHostName/commandcenter/api/OperationWindow' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"operationWindow": {
"name": "string",
"ruleId": 0,
"operations": [
"OPERATION_ALL"
],
"dayTime": [
{
"dayOfWeek": [
"MONDAY"
],
"startTime": 0,
"endTime": 0,
"weekOfTheMonth": [
"EVERY"
]
}
],
"ruleEnabled": true,
"doNotSubmitJob": true,
"company": {
"providerId": 0,
"providerDomainName": "string"
}
},
"entity": {
"commCellId": 0,
"clientGroupId": 0,
"clientId": 0
}
}'
curl -L -X PUT 'https://CommandCenterHostName/commandcenter/api/OperationWindow' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"operationWindow": {
"name": "string",
"ruleId": 0,
"operations": [
"OPERATION_ALL"
],
"dayTime": [
{
"dayOfWeek": [
"MONDAY"
],
"startTime": 0,
"endTime": 0,
"weekOfTheMonth": [
"EVERY"
]
}
],
"ruleEnabled": true,
"doNotSubmitJob": true,
"company": {
"providerId": 0,
"providerDomainName": "string"
}
},
"entity": {
"commCellId": 0,
"clientGroupId": 0,
"clientId": 0
}
}'
curl -L -X PUT 'https://CommandCenterHostName/commandcenter/api/OperationWindow' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"operationWindow": {
"name": "string",
"ruleId": 0,
"operations": [
"OPERATION_ALL"
],
"dayTime": [
{
"dayOfWeek": [
"MONDAY"
],
"startTime": 0,
"endTime": 0,
"weekOfTheMonth": [
"EVERY"
]
}
],
"ruleEnabled": true,
"doNotSubmitJob": true,
"company": {
"providerId": 0,
"providerDomainName": "string"
}
},
"entity": {
"commCellId": 0,
"clientGroupId": 0,
"clientId": 0
}
}'