updateScheduledOrder

put

/ccstore/v1/scheduledOrders/{id}

Update Scheduled Order. It will update the scheduled order information like deactivate, change the schedule information. Optionally takes the X-CCOrganization header to specify current Organization context of logged in user .

Request

Supported Media Types
  • application/json
Path Parameters
id
Type: string
Required: true
The id of the Scheduled order.
Header Parameters
X-CCOrganization
Type: string
Current organization context of the logged in user
Body Parameter
Root Schema : updateScheduledOrder_request
Nested Schema : schedule
Type: object
The schedule of the scheduled order
Nested Schema : daysInMonth
Type: array
Days in a month this scheduled order has to be placed
Nested Schema : daysOfWeek
Type: array
Days in a week this scheduled order has to be placed
Nested Schema : monthsInYear
Type: array
Months in a year this scheduled order has to be placed
Nested Schema : weeksInMonth
Type: array
Weeks in a month this scheduled order has to be placed

Response

Supported Media Types
  • application/json
200 Response
Following model is returned when operation succeeds.
Body
Root Schema : updateScheduledOrder_response
Nested Schema : executionStatusList
Type: array
The list of executions from this scheduled order.
Nested Schema : schedule
Type: object
Schedule of this scheduled order
Nested Schema : items
Type: object
Nested Schema : errorMessages
Type: array
The list of error messages for this execution.
Nested Schema : daysInMonth
Type: array
Days in a month this scheduled order has to be placed
Nested Schema : daysOfWeek
Type: array
Days in a week this scheduled order has to be placed
Nested Schema : monthsInYear
Type: array
Months in a year this scheduled order has to be placed
Nested Schema : weeksInMonth
Type: array
Weeks in a month this scheduled order has to be placed
Example application/json

{
    "schedule":{
        "weeksInMonth":[
            "1",
            "2",
            "3"
        ],
        "monthsInYear":[
            "1",
            "2"
        ],
        "daysOfWeek":[
            "1",
            "2",
            "3"
        ]
    },
    "templateOrderId":"o10001",
    "scheduleType":"calendar",
    "endDate":"10/01/2017",
    "profileId":"user1",
    "name":"testScheduleOrder",
    "nextScheduledRun":"10/02/2015",
    "Id":"sch001",
    "state":"active",
    "startDate":"10/01/2015",
    "createDate":"9/01/2015"
}
Default Response
The error response
Body
Root Schema : errorModel
Type: object
Nested Schema : errors
Type: array
An optional list of errors if multiple errors were encountered
Nested Schema : items
Type: object

Examples

Sample Request:

{
  "schedule": {
    "weeksInMonth": [
      "1",
      "2",
      "3"
    ],
    "monthsInYear": [
      "1",
      "2"
    ],
    "daysOfWeek": [
      "1",
      "2",
      "3"
    ]
  },
  "scheduleType": "calendar",
  "endDate": "10/01/2017",
  "name": "testScheduleOrder",
  "state": "active",
  "startDate": "10/01/2015"
}

Sample Response Payload returned by endpoint:

{
  "schedule": {
    "weeksInMonth": [
      "1",
      "2",
      "3"
    ],
    "monthsInYear": [
      "1",
      "2"
    ],
    "daysOfWeek": [
      "1",
      "2",
      "3"
    ]
  },
  "templateOrderId": "o10001",
  "scheduleType": "calendar",
  "endDate": "10/01/2017",
  "profileId": "user1",
  "name": "testScheduleOrder",
  "nextScheduledRun": "10/02/2015",
  "Id": "sch001",
  "state": "active",
  "startDate": "10/01/2015",
  "createDate": "9/01/2015"
}