POST api/Transport/InsertGui

Request Information

URI Parameters

None.

Body Parameters

TransportInsertGuiRequest
NameDescriptionTypeAdditional information
transport

Transport

None.

qrPicType

string

None.

Request Formats

application/json, text/json

Sample:
{
  "transport": {
    "id": 1,
    "idOrder": 1,
    "orderNumber": "sample string 1",
    "workUnitCreator": "sample string 2",
    "idWorkUnitCreator": 1,
    "workUnitDispatcher": "sample string 3",
    "idWorkUnitDispatcher": 1,
    "workUnitTransporter": "sample string 4",
    "idWorkUnitTransporter": 1,
    "intervention": "sample string 5",
    "created": "2025-12-11T02:52:58.6941591+01:00",
    "changed": "2025-12-11T02:52:58.6941591+01:00",
    "statuses": {
      "drafted": "2025-12-11T02:52:58.6941591+01:00",
      "ordered": "2025-12-11T02:52:58.6941591+01:00",
      "received": "2025-12-11T02:52:58.6941591+01:00",
      "evaluated": "2025-12-11T02:52:58.6941591+01:00",
      "evaluateResult": true,
      "assigned": "2025-12-11T02:52:58.6941591+01:00",
      "accepted": "2025-12-11T02:52:58.6941591+01:00",
      "onRoute": "2025-12-11T02:52:58.6941591+01:00",
      "onScene": "2025-12-11T02:52:58.6941591+01:00",
      "atPatient": "2025-12-11T02:52:58.6941591+01:00",
      "returning": "2025-12-11T02:52:58.6941591+01:00",
      "atDestination": "2025-12-11T02:52:58.6941591+01:00",
      "patientHandedOver": "2025-12-11T02:52:58.6941591+01:00",
      "patientAccepted": "2025-12-11T02:52:58.6941591+01:00",
      "toBase": "2025-12-11T02:52:58.6941591+01:00",
      "available": "2025-12-11T02:52:58.6941591+01:00",
      "complete": "2025-12-11T02:52:58.6941591+01:00",
      "aborted": "2025-12-11T02:52:58.6941591+01:00",
      "abortReason": "sample string 1",
      "billed": "2025-12-11T02:52:58.6941591+01:00",
      "evaluateResultDescription": "sample string 2"
    },
    "from": {
      "idWorkUnit": 1,
      "institution": "sample string 1",
      "institutionDescription": "sample string 2",
      "municipality": "sample string 3",
      "town": "sample string 4",
      "street": "sample string 5",
      "houseNumber": "sample string 6",
      "description": "sample string 7",
      "latitude": 1.1,
      "longitude": 1.1,
      "time": "2025-12-11T02:52:58.6941591+01:00",
      "postcode": "sample string 8",
      "post": "sample string 9"
    },
    "to": {
      "idWorkUnit": 1,
      "institution": "sample string 1",
      "institutionDescription": "sample string 2",
      "municipality": "sample string 3",
      "town": "sample string 4",
      "street": "sample string 5",
      "houseNumber": "sample string 6",
      "description": "sample string 7",
      "latitude": 1.1,
      "longitude": 1.1,
      "time": "2025-12-11T02:52:58.6941591+01:00",
      "postcode": "sample string 8",
      "post": "sample string 9"
    },
    "patient": {
      "kZZ": "sample string 1",
      "name": "sample string 2",
      "surname": "sample string 3",
      "birthDate": "2025-12-11T02:52:58.6941591+01:00",
      "sex": "sample string 4",
      "email": "sample string 5",
      "phone": "sample string 6",
      "mobility": "sample string 7",
      "reason": "sample string 8",
      "status": {
        "eventType": "sample string 1",
        "consciousness": "sample string 2",
        "breathing": "sample string 3",
        "bleeding": "sample string 4",
        "pain": "sample string 5"
      }
    },
    "transportDescription": "sample string 8",
    "idPriority": 1,
    "creatorPhone": "sample string 9",
    "docInHands": true,
    "docInHandsDescription": "sample string 10",
    "idTransportHandover": "sample string 11"
  },
  "qrPicType": "sample string 1"
}

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: Type 'Newtonsoft.Json.Linq.JToken' is a recursive collection data contract which is not supported. Consider modifying the definition of collection 'Newtonsoft.Json.Linq.JToken' to remove references to itself.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: Type 'Newtonsoft.Json.Linq.JToken' is a recursive collection data contract which is not supported. Consider modifying the definition of collection 'Newtonsoft.Json.Linq.JToken' to remove references to itself.

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 'TransportInsertGuiRequest'.

Response Information

Resource Description

TransportInsertGuiResponse
NameDescriptionTypeAdditional information
idTransport

integer

None.

qrTransportPic

Collection of byte

None.

url

string

None.

mesasge

string

None.

isSuccess

boolean

None.

Response Formats

application/json, text/json

Sample:
{
  "idTransport": 1,
  "qrTransportPic": "QEA=",
  "url": "sample string 2",
  "mesasge": "sample string 3",
  "isSuccess": true
}

application/xml, text/xml

Sample:
<TransportInsertGuiResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NMP3000Api.Areas.Transport.Models">
  <IsSuccess xmlns="http://schemas.datacontract.org/2004/07/NMP3000Api.Models">true</IsSuccess>
  <Mesasge xmlns="http://schemas.datacontract.org/2004/07/NMP3000Api.Models">sample string 3</Mesasge>
  <Url xmlns="http://schemas.datacontract.org/2004/07/NMP3000Api.Models">sample string 2</Url>
  <IdTransport>1</IdTransport>
</TransportInsertGuiResponse>