<turbo-stream action="update" target="wiki_card"><template>
<h1>REST API Schedules List Overdue Schedules</h1>
<p>If you want to see a list of overdue schedules (or those due to run) please see below for both JSON and JSONAPI example.</p>
<p>NOTE: Remember to substitute the token (after Bearer) and the service id (the [SERVICE ID] below) to your own token and service id.</p>
<p><strong>JSON:</strong>
</p><pre class="card">curl 
  -H "Authorization: Bearer [API SECURITY TOKEN]"
  -H "Content-Type: application/json" 
  -H "Accept: application/json"
  -X GET
  "https://api.myrapidi.com/api/v2/service/[SERVICE ID]/schedules?dueoroverdue=true"
</pre>
<p>The out-put for this example would be:</p>
<pre class="card">{
  "code": "G_TEST22_NAV356001",
  "description": "Group TEST22 NAV356001",
  "transfer": "",
  "group": "TEST22",
  "interval": 33,
  "interval_unit": "Day",
  "status": "Error",
  "error_handling": "Skip",
  "last_datetime": "2017-07-15T00:00:00Z"
  "next_datetime": "2017-08-15T00:00:00Z",
  "error_interval": 0,
  "error_interval_unit": "Hours",
  "notify_interval": 0,
  "notify_interval_unit": "Hours",
  "notify_datetime": null,
  "start_time": "00:00:00Z",
  "end_time": "00:00:00Z",
  "monday": true,
  "tuesday": true,
  "wednesday": true,
  "thursday": true,
  "friday": true,
  "saturday": true, 
  "sunday": true,
  "tags": [
    {
      "code": "NAV300",
      "value": "NAV356001"
    }
  ],
  "comments": []
}
</pre>
<p><strong>JSONAPI:</strong>
</p><pre class="card">curl 
  -H "Authorization: Bearer [API SECURITY TOKEN]"
  -H "Content-Type: application/vnd.api+json" 
  -H "Accept: application/vnd.api+json"
  -X GET
  "https://api.myrapidi.com/api/v2/service/[SERVICE ID]/schedules?dueoroverdue=true"
</pre>
<p>The out-put for this example would be:</p>
<pre class="card">{
  "data":{
    "id":"19",
    "type": "schedules",
    "attributes":{
      "code": "G_TEST22_NAV356001",
      "description": "Group TEST22 NAV356001",
      "transfer": "",
      "group": "TEST22",
      "interval": 33,
      "interval_unit": "Day",
      "status": "Error",
      "error_handling": "Skip",
      "last_datetime": null,
      "next_datetime": "2017-08-15T15:35:00Z",
      "error_interval": 0,
      "error_interval_unit": "Hours",
      "notify_interval": 0,
      "notify_interval_unit": "Hours",
      "notify_datetime": null,
      "start_time": "00:00:00Z",
      "end_time": "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": []
      }
    }
  },
  "included": 
  [{
    "id": "7",
    "type": "schedule_tags",
    "attributes": {
      "code": "NAV300",
      "value": "NAV356001"
    }
  }]
}
</pre>
</template></turbo-stream>

<turbo-stream action="replace" target="meta_description"><template><meta content='REST API Schedules List Overdue Schedules' id='meta_description' name='description'></template></turbo-stream>
<turbo-stream action="replace" target="meta_keywords"><template><meta content='REST API Schedules List Overdue Schedules' id='meta_keywords' name='keywords'></template></turbo-stream>
<turbo-stream action="update" target="meta_title"><template>REST API Schedules List Overdue Schedules - MyRapidi Wiki</template></turbo-stream>
<turbo-stream action="prepend" target="flash"><template></template></turbo-stream>
