POST api/monitoringvisits/hypotheticalnextdate
Gets the hypothetical next date for a job recurrence which has not already been created.
Request Information
URI Parameters
None.
Body Parameters
The recurrence details.
API.Infrastructure.Dto.JobRecurrence.JobRecurrenceDto| Name | Description | Type | Additional information |
|---|---|---|---|
| JobTypeId | globally unique identifier |
Required |
|
| Name | string |
Required |
|
| UserId | globally unique identifier |
None. |
|
| CreateDaysBefore | integer |
None. |
|
| SiteId | globally unique identifier |
Required |
|
| ContactId | globally unique identifier |
None. |
|
| AssetId | globally unique identifier |
None. |
|
| StartDate | date |
Required |
|
| EndDate | date |
None. |
|
| Limit | integer |
None. |
|
| ExternalReference | string |
None. |
|
| Pattern | API.Domain.JobRecurrence.RecurrencePattern |
Required |
|
| Notes | string |
None. |
|
| JobRecurrenceTypeId | globally unique identifier |
None. |
|
| LastCompletedDate | date |
None. |
|
| Chained | boolean |
None. |
|
| Systems | Collection of API.Infrastructure.Dto.JobRecurrence.JobRecurrenceSystemDto |
None. |
Request Formats
application/json, text/json
Sample:
{
"jobTypeId": "d88cb959-2c0b-413d-8ef8-3eebd83405d8",
"name": "sample string 2",
"userId": "657510dd-9007-4531-b0e8-38b2661ee69c",
"createDaysBefore": 3,
"siteId": "0b3b58c2-2113-4e18-ab65-2bc32abf0629",
"contactId": "1dea2a21-1182-4ca5-aa80-c7df6811c54f",
"assetId": "1b5dd6a4-77e1-477d-a3ef-66e5bb1164b4",
"startDate": "2026-10-25T11:50:37.0807519Z",
"endDate": "2026-10-25T11:50:37.0807519Z",
"limit": 1,
"externalReference": "sample string 6",
"pattern": {
"checked": "daily",
"underoption": "dailyCycle",
"daily": {
"cycle": 1,
"type": "daily"
},
"weekly": {
"cycle": 1,
"weekdays": [
1,
2
],
"type": "weekly"
},
"monthly": {
"dayOfMonth": 1,
"cycle": 2,
"numberOfWeekdayInMonth": 3,
"weekday": "sunday",
"type": "monthly"
},
"yearly": {
"month": 1,
"day": 2,
"numberOfWeekdayInMonth": 3,
"weekday": "sunday",
"type": "yearly"
}
},
"notes": "sample string 7",
"jobRecurrenceTypeId": "cea5b7d3-acf5-4e09-b6ab-88793887d320",
"lastCompletedDate": "2026-10-25T11:50:37.0807519+00:00",
"chained": true,
"systems": [
{
"systemId": "sample string 1",
"systemName": "sample string 2",
"jobRecurrenceId": "92ad1fdf-2637-4613-83e4-054208941bfb"
},
{
"systemId": "sample string 1",
"systemName": "sample string 2",
"jobRecurrenceId": "92ad1fdf-2637-4613-83e4-054208941bfb"
}
]
}
text/html
Sample:
{"jobTypeId":"d88cb959-2c0b-413d-8ef8-3eebd83405d8","name":"sample string 2","userId":"657510dd-9007-4531-b0e8-38b2661ee69c","createDaysBefore":3,"siteId":"0b3b58c2-2113-4e18-ab65-2bc32abf0629","contactId":"1dea2a21-1182-4ca5-aa80-c7df6811c54f","assetId":"1b5dd6a4-77e1-477d-a3ef-66e5bb1164b4","startDate":"2026-10-25T11:50:37.0807519Z","endDate":"2026-10-25T11:50:37.0807519Z","limit":1,"externalReference":"sample string 6","pattern":{"checked":"daily","underoption":"dailyCycle","daily":{"cycle":1,"type":"daily"},"weekly":{"cycle":1,"weekdays":[1,2],"type":"weekly"},"monthly":{"dayOfMonth":1,"cycle":2,"numberOfWeekdayInMonth":3,"weekday":"sunday","type":"monthly"},"yearly":{"month":1,"day":2,"numberOfWeekdayInMonth":3,"weekday":"sunday","type":"yearly"}},"notes":"sample string 7","jobRecurrenceTypeId":"cea5b7d3-acf5-4e09-b6ab-88793887d320","lastCompletedDate":"2026-10-25T11:50:37.0807519+00:00","chained":true,"systems":[{"systemId":"sample string 1","systemName":"sample string 2","jobRecurrenceId":"92ad1fdf-2637-4613-83e4-054208941bfb"},{"systemId":"sample string 1","systemName":"sample string 2","jobRecurrenceId":"92ad1fdf-2637-4613-83e4-054208941bfb"}]}
Response Information
Resource Description
What the next recurrence date should be based on the recurrence details.
API.Domain.ViewModels.JobRecurrence.JobRecurrencePossibleNextDate| Name | Description | Type | Additional information |
|---|---|---|---|
| NextDate | date |
None. |
Response Formats
application/json, text/json
Sample:
{
"nextDate": "2026-10-25T11:50:37.0807519Z"
}
text/html
Sample:
{"nextDate":"2026-10-25T11:50:37.0807519Z"}