POST api/Vessels

Creates a vessel in the user's current project.

Request Information

URI Parameters

None.

Body Parameters

The vessel to create.

VesselNew
NameDescriptionTypeAdditional information
Name

The name of the vessel.

string

Required

String length: inclusive between 0 and 100

Identifier

A name for the vessel that must be unique for each vessel in a project.

string

Required

String length: inclusive between 0 and 100

OperationalThresholdsGroups

Collection of VesselThresholdsGroup

Required

Request Formats

application/json, text/json

Sample:
{
  "Name": "Vessel 1",
  "Identifier": "Vessel 1",
  "OperationalThresholdsGroups": [
    {
      "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
        }
      ]
    },
    {
      "Asset": {
        "Id": 2
      },
      "Thresholds": [
        {
          "Variable": {
            "Id": 1
          },
          "MinThresholdValue": null,
          "MaxThresholdValue": 2.0,
          "IsIgnored": false
        }
      ],
      "ForecastPoints": [
        {
          "Id": 3
        }
      ]
    }
  ]
}

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

The ID of the newly created vessel.

integer

Response Formats

application/json, text/json

Sample:
1

application/xml, text/xml

Sample:
<int xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</int>