POST api/facilityschedulegenerate/{id}/generate
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id | integer |
Required |
Body Parameters
ScheduleGenerateRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| FacilityRef | integer |
None. |
|
| InputUN | string |
None. |
|
| DayPrices | Dictionary of integer [key] and decimal number [value] |
None. |
|
| ExcludedSlots | Collection of string |
None. |
Request Formats
application/json, text/json
Sample:
{
"FacilityRef": 1,
"InputUN": "sample string 2",
"DayPrices": {
"1": 2.0,
"3": 4.0
},
"ExcludedSlots": [
"sample string 1",
"sample string 2"
]
}
application/xml, text/xml
Sample:
<ScheduleGenerateRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ERP360_BF_BACKEND.Models">
<DayPrices xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:KeyValueOfintdecimal>
<d2p1:Key>1</d2p1:Key>
<d2p1:Value>2</d2p1:Value>
</d2p1:KeyValueOfintdecimal>
<d2p1:KeyValueOfintdecimal>
<d2p1:Key>3</d2p1:Key>
<d2p1:Value>4</d2p1:Value>
</d2p1:KeyValueOfintdecimal>
</DayPrices>
<ExcludedSlots xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:string>sample string 1</d2p1:string>
<d2p1:string>sample string 2</d2p1:string>
</ExcludedSlots>
<FacilityRef>1</FacilityRef>
<InputUN>sample string 2</InputUN>
</ScheduleGenerateRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.