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": "dbb9656b-da71-4c4a-8e88-54cbac1a3b7b"
},
"allocatedTo": {
"id": "cbcd1144-fe12-4143-b480-3f0246c04885",
"firstName": "sample string 2",
"lastName": "sample string 3",
"email": "sample string 4",
"userTypeName": "sample string 5"
},
"clientName": "sample string 1",
"siteAddress": {
"id": "f710147b-287c-44a1-9f61-901a70d539c4",
"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",
"isOverdue": false,
"completedDateByUser": "2026-02-27T04:03:04.9914409Z",
"completedDate": "2026-02-27T04:03:04.9914409+00:00",
"isRecurrence": true,
"recurrenceTypeName": "sample string 4",
"jobRecurrenceId": "ac843529-2e3a-4760-b72d-0d8b33a53f75",
"monitoringRegimeId": "sample string 5",
"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": "e6e1ee14-dc1a-45e4-ac43-81bc6bb7ea84",
"name": "sample string 7",
"jobTypeId": "3bafb275-e2e2-4fd4-a91c-c59fd477bc31",
"tenantNumericCode": 9,
"numericCode": 10,
"externalReference": "sample string 11",
"timeInMinutes": 12,
"jobReferenceCode": "9-10",
"scheduledDate": "2026-02-27T04:03:04.9914409Z",
"updatedDate": "2026-02-27T04:03:04.9914409Z",
"createdDate": "2026-02-27T04:03:04.9914409Z",
"scheduledDateAndTimeOffset": "2026-02-27T04:03:04.9914409+00:00",
"updatedDateAndTimeOffset": "2026-02-27T04:03:04.9914409+00:00",
"createdDateAndTimeOffset": "2026-02-27T04:03:04.9914409+00:00",
"parentJobId": "349e7ec3-0a08-4cf5-b2b3-3ae67373b577",
"jobCategoryId": "059f0730-144f-4d1f-abd4-771b7ca05983"
},
{
"state": {
"name": "sample string 1",
"id": "dbb9656b-da71-4c4a-8e88-54cbac1a3b7b"
},
"allocatedTo": {
"id": "cbcd1144-fe12-4143-b480-3f0246c04885",
"firstName": "sample string 2",
"lastName": "sample string 3",
"email": "sample string 4",
"userTypeName": "sample string 5"
},
"clientName": "sample string 1",
"siteAddress": {
"id": "f710147b-287c-44a1-9f61-901a70d539c4",
"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",
"isOverdue": false,
"completedDateByUser": "2026-02-27T04:03:04.9914409Z",
"completedDate": "2026-02-27T04:03:04.9914409+00:00",
"isRecurrence": true,
"recurrenceTypeName": "sample string 4",
"jobRecurrenceId": "ac843529-2e3a-4760-b72d-0d8b33a53f75",
"monitoringRegimeId": "sample string 5",
"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": "e6e1ee14-dc1a-45e4-ac43-81bc6bb7ea84",
"name": "sample string 7",
"jobTypeId": "3bafb275-e2e2-4fd4-a91c-c59fd477bc31",
"tenantNumericCode": 9,
"numericCode": 10,
"externalReference": "sample string 11",
"timeInMinutes": 12,
"jobReferenceCode": "9-10",
"scheduledDate": "2026-02-27T04:03:04.9914409Z",
"updatedDate": "2026-02-27T04:03:04.9914409Z",
"createdDate": "2026-02-27T04:03:04.9914409Z",
"scheduledDateAndTimeOffset": "2026-02-27T04:03:04.9914409+00:00",
"updatedDateAndTimeOffset": "2026-02-27T04:03:04.9914409+00:00",
"createdDateAndTimeOffset": "2026-02-27T04:03:04.9914409+00:00",
"parentJobId": "349e7ec3-0a08-4cf5-b2b3-3ae67373b577",
"jobCategoryId": "059f0730-144f-4d1f-abd4-771b7ca05983"
}
]
}
text/html
Sample:
{"jobsCount":1,"jobPageItems":[{"state":{"name":"sample string 1","id":"dbb9656b-da71-4c4a-8e88-54cbac1a3b7b"},"allocatedTo":{"id":"cbcd1144-fe12-4143-b480-3f0246c04885","firstName":"sample string 2","lastName":"sample string 3","email":"sample string 4","userTypeName":"sample string 5"},"clientName":"sample string 1","siteAddress":{"id":"f710147b-287c-44a1-9f61-901a70d539c4","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","isOverdue":false,"completedDateByUser":"2026-02-27T04:03:04.9914409Z","completedDate":"2026-02-27T04:03:04.9914409+00:00","isRecurrence":true,"recurrenceTypeName":"sample string 4","jobRecurrenceId":"ac843529-2e3a-4760-b72d-0d8b33a53f75","monitoringRegimeId":"sample string 5","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":"e6e1ee14-dc1a-45e4-ac43-81bc6bb7ea84","name":"sample string 7","jobTypeId":"3bafb275-e2e2-4fd4-a91c-c59fd477bc31","tenantNumericCode":9,"numericCode":10,"externalReference":"sample string 11","timeInMinutes":12,"jobReferenceCode":"9-10","scheduledDate":"2026-02-27T04:03:04.9914409Z","updatedDate":"2026-02-27T04:03:04.9914409Z","createdDate":"2026-02-27T04:03:04.9914409Z","scheduledDateAndTimeOffset":"2026-02-27T04:03:04.9914409+00:00","updatedDateAndTimeOffset":"2026-02-27T04:03:04.9914409+00:00","createdDateAndTimeOffset":"2026-02-27T04:03:04.9914409+00:00","parentJobId":"349e7ec3-0a08-4cf5-b2b3-3ae67373b577","jobCategoryId":"059f0730-144f-4d1f-abd4-771b7ca05983"},{"state":{"name":"sample string 1","id":"dbb9656b-da71-4c4a-8e88-54cbac1a3b7b"},"allocatedTo":{"id":"cbcd1144-fe12-4143-b480-3f0246c04885","firstName":"sample string 2","lastName":"sample string 3","email":"sample string 4","userTypeName":"sample string 5"},"clientName":"sample string 1","siteAddress":{"id":"f710147b-287c-44a1-9f61-901a70d539c4","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","isOverdue":false,"completedDateByUser":"2026-02-27T04:03:04.9914409Z","completedDate":"2026-02-27T04:03:04.9914409+00:00","isRecurrence":true,"recurrenceTypeName":"sample string 4","jobRecurrenceId":"ac843529-2e3a-4760-b72d-0d8b33a53f75","monitoringRegimeId":"sample string 5","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":"e6e1ee14-dc1a-45e4-ac43-81bc6bb7ea84","name":"sample string 7","jobTypeId":"3bafb275-e2e2-4fd4-a91c-c59fd477bc31","tenantNumericCode":9,"numericCode":10,"externalReference":"sample string 11","timeInMinutes":12,"jobReferenceCode":"9-10","scheduledDate":"2026-02-27T04:03:04.9914409Z","updatedDate":"2026-02-27T04:03:04.9914409Z","createdDate":"2026-02-27T04:03:04.9914409Z","scheduledDateAndTimeOffset":"2026-02-27T04:03:04.9914409+00:00","updatedDateAndTimeOffset":"2026-02-27T04:03:04.9914409+00:00","createdDateAndTimeOffset":"2026-02-27T04:03:04.9914409+00:00","parentJobId":"349e7ec3-0a08-4cf5-b2b3-3ae67373b577","jobCategoryId":"059f0730-144f-4d1f-abd4-771b7ca05983"}]}