listScheduledOrdersByProfile
get
/ccstore/v1/scheduledOrders/current/scheduledOrders
List Scheduled Orders By Profile. It will return the list of all the scheduled orders for the current profile. Optionally takes the X-CCOrganization header to specify current Organization context of logged in user.
Request
Supported Media Types
- application/json
Query Parameters
- limit
-
Type:
integer
limit of the scheduled orders list.- offset
Type:integer
Offset of the scheduled orders list.
Response
Supported Media Types
- application/json
200 Response
Following model is returned when operation succeeds.
Body
Root Schema : listScheduledOrdersByProfile_response
- items
-
Type:
array
itemsAdditional Properties Allowed:The array of the Scheduled orders by the profile id. - limit
-
Type:
integer
The limit results of the Scheduled orders in a page. - offset
-
Type:
integer
The offset results of the Scheduled orders. - total
-
Type:
integer
The total number of the Scheduled orders. - totalResults
-
Type:
integer
The total results of the Scheduled orders.
Nested Schema : items
Nested Schema : items
Type:
object
- createDate
-
Type:
string
The created date of the Scheduled order. - endDate
-
Type:
string
The end date of the Scheduled order. - Id
-
Type:
string
The Id of the Scheduled order. - lastScheduledRun
-
Type:
string
The last scheduled run of the user of the Scheduled order. - name
-
Type:
string
The name of the Scheduled order. - nextScheduledRun
-
Type:
string
The next scheduled run of the Scheduled order. - profileId
-
Type:
string
The profile Id of the user of the Scheduled order. - repositoryId
-
Type:
string
The repository Id of the user of the Scheduled order. - schedule
-
Type:
object
scheduleAdditional Properties Allowed:The schedule of the Scheduled order. - siteId
-
Type:
string
The site Id of the user of the Scheduled order. - startDate
-
Type:
string
The start date of the Scheduled order. - state
-
Type:
string
The status of the Scheduled order. - templateOrder
-
Type:
object
templateOrderAdditional Properties Allowed:The template order of the Scheduled order. - templateOrderId
-
Type:
string
The template order id Id of the user of the Scheduled order. - type
-
Type:
string
The type of the Scheduled order. - version
-
Type:
integer
The version of the Scheduled order.
Nested Schema : schedule
Type:
object
The schedule of the Scheduled order.
- daysOfWeek
-
Type:
array
daysOfWeekAdditional Properties Allowed:The days of week of the Scheduled order. - interval
-
Type:
integer
The interval in term of number of days of the Scheduled order. - monthsInYear
-
Type:
array
monthsInYearAdditional Properties Allowed:The months in year of the Scheduled order. - occurenceInDay
-
Type:
integer
The occurence in day on the Scheduled order. - selectedDates
-
Type:
array
selectedDatesAdditional Properties Allowed:The selected dates in a month in year for the Scheduled order. - weeksInMonth
-
Type:
array
weeksInMonthAdditional Properties Allowed:The weeks in month of the Scheduled order.
Nested Schema : templateOrder
Type:
object
The template order of the Scheduled order.
- state
-
Type:
string
The state of the template order.
Nested Schema : daysOfWeek
Nested Schema : monthsInYear
Nested Schema : selectedDates
Nested Schema : weeksInMonth
Example application/json
{
"total":2,
"totalResults":2,
"offset":20,
"limit":10,
"items":[
{
"templateOrderId":"o10001",
"endDate":"10/01/2015",
"templateOrder":{
"state":"TEMPLATE"
},
"profileId":"user1",
"name":"testScheduleOrder",
"nextScheduledRun":"10/02/2015",
"Id":"sch001",
"state":"inactive",
"startDate":"10/01/2015"
},
{
"templateOrderId":"o10001",
"endDate":"10/01/2018",
"templateOrder":{
"state":"PENDING_APPROVAL_TEMPLATE"
},
"profileId":"user1",
"name":"testScheduleOrder",
"nextScheduledRun":"10/02/2017",
"Id":"sch002",
"state":"active",
"startDate":"10/01/2015"
},
{
"templateOrderId":"o10002",
"endDate":"10/01/2017",
"templateOrder":{
"state":"PENDING_PAYMENT_TEMPLATE"
},
"profileId":"user1",
"name":"testScheduleOrder",
"nextScheduledRun":"01/02/2017",
"Id":"sch003",
"state":"active",
"startDate":"10/01/2015"
}
]
}
Default Response
The error response
Body
Root Schema : errorModel
Type:
object
- devMessage
-
Type:
string
An optional non-localized message containing technical information for developers - errorCode
-
Type:
string
The numerical code identifying the error - errors
-
Type:
array
errorsAdditional Properties Allowed:An optional list of errors if multiple errors were encountered - message
-
Type:
string
The localized message describing the error - moreInfo
-
Type:
string
An optional non-localized message with more information - o:errorPath
-
Type:
string
An optional machine readable description of where the error occurred - status
-
Type:
string
The HTTP status code - type
-
Type:
string
The URI to the HTTP state code definition
Nested Schema : errors
Nested Schema : items
Type:
object
- devMessage
-
Type:
string
An optional non-localized message containing technical information for developers - errorCode
-
Type:
string
The numerical code identifying the error - message
-
Type:
string
The localized message describing the error - moreInfo
-
Type:
string
An optional non-localized message with more information - o:errorPath
-
Type:
string
An optional machine readable description of where the error occurred - status
-
Type:
string
The HTTP status code
Examples
Sample Response Payload returned by endpoint:
{ "total": 2, "totalResults": 2, "offset": 20, "limit": 10, "items": [ { "templateOrderId": "o10001", "endDate": "10/01/2015", "templateOrder": {"state": "TEMPLATE"}, "profileId": "user1", "name": "testScheduleOrder", "nextScheduledRun": "10/02/2015", "Id": "sch001", "state": "inactive", "startDate": "10/01/2015" }, { "templateOrderId": "o10001", "endDate": "10/01/2018", "templateOrder": {"state": "PENDING_APPROVAL_TEMPLATE"}, "profileId": "user1", "name": "testScheduleOrder", "nextScheduledRun": "10/02/2017", "Id": "sch002", "state": "active", "startDate": "10/01/2015" }, { "templateOrderId": "o10002", "endDate": "10/01/2017", "templateOrder": {"state": "PENDING_PAYMENT_TEMPLATE"}, "profileId": "user1", "name": "testScheduleOrder", "nextScheduledRun": "01/02/2017", "Id": "sch003", "state": "active", "startDate": "10/01/2015" } ] }