| PUT,OPTIONS | /v1/coverage/self/availability |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Days | body | List<CoverageSelfAvailDay> | No | |
| Prefs | body | WorkerSchedulingPrefs | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Day | form | string | No | |
| Open | form | bool | No | |
| Windows | form | List<CoverageSelfAvailWindow> | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Start | form | string | No | |
| End | form | string | No | |
| Preferred | form | bool | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ContactID | form | int | No | |
| PreferredWeeklyHours | form | int? | No | |
| PreferredMonthlyHours | form | int? | No | |
| MinShiftMinutes | form | int? | No | |
| MaxConsecutiveDays | form | int? | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ResponseStatus | form | ResponseStatus | No | |
| Days | form | List<CoverageSelfAvailDay> | No | |
| Prefs | form | WorkerSchedulingPrefs | No | |
| RulesSummary | form | string | No | |
| TimeOffNoticeDays | form | int | 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.
PUT /v1/coverage/self/availability HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
Days:
[
{
Day: String,
Open: False,
Windows:
[
{
Start: String,
End: String,
Preferred: False
}
]
}
],
Prefs:
{
ContactID: 0,
PreferredWeeklyHours: 0,
PreferredMonthlyHours: 0,
MinShiftMinutes: 0,
MaxConsecutiveDays: 0
}
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
ResponseStatus:
{
ErrorCode: String,
Message: String,
StackTrace: String,
Errors:
[
{
ErrorCode: String,
FieldName: String,
Message: String,
Meta:
{
String: String
}
}
],
Meta:
{
String: String
}
},
Days:
[
{
Day: String,
Open: False,
Windows:
[
{
Start: String,
End: String,
Preferred: False
}
]
}
],
Prefs:
{
ContactID: 0,
PreferredWeeklyHours: 0,
PreferredMonthlyHours: 0,
MinShiftMinutes: 0,
MaxConsecutiveDays: 0
},
RulesSummary: String,
TimeOffNoticeDays: 0
}