POST api/v{version}/TransitStageDurations/Templates
Creates a new transit stage duration template.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| version | string |
None. |
Body Parameters
The stage duration to create.
TransitStageDurationTemplateNew| Name | Description | Type | Additional information |
|---|---|---|---|
| Asset1 |
A reference to the asset which defines the starting point of the transit. |
Reference |
Required |
| Asset2 |
A reference to the asset which defines the end point of the transit. |
Reference |
Required |
| ForecastPoint |
A reference to the metocean data location associated with this stage. |
Reference |
Required |
| Order |
The order of the stage within the transit. |
integer |
Required Range: inclusive between 1 and 2147483647 |
| DurationMinutes |
The duration of this stage of the transit, in minutes. |
integer |
Required Range: inclusive between 1 and 2147483647 |
Request Formats
application/json, text/json
Sample:
{
"Asset1": {
"Id": 1
},
"Asset2": {
"Id": 3
},
"ForecastPoint": {
"Id": 10
},
"Order": 1,
"DurationMinutes": 60
}
application/xml, text/xml
Sample:
<TransitStageDurationTemplateNew xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ForeCoastMarine.Core.OAndM">
<Asset1 i:nil="true" />
<Asset2 i:nil="true" />
<DurationMinutes>60</DurationMinutes>
<ForecastPoint xmlns:d2p1="http://schemas.datacontract.org/2004/07/ForeCoastMarine.Core.Models" i:nil="true" />
<Order>1</Order>
<Asset1Reference xmlns:d2p1="http://schemas.datacontract.org/2004/07/ForeCoastMarine.Core">
<d2p1:Id>1</d2p1:Id>
</Asset1Reference>
<Asset2Reference xmlns:d2p1="http://schemas.datacontract.org/2004/07/ForeCoastMarine.Core">
<d2p1:Id>3</d2p1:Id>
</Asset2Reference>
<ForecastPointReference xmlns:d2p1="http://schemas.datacontract.org/2004/07/ForeCoastMarine.Core">
<d2p1:Id>10</d2p1:Id>
</ForecastPointReference>
</TransitStageDurationTemplateNew>
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.