POST api/Vessels/Update?updateDetailsOnly={updateDetailsOnly}

Updates a vessel.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
updateDetailsOnly

If true, only vessel details (name and identifier) will be updated. If false, the operational constraints of the vessel will also be updated.

boolean

Required

Body Parameters

The vessel to update.

VesselChanged
NameDescriptionTypeAdditional information
OperationalThresholdsGroups

Collection of VesselThresholdsGroup

Required

Id

integer

Required

Name

string

Required

String length: inclusive between 0 and 100

Identifier

string

Required

String length: inclusive between 0 and 100

Request Formats

application/json, text/json

Sample:
{
  "OperationalThresholdsGroups": [
    {
      "Id": 1,
      "Asset": {
        "Id": 1
      },
      "Thresholds": [
        {
          "Variable": {
            "Id": 1
          },
          "MinThresholdValue": null,
          "MaxThresholdValue": 1.5,
          "IsIgnored": false
        },
        {
          "Variable": {
            "Id": 2
          },
          "MinThresholdValue": null,
          "MaxThresholdValue": 5.0,
          "IsIgnored": false
        }
      ],
      "ForecastPoints": [
        {
          "Id": 10
        }
      ]
    },
    {
      "Id": 2,
      "Asset": {
        "Id": 2
      },
      "Thresholds": [
        {
          "Variable": {
            "Id": 1
          },
          "MinThresholdValue": null,
          "MaxThresholdValue": 2.0,
          "IsIgnored": false
        }
      ],
      "ForecastPoints": [
        {
          "Id": 3
        }
      ]
    }
  ],
  "Id": 1,
  "Name": "Vessel 1",
  "Identifier": "Vessel 1"
}

application/xml

Sample:

Sample not available.

text/xml

Sample:

Sample not available.

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.