| Requires any of the roles: | Client, Admin, Partner |
| POST | /schedules |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| TenantsId | body | int | Yes | |
| IntervalsId | body | int | Yes | |
| RunAt | body | DateTime? | No | |
| Monday | body | bool? | No | |
| Tuesday | body | bool? | No | |
| Wednesday | body | bool? | No | |
| Thursday | body | bool? | No | |
| Friday | body | bool? | No | |
| Saturday | body | bool? | No | |
| Sunday | body | bool? | No | |
| DayOfMonth | body | int? | No | |
| MonthOfYear | body | int? | No | |
| StartDate | body | DateTime | No | |
| EndDate | body | DateTime | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| TenantsId | form | int | No | |
| IntervalsId | form | int | No | |
| RunAt | form | DateTime? | No | |
| Monday | form | bool? | No | |
| Tuesday | form | bool? | No | |
| Wednesday | form | bool? | No | |
| Thursday | form | bool? | No | |
| Friday | form | bool? | No | |
| Saturday | form | bool? | No | |
| Sunday | form | bool? | No | |
| DayOfMonth | form | int? | No | |
| MonthOfYear | form | int? | No | |
| StartDate | form | DateTime | No | |
| EndDate | form | DateTime | No | |
| ResponseStatus | form | ResponseStatus | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /schedules HTTP/1.1
Host: duengageapi.uat.scadsoftware.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
TenantsId: 0,
IntervalsId: 0,
RunAt: 0001-01-01,
Monday: False,
Tuesday: False,
Wednesday: False,
Thursday: False,
Friday: False,
Saturday: False,
Sunday: False,
DayOfMonth: 0,
MonthOfYear: 0,
StartDate: 0001-01-01,
EndDate: 0001-01-01
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
TenantsId: 0,
IntervalsId: 0,
RunAt: 0001-01-01,
Monday: False,
Tuesday: False,
Wednesday: False,
Thursday: False,
Friday: False,
Saturday: False,
Sunday: False,
DayOfMonth: 0,
MonthOfYear: 0,
StartDate: 0001-01-01,
EndDate: 0001-01-01,
ResponseStatus:
{
ErrorCode: String,
Message: String,
StackTrace: String,
Errors:
[
{
ErrorCode: String,
FieldName: String,
Message: String,
Meta:
{
String: String
}
}
],
Meta:
{
String: String
}
}
}