GET api/monitoringvisits/whatsdue/generatedjobs/search?skip={skip}&take={take}&includeSuspended={includeSuspended}&dateFrom={dateFrom}&dateTo={dateTo}&searchString={searchString}
Searches for jobs which have been generated from recurrences.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| skip |
Skip over this numnber of elements in the search results (e.g. 10 will discard the first 10 search results). |
integer |
Required |
| take |
Return this number of elements in the search results (e.g. 50 will return 50 results). |
integer |
Required |
| includeSuspended |
Set to true if we want to include jobs generated from recurrences which are currently suspended. |
boolean |
Required |
| dateFrom |
Search for generated jobs which are scheduled on or after this DateTime. |
date |
Required |
| dateTo |
Search for generated jobs which are scheduled on or before this DateTime. |
date |
Required |
| searchString |
Search for generated jobs containing this string in the searchString. |
string |
None. |
Body Parameters
None.
Response Information
Resource Description
An array of jobs and the total count.
API.Domain.ViewModels.Job.JobPage| Name | Description | Type | Additional information |
|---|---|---|---|
| JobsCount | integer |
None. |
|
| JobPageItems | Collection of API.Domain.ViewModels.Job.JobListItem |
None. |
Response Formats
application/json, text/json
Sample:
{
"jobsCount": 1,
"jobPageItems": [
{
"state": {
"name": "sample string 1",
"id": "929ef14f-a447-40c6-b63f-f75b83180df1"
},
"allocatedTo": {
"id": "eb833d7c-5934-4356-a906-003cdcab1283",
"firstName": "sample string 2",
"lastName": "sample string 3",
"email": "sample string 4",
"userTypeName": "sample string 5"
},
"clientName": "sample string 1",
"siteAddress": {
"id": "4a93b15e-83f7-4fa4-a40b-f5d13c314f39",
"address1": "sample string 1",
"address2": "sample string 2",
"address3": "sample string 3",
"address4": "sample string 4",
"city": "sample string 5",
"county": "sample string 6",
"country": "sample string 7",
"zip": "sample string 8"
},
"jobType": {
"name": "sample string 1",
"version": 2,
"state": "new"
},
"siteName": "sample string 2",
"assetName": "sample string 3",
"isOverdue": false,
"completedDateByUser": "2026-06-02T00:35:07.1392091Z",
"completedDate": "2026-06-02T00:35:07.1392091+00:00",
"isRecurrence": true,
"recurrenceTypeName": "sample string 5",
"jobRecurrenceId": "d2183677-60b2-4dbb-bfbb-f64fe2bd2a36",
"monitoringRegimeId": "sample string 6",
"customFields": {
"rtcNumber": "sample string 1",
"operator": "sample string 2",
"dayType": "sample string 3",
"shift": "sample string 4",
"stopId": "sample string 5",
"direction": "sample string 6",
"timeFrom": "sample string 7",
"timeTo": "sample string 8",
"serviceRestrictions": "sample string 9"
},
"id": "59e2d091-0ef0-473d-b4cf-3a25695fd375",
"name": "sample string 8",
"jobTypeId": "1ba45e7e-0e98-45c2-849f-15a59607596f",
"tenantNumericCode": 10,
"numericCode": 11,
"externalReference": "sample string 12",
"timeInMinutes": 13,
"jobReferenceCode": "10-11",
"scheduledDate": "2026-06-02T00:35:07.1392091Z",
"updatedDate": "2026-06-02T00:35:07.1392091Z",
"createdDate": "2026-06-02T00:35:07.1392091Z",
"scheduledDateAndTimeOffset": "2026-06-02T00:35:07.1392091+00:00",
"updatedDateAndTimeOffset": "2026-06-02T00:35:07.1392091+00:00",
"createdDateAndTimeOffset": "2026-06-02T00:35:07.1392091+00:00",
"parentJobId": "8be7d8f9-102e-4c7b-a472-5c1d2d2fd5e3",
"jobCategoryId": "e86a573f-a017-4381-a8a8-8a90ce637a4a"
},
{
"state": {
"name": "sample string 1",
"id": "929ef14f-a447-40c6-b63f-f75b83180df1"
},
"allocatedTo": {
"id": "eb833d7c-5934-4356-a906-003cdcab1283",
"firstName": "sample string 2",
"lastName": "sample string 3",
"email": "sample string 4",
"userTypeName": "sample string 5"
},
"clientName": "sample string 1",
"siteAddress": {
"id": "4a93b15e-83f7-4fa4-a40b-f5d13c314f39",
"address1": "sample string 1",
"address2": "sample string 2",
"address3": "sample string 3",
"address4": "sample string 4",
"city": "sample string 5",
"county": "sample string 6",
"country": "sample string 7",
"zip": "sample string 8"
},
"jobType": {
"name": "sample string 1",
"version": 2,
"state": "new"
},
"siteName": "sample string 2",
"assetName": "sample string 3",
"isOverdue": false,
"completedDateByUser": "2026-06-02T00:35:07.1392091Z",
"completedDate": "2026-06-02T00:35:07.1392091+00:00",
"isRecurrence": true,
"recurrenceTypeName": "sample string 5",
"jobRecurrenceId": "d2183677-60b2-4dbb-bfbb-f64fe2bd2a36",
"monitoringRegimeId": "sample string 6",
"customFields": {
"rtcNumber": "sample string 1",
"operator": "sample string 2",
"dayType": "sample string 3",
"shift": "sample string 4",
"stopId": "sample string 5",
"direction": "sample string 6",
"timeFrom": "sample string 7",
"timeTo": "sample string 8",
"serviceRestrictions": "sample string 9"
},
"id": "59e2d091-0ef0-473d-b4cf-3a25695fd375",
"name": "sample string 8",
"jobTypeId": "1ba45e7e-0e98-45c2-849f-15a59607596f",
"tenantNumericCode": 10,
"numericCode": 11,
"externalReference": "sample string 12",
"timeInMinutes": 13,
"jobReferenceCode": "10-11",
"scheduledDate": "2026-06-02T00:35:07.1392091Z",
"updatedDate": "2026-06-02T00:35:07.1392091Z",
"createdDate": "2026-06-02T00:35:07.1392091Z",
"scheduledDateAndTimeOffset": "2026-06-02T00:35:07.1392091+00:00",
"updatedDateAndTimeOffset": "2026-06-02T00:35:07.1392091+00:00",
"createdDateAndTimeOffset": "2026-06-02T00:35:07.1392091+00:00",
"parentJobId": "8be7d8f9-102e-4c7b-a472-5c1d2d2fd5e3",
"jobCategoryId": "e86a573f-a017-4381-a8a8-8a90ce637a4a"
}
]
}
text/html
Sample:
{"jobsCount":1,"jobPageItems":[{"state":{"name":"sample string 1","id":"929ef14f-a447-40c6-b63f-f75b83180df1"},"allocatedTo":{"id":"eb833d7c-5934-4356-a906-003cdcab1283","firstName":"sample string 2","lastName":"sample string 3","email":"sample string 4","userTypeName":"sample string 5"},"clientName":"sample string 1","siteAddress":{"id":"4a93b15e-83f7-4fa4-a40b-f5d13c314f39","address1":"sample string 1","address2":"sample string 2","address3":"sample string 3","address4":"sample string 4","city":"sample string 5","county":"sample string 6","country":"sample string 7","zip":"sample string 8"},"jobType":{"name":"sample string 1","version":2,"state":"new"},"siteName":"sample string 2","assetName":"sample string 3","isOverdue":false,"completedDateByUser":"2026-06-02T00:35:07.1392091Z","completedDate":"2026-06-02T00:35:07.1392091+00:00","isRecurrence":true,"recurrenceTypeName":"sample string 5","jobRecurrenceId":"d2183677-60b2-4dbb-bfbb-f64fe2bd2a36","monitoringRegimeId":"sample string 6","customFields":{"rtcNumber":"sample string 1","operator":"sample string 2","dayType":"sample string 3","shift":"sample string 4","stopId":"sample string 5","direction":"sample string 6","timeFrom":"sample string 7","timeTo":"sample string 8","serviceRestrictions":"sample string 9"},"id":"59e2d091-0ef0-473d-b4cf-3a25695fd375","name":"sample string 8","jobTypeId":"1ba45e7e-0e98-45c2-849f-15a59607596f","tenantNumericCode":10,"numericCode":11,"externalReference":"sample string 12","timeInMinutes":13,"jobReferenceCode":"10-11","scheduledDate":"2026-06-02T00:35:07.1392091Z","updatedDate":"2026-06-02T00:35:07.1392091Z","createdDate":"2026-06-02T00:35:07.1392091Z","scheduledDateAndTimeOffset":"2026-06-02T00:35:07.1392091+00:00","updatedDateAndTimeOffset":"2026-06-02T00:35:07.1392091+00:00","createdDateAndTimeOffset":"2026-06-02T00:35:07.1392091+00:00","parentJobId":"8be7d8f9-102e-4c7b-a472-5c1d2d2fd5e3","jobCategoryId":"e86a573f-a017-4381-a8a8-8a90ce637a4a"},{"state":{"name":"sample string 1","id":"929ef14f-a447-40c6-b63f-f75b83180df1"},"allocatedTo":{"id":"eb833d7c-5934-4356-a906-003cdcab1283","firstName":"sample string 2","lastName":"sample string 3","email":"sample string 4","userTypeName":"sample string 5"},"clientName":"sample string 1","siteAddress":{"id":"4a93b15e-83f7-4fa4-a40b-f5d13c314f39","address1":"sample string 1","address2":"sample string 2","address3":"sample string 3","address4":"sample string 4","city":"sample string 5","county":"sample string 6","country":"sample string 7","zip":"sample string 8"},"jobType":{"name":"sample string 1","version":2,"state":"new"},"siteName":"sample string 2","assetName":"sample string 3","isOverdue":false,"completedDateByUser":"2026-06-02T00:35:07.1392091Z","completedDate":"2026-06-02T00:35:07.1392091+00:00","isRecurrence":true,"recurrenceTypeName":"sample string 5","jobRecurrenceId":"d2183677-60b2-4dbb-bfbb-f64fe2bd2a36","monitoringRegimeId":"sample string 6","customFields":{"rtcNumber":"sample string 1","operator":"sample string 2","dayType":"sample string 3","shift":"sample string 4","stopId":"sample string 5","direction":"sample string 6","timeFrom":"sample string 7","timeTo":"sample string 8","serviceRestrictions":"sample string 9"},"id":"59e2d091-0ef0-473d-b4cf-3a25695fd375","name":"sample string 8","jobTypeId":"1ba45e7e-0e98-45c2-849f-15a59607596f","tenantNumericCode":10,"numericCode":11,"externalReference":"sample string 12","timeInMinutes":13,"jobReferenceCode":"10-11","scheduledDate":"2026-06-02T00:35:07.1392091Z","updatedDate":"2026-06-02T00:35:07.1392091Z","createdDate":"2026-06-02T00:35:07.1392091Z","scheduledDateAndTimeOffset":"2026-06-02T00:35:07.1392091+00:00","updatedDateAndTimeOffset":"2026-06-02T00:35:07.1392091+00:00","createdDateAndTimeOffset":"2026-06-02T00:35:07.1392091+00:00","parentJobId":"8be7d8f9-102e-4c7b-a472-5c1d2d2fd5e3","jobCategoryId":"e86a573f-a017-4381-a8a8-8a90ce637a4a"}]}