POST api/Rig/SaveRig

Request Information

URI Parameters

None.

Body Parameters

PlayerShipRig
NameDescriptionTypeAdditional information
RigName

string

None.

ShipModelId

integer

None.

Slots

Collection of Slot

None.

RigGuid

globally unique identifier

None.

Idx

integer

None.

ShipGuid

globally unique identifier

None.

Request Formats

application/json, text/json

Sample:
{
  "RigName": "sample string 1",
  "ShipModelId": 2,
  "Slots": [
    {
      "Number": 1,
      "CrewGuid": "732477e4-c545-459a-b915-aca9c24258d0",
      "ModuleGuid": "7b244eb4-059b-448e-a015-09ae20975be5"
    },
    {
      "Number": 1,
      "CrewGuid": "732477e4-c545-459a-b915-aca9c24258d0",
      "ModuleGuid": "7b244eb4-059b-448e-a015-09ae20975be5"
    }
  ],
  "RigGuid": "0692e33b-871a-48f3-a750-9add2b369264",
  "Idx": 4,
  "ShipGuid": "fdcffa64-2a40-4cc4-9071-74d35d2860ea"
}

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: Object graph for type 'Player.PlayerData' contains cycles and cannot be serialized if reference tracking is disabled.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: Object graph for type 'Player.PlayerData' contains cycles and cannot be serialized if reference tracking is disabled.

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'PlayerShipRig'.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.