GET api/v{version}/TransferPlans?id={id}
Gets the transfer plan with the given ID.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id |
The ID of the transfer plan. |
integer |
Required |
| version | string |
None. |
Body Parameters
None.
Response Information
Resource Description
The requested transfer plan.
TransferPlanReadyToSchedule| Name | Description | Type | Additional information |
|---|---|---|---|
| Id |
The ID of the transfer plan. |
integer |
Required |
| Operations |
A list of the operations each vessel is required to perform. |
Collection of TransferPlanOperationReadyToSchedule |
Required |
| TransferPlanVessels |
A list of the vessels assigned to the transfer plan. |
Collection of TransferPlanVesselReadyToSchedule |
Required |
| Name |
The name of the transfer plan. |
string |
Required String length: inclusive between 0 and 100 |
| Description |
A description of the transfer plan. |
string |
None. |
| StartDate |
The preferred start date and time for the transfer plan. |
date |
None. |
Response Formats
application/json, text/json
Sample:
{
"Id": 1,
"Operations": [
{
"Id": 1,
"TransferPlanId": 1,
"Thresholds": [
{
"Variable": {
"Id": 1,
"Name": "Significant wave height",
"Units": "m",
"IsDirection": false,
"IsBelowThresholdSuccess": true
},
"MinThresholdValue": null,
"MaxThresholdValue": 1.5,
"IsIgnored": false
},
{
"Variable": {
"Id": 5,
"Name": "Wind speed",
"Units": "m/s",
"IsDirection": false,
"IsBelowThresholdSuccess": true
},
"MinThresholdValue": null,
"MaxThresholdValue": 17.0,
"IsIgnored": false
}
],
"StageDurations": [
{
"Stage": {
"ForecastPoint": {
"Id": 10,
"Name": "Forecast point 10",
"Latitude": 0.0,
"Longitude": 1.0
},
"Order": 1
},
"DurationMinutes": 120
}
],
"Name": "Load",
"Vessel": {
"Id": 1,
"Name": "Vessel 1",
"Identifier": "Vessel 1",
"OperationalThresholdsGroups": null
},
"Asset1": {
"Id": 1,
"Name": "Port",
"Identifier": "Asset 1",
"Latitude": 0.0,
"Longitude": 1.0,
"ForecastPoint": {
"Id": 10,
"Name": "Forecast point 10",
"Latitude": 0.0,
"Longitude": 1.0
}
},
"Asset2": null,
"Type": 1,
"Order": 1,
"HasThresholds": true,
"Description": "",
"WaitsForOperationOrder": null
},
{
"Id": 2,
"TransferPlanId": 1,
"Thresholds": [
{
"Variable": {
"Id": 1,
"Name": "Significant wave height",
"Units": "m",
"IsDirection": false,
"IsBelowThresholdSuccess": true
},
"MinThresholdValue": null,
"MaxThresholdValue": 2.2,
"IsIgnored": false
},
{
"Variable": {
"Id": 2,
"Name": "Wave period",
"Units": "secs",
"IsDirection": false,
"IsBelowThresholdSuccess": true
},
"MinThresholdValue": null,
"MaxThresholdValue": 6.0,
"IsIgnored": false
},
{
"Variable": {
"Id": 5,
"Name": "Wind speed",
"Units": "m/s",
"IsDirection": false,
"IsBelowThresholdSuccess": true
},
"MinThresholdValue": null,
"MaxThresholdValue": 20.0,
"IsIgnored": false
}
],
"StageDurations": [
{
"Stage": {
"ForecastPoint": {
"Id": 2,
"Name": "Forecast point 2",
"Latitude": 1.0,
"Longitude": 0.1
},
"Order": 1
},
"DurationMinutes": 60
}
],
"Name": "Transit to A1",
"Vessel": {
"Id": 1,
"Name": "Vessel 1",
"Identifier": "Vessel 1",
"OperationalThresholdsGroups": null
},
"Asset1": {
"Id": 1,
"Name": "Port",
"Identifier": "Asset 1",
"Latitude": 0.0,
"Longitude": 1.0,
"ForecastPoint": {
"Id": 10,
"Name": "Forecast point 10",
"Latitude": 0.0,
"Longitude": 1.0
}
},
"Asset2": {
"Id": 2,
"Name": "A1",
"Identifier": "Asset 2",
"Latitude": 1.0,
"Longitude": 0.0,
"ForecastPoint": {
"Id": 3,
"Name": "Forecast point 3",
"Latitude": 1.1,
"Longitude": 0.0
}
},
"Type": 1,
"Order": 2,
"HasThresholds": true,
"Description": "",
"WaitsForOperationOrder": null
}
],
"TransferPlanVessels": [
{
"TransferPlanId": 1,
"Vessel": {
"Id": 1,
"Name": "Vessel 1",
"Identifier": "Vessel 1",
"OperationalThresholdsGroups": null
}
}
],
"Name": "The name of this transfer plan",
"Description": "An optional description for this transfer plan.",
"StartDate": "2017-06-16T22:00:00"
}
application/xml
Sample:
Sample not available.
text/xml
Sample:
Sample not available.