MyRapidi
MyRapidi

Search our Wiki

REST API Get Schedules

JSON:

 

curl -H Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE1MDE2ODg3NTMsInN1YiI6MX0.oLh_7lsktvX4NP-6Dh4ptGKZe6JEfzeMIgzDjRpMyHM
-H "Content-Type: application/json"
-H "Accept: application/json"
-X GET
https://api.myrapidi.com/api/v2/service/69/schedules

The out-put for this example would be:

 

[
{
"code": "G_CUST4494", 
"description": "Group CUST4494", 
"transfercode": "", 
"groupcode": "CUST4494",
"interval": 1, 
"interval-unit": "Hour", 
"status": "Stopped", 
"errorhandling": "Skip", 
"lastdatetime": null,
"nextdatetime": "2016-12-23T18:00:00Z", 
"errorinterval": 1, 
"errorinterval-unit": "Hour",
"notifyinterval": 1,
"notifyinterval-unit": "Hour", 
"notifydatetime": null,
"starttime": "00:00:00Z",
"endtime": "00:00:00Z",
"monday": true,
"tuesday": true, 
"wednesday": true, 
"thursday": true, 
"friday": true, 
"saturday": true, 
"sunday": true, 
"tags": [
 
],
"comments": [ 

]
},
{
"code": "G_INVOICE",
"description": "Group INVOICE",
"transfercode": "",
"groupcode": "INVOICE",
"interval": 5,
"interval-unit": "Minutes",
"status": "Stopped",
"errorhandling": "Skip",
"lastdatetime": null,
"nextdatetime": "2015-09-29T16:32:00Z",
"errorinterval": 0,
"errorinterval-unit": "Minutes", 
"notifyinterval": 0, 
"notifyinterval-unit": "Minutes",
"notifydatetime": null, 
"starttime": "00:00:00Z", 
"endtime": "00:00:00Z", 
"monday": true, 
"tuesday": true, 
"wednesday": true, 
"thursday": true, 
"friday": true, 
"saturday": true, 
"sunday": true, 
"tags": [ 

 ], 
"comments": [

 ] 
}, 
{
"code": "G_TEST22", 
"description": "Group TEST22",
"transfercode": "", 
"groupcode": "TEST22",
"interval": 1,
"interval-unit": "Week",
"status": "Stopped",
"errorhandling": "Skip",
"lastdatetime": "2014-03-30T15:59:07Z",
"nextdatetime": "2016-09-29T17:27:00Z",
"errorinterval": 1,
"errorinterval-unit": "Day", 
"notifyinterval": 2,
"notifyinterval-unit": "Hours", 
"notifydatetime": "2014-03-30T17:01:00Z",
"starttime": "00:00:00Z",
"endtime": "00:00:00Z",
"monday": true, 
"tuesday": true,
"wednesday": true, 
"thursday": true,
"friday": true,
"saturday": true,
"sunday": true,
"tags": [

],
"comments": [

 ] 
},
{
"code": "G_TEST22_NAV356001",
"description": "Group TEST22 NAV356001", 
"transfercode": "", 
"groupcode": "TEST22", 
"interval": 1, 
"interval-unit": "Day", 
"status": "Stopped",
"errorhandling": "Skip",
"lastdatetime": null,
"nextdatetime": "2015-10-01T00:00:00Z",
"errorinterval": 0,
"errorinterval-unit": "Hours",
 "notifyinterval": 0, 
"notifyinterval-unit": "Hours",
 "notifydatetime": null,
"starttime": "00:00:00Z", 
"endtime": "00:00:00Z",
"monday": true, 
"tuesday": true, 
"wednesday": true,
"thursday": true,
"friday": true,
"saturday": true,
"sunday": true,
"tags": [
{
"code": "NAV300", 
"value": "NAV356001"
}
],
"comments": [

] 
},
{
"code": "T_A0_TEST_READ_LONG_FILTER_FROM_NAV",
"description": "Transfer A0_TEST_READ_LONG_FILTER_FROM_NAV",
"transfercode": "A0_TEST_READ_LONG_FILTER_FROM_NAV", 
"groupcode": "", 
"interval": 1,
"interval-unit": "Hour",
"status": "Stopped",
"errorhandling": "Skip", 
"lastdatetime": "2016-12-23T12:00:08Z",
"nextdatetime": "2016-12-23T18:00:00Z",
"errorinterval": 1,
"errorinterval-unit": "Hour", 
"notifyinterval": 1,
"notifyinterval-unit": "Hour",
"notifydatetime": "2016-12-23T14:00:00Z",
"starttime": "00:00:00Z", 
"endtime": "00:00:00Z", 
"monday": false, 
"tuesday": true,
"wednesday": true, 
"thursday": true,
"friday": true, 
"saturday": true, 
"sunday": true, 
"tags": [
{ 
"code": "NEWTAG", 
"value": null
}
], 
"comments": [

]
},
{
"code": "T_A4_CRM2013_READ", 
"description": "Transfer A4_CRM2013_READ", 
"transfercode": "A4_CRM2013_READ",
"groupcode": "",
"interval": 19, 
"interval-unit": "Minutes",
"status": "Stopped", 
"errorhandling": "Skip", 
"lastdatetime": null,
"nextdatetime": "2015-09-16T00:02:00Z", 
"errorinterval": 11,
"errorinterval-unit": "Minutes", 
"notifyinterval": 22,
"notifyinterval-unit": "Minutes", 
"notifydatetime": null,
"starttime": "00:00:00Z",
"endtime": "01:00:00Z", 
"monday": true,
"tuesday": false,
"wednesday": true,
"thursday": true,
"friday": true, 
"saturday": true, 
"sunday": true,
 "tags": [
{ 
"code": "NEWTAG",
"value": null
} 
],
"comments": [

]
},
...

...

* Closing connection 0

 

JSONAPI:
 

Get Schedules:

 

curl -H Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE1MDE2ODg3NTMsInN1YiI6MX0.oLh_7lsktvX4NP-6Dh4ptGKZe6JEfzeMIgzDjRpMyHM
-H "Content-Type: application/vnd.api+json"
-H "Accept: application/vnd.api+json"
-X GET
https://api.myrapidi.com/api/v2/service/69/schedules

The out-put for this example would be:

 

{
"data": [
{
"id": "17",
"type": "schedules",
"attributes": {
"code": "G_CUST4494", 
"description": "Group CUST4494", 
"transfercode": "", 
"groupcode": "CUST4494",
"interval": 1, 
"interval-unit": "Hour", 
"status": "Stopped", 
"errorhandling": "Skip", 
"lastdatetime": null,
"nextdatetime": "2016-12-23T18:00:00Z", 
"errorinterval": 1, 
"errorinterval-unit": "Hour",
"notifyinterval": 1,
"notifyinterval-unit": "Hour", 
"notifydatetime": null,
"starttime": "00:00:00Z",
"endtime": "00:00:00Z",
"monday": true,
"tuesday": true, 
"wednesday": true, 
"thursday": true, 
"friday": true, 
"saturday": true, 
"sunday": true,
}, 
"relationships": {
"tags": {
"data": [
 
]
},
"comments": {
"data": [ 

]
}
}
},
{
"id":"18",
"type": "schedules",
"attributes": {
"code": "G_INVOICE",
"description": "Group INVOICE",
"transfercode": "",
"groupcode": "INVOICE",
"interval": 5,
"interval-unit": "Minutes",
"status": "Stopped",
"errorhandling": "Skip",
"lastdatetime": null,
"nextdatetime": "2015-09-29T16:32:00Z",
"errorinterval": 0,
"errorinterval-unit": "Minutes", 
"notifyinterval": 0, 
"notifyinterval-unit": "Minutes",
"notifydatetime": null, 
"starttime": "00:00:00Z", 
"endtime": "00:00:00Z", 
"monday": true, 
"tuesday": true, 
"wednesday": true, 
"thursday": true, 
"friday": true, 
"saturday": true, 
"sunday": true
}, 
"relationships": {
"tags": {
"data": [ 

  ]
}, 
"comments": {
"data": [

]
}
} 
}, 
{
"id": "15",
"type": "schedules",
"attributes": {
"code": "G_TEST22", 
"description": "Group TEST22",
"transfercode": "", 
"groupcode": "TEST22",
"interval": 1,
"interval-unit": "Week",
"status": "Stopped",
"errorhandling": "Skip",
"lastdatetime": "2014-03-30T15:59:07Z",
"nextdatetime": "2016-09-29T17:27:00Z",
"errorinterval": 1,
"errorinterval-unit": "Day", 
"notifyinterval": 2,
"notifyinterval-unit": "Hours", 
"notifydatetime": "2014-03-30T17:01:00Z",
"starttime": "00:00:00Z",
"endtime": "00:00:00Z",
"monday": true, 
"tuesday": true,
"wednesday": true, 
"thursday": true,
"friday": true,
"saturday": true,
"sunday": true
},
"relationships": {
"tags": {
"data": [
{
"id": "2",
"type": "schedule-tags"
}
]
},
"comments": {
"data": [

  ] 
}
}
},
{
"id": "19",
"type": "schedules",
"attributes": {
"code": "G_TEST22_NAV356001",
"description": "Group TEST22 NAV356001", 
"transfercode": "", 
"groupcode": "TEST22", 
"interval": 1, 
"interval-unit": "Day", 
"status": "Stopped",
"errorhandling": "Skip",
"lastdatetime": null,
"nextdatetime": "2015-10-01T00:00:00Z",
"errorinterval": 0,
"errorinterval-unit": "Hours",
  "notifyinterval": 0, 
"notifyinterval-unit": "Hours",
  "notifydatetime": null,
"starttime": "00:00:00Z", 
"endtime": "00:00:00Z",
"monday": true, 
"tuesday": true, 
"wednesday": true,
"thursday": true,
"friday": true,
"saturday": true,
"sunday": true
},
"relationships": {
"tags": {
"data": [
{
"id": "7", 
"type": "schedule-tags"
}
]
},
"comments": {
"data": [

] 
}
}
},
{
"id": "20",
"type": "schedules",
"attributes": {
"code": "T_A0_TEST_READ_LONG_FILTER_FROM_NAV",
"description": "Transfer A0_TEST_READ_LONG_FILTER_FROM_NAV",
"transfercode": "A0_TEST_READ_LONG_FILTER_FROM_NAV", 
"groupcode": "", 
"interval": 1,
"interval-unit": "Hour",
"status": "Stopped",
"errorhandling": "Skip", 
"lastdatetime": "2016-12-23T12:00:08Z",
"nextdatetime": "2016-12-23T18:00:00Z",
"errorinterval": 1,
"errorinterval-unit": "Hour", 
"notifyinterval": 1,
"notifyinterval-unit": "Hour",
"notifydatetime": "2016-12-23T14:00:00Z",
"starttime": "00:00:00Z", 
"endtime": "00:00:00Z", 
"monday": false, 
"tuesday": true,
"wednesday": true, 
"thursday": true,
"friday": true, 
"saturday": true, 
"sunday": true
}, 
"relationships": {
"tags": {
"data": [
{ 
"id": "11", 
"type": "schedule-tags"
}
]
}, 
"comments": {
"data": [

]
}
}
},
{
"id": "16",
"type": "schedules",
"attributes": {
"code": "T_A4_CRM2013_READ", 
"description": "Transfer A4_CRM2013_READ", 
"transfercode": "A4_CRM2013_READ",
"groupcode": "",
"interval": 19, 
"interval-unit": "Minutes",
"status": "Stopped", 
"errorhandling": "Skip", 
"lastdatetime": null,
"nextdatetime": "2015-09-16T00:02:00Z", 
"errorinterval": 11,
"errorinterval-unit": "Minutes", 
"notifyinterval": 22,
"notifyinterval-unit": "Minutes", 
"notifydatetime": null,
"starttime": "00:00:00Z",
"endtime": "01:00:00Z", 
"monday": true,
"tuesday": false,
"wednesday": true,
"thursday": true,
"friday": true, 
"saturday": true, 
"sunday": true
},
"relationships: {
  "tags": {
"data": [
{ 
"id": "3",
"type": "schedule-tags"
} 
]
},
"comments": {
"data": [
{
"id": "51",
"type": "comments"
}
]
}
}
}
],
"included": [
{
"id": "2",
"type": "schedule-tags",
"attributes": {
"code": "NAV212",
"value": "NAV356001"
}
},
{
"id": "7",
"type": "schedule-tags",
"attributes": {
"code": "NEWTAG",
"value": null
}
},
{
"id": "11",
"type": "schedule-tags",
"attributes: {
"code": "NEWTAG",
"value": null
}
},
{
"id": "3",
"type": "schedule-tags",
"attributes": {
"code": "NEWTAG",
"value": null
}
},
{
"id": "51",
"type": "comments",
"attributes": {
"created-at": "2017-08-15 20:41:54 +0200",
"created-by": "mibock",
"comment-text": "<p>ready to be set live</p>"
}
}
]