POST api/ShipVisit/UpsertVesselInfo
this method is for saving Vessel Module informatin
Request Information
Parameters
| Name | Description | Additional information |
|---|---|---|
| VesselInfo |
Define this parameter in the request body. |
Request body formats
application/json, text/json
Sample:
{
"ShipVisitId": 1,
"UserId": 2,
"Sections": [
{
"SectionTemplateId": 1,
"SectionTemplateName": "sample string 2",
"SectionId": 3,
"SectionName": "sample string 4",
"Fields": [
{
"FieldRowId": 1,
"Field1": {
"FieldId": 1,
"FieldTypeId": 2,
"FieldMaxVal": 3,
"FieldName": "sample string 4",
"FieldValue": "sample string 5",
"IsNewField": true,
"IsValidField": true
},
"Field2": {
"FieldId": 1,
"FieldTypeId": 2,
"FieldMaxVal": 3,
"FieldName": "sample string 4",
"FieldValue": "sample string 5",
"IsNewField": true,
"IsValidField": true
}
},
{
"FieldRowId": 1,
"Field1": {
"FieldId": 1,
"FieldTypeId": 2,
"FieldMaxVal": 3,
"FieldName": "sample string 4",
"FieldValue": "sample string 5",
"IsNewField": true,
"IsValidField": true
},
"Field2": {
"FieldId": 1,
"FieldTypeId": 2,
"FieldMaxVal": 3,
"FieldName": "sample string 4",
"FieldValue": "sample string 5",
"IsNewField": true,
"IsValidField": true
}
},
{
"FieldRowId": 1,
"Field1": {
"FieldId": 1,
"FieldTypeId": 2,
"FieldMaxVal": 3,
"FieldName": "sample string 4",
"FieldValue": "sample string 5",
"IsNewField": true,
"IsValidField": true
},
"Field2": {
"FieldId": 1,
"FieldTypeId": 2,
"FieldMaxVal": 3,
"FieldName": "sample string 4",
"FieldValue": "sample string 5",
"IsNewField": true,
"IsValidField": true
}
}
],
"CreatedBy": 5,
"CreatedDate": "2026-03-12T18:09:06.5576979+04:00",
"UpdatedBy": 7,
"UpdatedDate": "2026-03-12T18:09:06.5576979+04:00"
},
{
"SectionTemplateId": 1,
"SectionTemplateName": "sample string 2",
"SectionId": 3,
"SectionName": "sample string 4",
"Fields": [
{
"FieldRowId": 1,
"Field1": {
"FieldId": 1,
"FieldTypeId": 2,
"FieldMaxVal": 3,
"FieldName": "sample string 4",
"FieldValue": "sample string 5",
"IsNewField": true,
"IsValidField": true
},
"Field2": {
"FieldId": 1,
"FieldTypeId": 2,
"FieldMaxVal": 3,
"FieldName": "sample string 4",
"FieldValue": "sample string 5",
"IsNewField": true,
"IsValidField": true
}
},
{
"FieldRowId": 1,
"Field1": {
"FieldId": 1,
"FieldTypeId": 2,
"FieldMaxVal": 3,
"FieldName": "sample string 4",
"FieldValue": "sample string 5",
"IsNewField": true,
"IsValidField": true
},
"Field2": {
"FieldId": 1,
"FieldTypeId": 2,
"FieldMaxVal": 3,
"FieldName": "sample string 4",
"FieldValue": "sample string 5",
"IsNewField": true,
"IsValidField": true
}
},
{
"FieldRowId": 1,
"Field1": {
"FieldId": 1,
"FieldTypeId": 2,
"FieldMaxVal": 3,
"FieldName": "sample string 4",
"FieldValue": "sample string 5",
"IsNewField": true,
"IsValidField": true
},
"Field2": {
"FieldId": 1,
"FieldTypeId": 2,
"FieldMaxVal": 3,
"FieldName": "sample string 4",
"FieldValue": "sample string 5",
"IsNewField": true,
"IsValidField": true
}
}
],
"CreatedBy": 5,
"CreatedDate": "2026-03-12T18:09:06.5576979+04:00",
"UpdatedBy": 7,
"UpdatedDate": "2026-03-12T18:09:06.5576979+04:00"
},
{
"SectionTemplateId": 1,
"SectionTemplateName": "sample string 2",
"SectionId": 3,
"SectionName": "sample string 4",
"Fields": [
{
"FieldRowId": 1,
"Field1": {
"FieldId": 1,
"FieldTypeId": 2,
"FieldMaxVal": 3,
"FieldName": "sample string 4",
"FieldValue": "sample string 5",
"IsNewField": true,
"IsValidField": true
},
"Field2": {
"FieldId": 1,
"FieldTypeId": 2,
"FieldMaxVal": 3,
"FieldName": "sample string 4",
"FieldValue": "sample string 5",
"IsNewField": true,
"IsValidField": true
}
},
{
"FieldRowId": 1,
"Field1": {
"FieldId": 1,
"FieldTypeId": 2,
"FieldMaxVal": 3,
"FieldName": "sample string 4",
"FieldValue": "sample string 5",
"IsNewField": true,
"IsValidField": true
},
"Field2": {
"FieldId": 1,
"FieldTypeId": 2,
"FieldMaxVal": 3,
"FieldName": "sample string 4",
"FieldValue": "sample string 5",
"IsNewField": true,
"IsValidField": true
}
},
{
"FieldRowId": 1,
"Field1": {
"FieldId": 1,
"FieldTypeId": 2,
"FieldMaxVal": 3,
"FieldName": "sample string 4",
"FieldValue": "sample string 5",
"IsNewField": true,
"IsValidField": true
},
"Field2": {
"FieldId": 1,
"FieldTypeId": 2,
"FieldMaxVal": 3,
"FieldName": "sample string 4",
"FieldValue": "sample string 5",
"IsNewField": true,
"IsValidField": true
}
}
],
"CreatedBy": 5,
"CreatedDate": "2026-03-12T18:09:06.5576979+04:00",
"UpdatedBy": 7,
"UpdatedDate": "2026-03-12T18:09:06.5576979+04:00"
}
]
}
application/xml, text/xml
Sample:
<VesselInformation xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LukOil.MarineDB.WebApi.Controllers">
<Sections xmlns:d2p1="http://schemas.datacontract.org/2004/07/LukOil.MarineDB.Domain.Model.VesselInspection">
<d2p1:SectionInfo>
<d2p1:CreatedBy>5</d2p1:CreatedBy>
<d2p1:CreatedDate>2026-03-12T18:09:06.5576979+04:00</d2p1:CreatedDate>
<d2p1:Fields>
<d2p1:SectionFieldsInfo>
<d2p1:Field1>
<d2p1:FieldId>1</d2p1:FieldId>
<d2p1:FieldMaxVal>3</d2p1:FieldMaxVal>
<d2p1:FieldName>sample string 4</d2p1:FieldName>
<d2p1:FieldTypeId>2</d2p1:FieldTypeId>
<d2p1:FieldValue>sample string 5</d2p1:FieldValue>
<d2p1:IsNewField>true</d2p1:IsNewField>
<d2p1:IsValidField>true</d2p1:IsValidField>
</d2p1:Field1>
<d2p1:Field2>
<d2p1:FieldId>1</d2p1:FieldId>
<d2p1:FieldMaxVal>3</d2p1:FieldMaxVal>
<d2p1:FieldName>sample string 4</d2p1:FieldName>
<d2p1:FieldTypeId>2</d2p1:FieldTypeId>
<d2p1:FieldValue>sample string 5</d2p1:FieldValue>
<d2p1:IsNewField>true</d2p1:IsNewField>
<d2p1:IsValidField>true</d2p1:IsValidField>
</d2p1:Field2>
<d2p1:FieldRowId>1</d2p1:FieldRowId>
</d2p1:SectionFieldsInfo>
<d2p1:SectionFieldsInfo>
<d2p1:Field1>
<d2p1:FieldId>1</d2p1:FieldId>
<d2p1:FieldMaxVal>3</d2p1:FieldMaxVal>
<d2p1:FieldName>sample string 4</d2p1:FieldName>
<d2p1:FieldTypeId>2</d2p1:FieldTypeId>
<d2p1:FieldValue>sample string 5</d2p1:FieldValue>
<d2p1:IsNewField>true</d2p1:IsNewField>
<d2p1:IsValidField>true</d2p1:IsValidField>
</d2p1:Field1>
<d2p1:Field2>
<d2p1:FieldId>1</d2p1:FieldId>
<d2p1:FieldMaxVal>3</d2p1:FieldMaxVal>
<d2p1:FieldName>sample string 4</d2p1:FieldName>
<d2p1:FieldTypeId>2</d2p1:FieldTypeId>
<d2p1:FieldValue>sample string 5</d2p1:FieldValue>
<d2p1:IsNewField>true</d2p1:IsNewField>
<d2p1:IsValidField>true</d2p1:IsValidField>
</d2p1:Field2>
<d2p1:FieldRowId>1</d2p1:FieldRowId>
</d2p1:SectionFieldsInfo>
<d2p1:SectionFieldsInfo>
<d2p1:Field1>
<d2p1:FieldId>1</d2p1:FieldId>
<d2p1:FieldMaxVal>3</d2p1:FieldMaxVal>
<d2p1:FieldName>sample string 4</d2p1:FieldName>
<d2p1:FieldTypeId>2</d2p1:FieldTypeId>
<d2p1:FieldValue>sample string 5</d2p1:FieldValue>
<d2p1:IsNewField>true</d2p1:IsNewField>
<d2p1:IsValidField>true</d2p1:IsValidField>
</d2p1:Field1>
<d2p1:Field2>
<d2p1:FieldId>1</d2p1:FieldId>
<d2p1:FieldMaxVal>3</d2p1:FieldMaxVal>
<d2p1:FieldName>sample string 4</d2p1:FieldName>
<d2p1:FieldTypeId>2</d2p1:FieldTypeId>
<d2p1:FieldValue>sample string 5</d2p1:FieldValue>
<d2p1:IsNewField>true</d2p1:IsNewField>
<d2p1:IsValidField>true</d2p1:IsValidField>
</d2p1:Field2>
<d2p1:FieldRowId>1</d2p1:FieldRowId>
</d2p1:SectionFieldsInfo>
</d2p1:Fields>
<d2p1:SectionId>3</d2p1:SectionId>
<d2p1:SectionName>sample string 4</d2p1:SectionName>
<d2p1:SectionTemplateId>1</d2p1:SectionTemplateId>
<d2p1:SectionTemplateName>sample string 2</d2p1:SectionTemplateName>
<d2p1:UpdatedBy>7</d2p1:UpdatedBy>
<d2p1:UpdatedDate>2026-03-12T18:09:06.5576979+04:00</d2p1:UpdatedDate>
</d2p1:SectionInfo>
<d2p1:SectionInfo>
<d2p1:CreatedBy>5</d2p1:CreatedBy>
<d2p1:CreatedDate>2026-03-12T18:09:06.5576979+04:00</d2p1:CreatedDate>
<d2p1:Fields>
<d2p1:SectionFieldsInfo>
<d2p1:Field1>
<d2p1:FieldId>1</d2p1:FieldId>
<d2p1:FieldMaxVal>3</d2p1:FieldMaxVal>
<d2p1:FieldName>sample string 4</d2p1:FieldName>
<d2p1:FieldTypeId>2</d2p1:FieldTypeId>
<d2p1:FieldValue>sample string 5</d2p1:FieldValue>
<d2p1:IsNewField>true</d2p1:IsNewField>
<d2p1:IsValidField>true</d2p1:IsValidField>
</d2p1:Field1>
<d2p1:Field2>
<d2p1:FieldId>1</d2p1:FieldId>
<d2p1:FieldMaxVal>3</d2p1:FieldMaxVal>
<d2p1:FieldName>sample string 4</d2p1:FieldName>
<d2p1:FieldTypeId>2</d2p1:FieldTypeId>
<d2p1:FieldValue>sample string 5</d2p1:FieldValue>
<d2p1:IsNewField>true</d2p1:IsNewField>
<d2p1:IsValidField>true</d2p1:IsValidField>
</d2p1:Field2>
<d2p1:FieldRowId>1</d2p1:FieldRowId>
</d2p1:SectionFieldsInfo>
<d2p1:SectionFieldsInfo>
<d2p1:Field1>
<d2p1:FieldId>1</d2p1:FieldId>
<d2p1:FieldMaxVal>3</d2p1:FieldMaxVal>
<d2p1:FieldName>sample string 4</d2p1:FieldName>
<d2p1:FieldTypeId>2</d2p1:FieldTypeId>
<d2p1:FieldValue>sample string 5</d2p1:FieldValue>
<d2p1:IsNewField>true</d2p1:IsNewField>
<d2p1:IsValidField>true</d2p1:IsValidField>
</d2p1:Field1>
<d2p1:Field2>
<d2p1:FieldId>1</d2p1:FieldId>
<d2p1:FieldMaxVal>3</d2p1:FieldMaxVal>
<d2p1:FieldName>sample string 4</d2p1:FieldName>
<d2p1:FieldTypeId>2</d2p1:FieldTypeId>
<d2p1:FieldValue>sample string 5</d2p1:FieldValue>
<d2p1:IsNewField>true</d2p1:IsNewField>
<d2p1:IsValidField>true</d2p1:IsValidField>
</d2p1:Field2>
<d2p1:FieldRowId>1</d2p1:FieldRowId>
</d2p1:SectionFieldsInfo>
<d2p1:SectionFieldsInfo>
<d2p1:Field1>
<d2p1:FieldId>1</d2p1:FieldId>
<d2p1:FieldMaxVal>3</d2p1:FieldMaxVal>
<d2p1:FieldName>sample string 4</d2p1:FieldName>
<d2p1:FieldTypeId>2</d2p1:FieldTypeId>
<d2p1:FieldValue>sample string 5</d2p1:FieldValue>
<d2p1:IsNewField>true</d2p1:IsNewField>
<d2p1:IsValidField>true</d2p1:IsValidField>
</d2p1:Field1>
<d2p1:Field2>
<d2p1:FieldId>1</d2p1:FieldId>
<d2p1:FieldMaxVal>3</d2p1:FieldMaxVal>
<d2p1:FieldName>sample string 4</d2p1:FieldName>
<d2p1:FieldTypeId>2</d2p1:FieldTypeId>
<d2p1:FieldValue>sample string 5</d2p1:FieldValue>
<d2p1:IsNewField>true</d2p1:IsNewField>
<d2p1:IsValidField>true</d2p1:IsValidField>
</d2p1:Field2>
<d2p1:FieldRowId>1</d2p1:FieldRowId>
</d2p1:SectionFieldsInfo>
</d2p1:Fields>
<d2p1:SectionId>3</d2p1:SectionId>
<d2p1:SectionName>sample string 4</d2p1:SectionName>
<d2p1:SectionTemplateId>1</d2p1:SectionTemplateId>
<d2p1:SectionTemplateName>sample string 2</d2p1:SectionTemplateName>
<d2p1:UpdatedBy>7</d2p1:UpdatedBy>
<d2p1:UpdatedDate>2026-03-12T18:09:06.5576979+04:00</d2p1:UpdatedDate>
</d2p1:SectionInfo>
<d2p1:SectionInfo>
<d2p1:CreatedBy>5</d2p1:CreatedBy>
<d2p1:CreatedDate>2026-03-12T18:09:06.5576979+04:00</d2p1:CreatedDate>
<d2p1:Fields>
<d2p1:SectionFieldsInfo>
<d2p1:Field1>
<d2p1:FieldId>1</d2p1:FieldId>
<d2p1:FieldMaxVal>3</d2p1:FieldMaxVal>
<d2p1:FieldName>sample string 4</d2p1:FieldName>
<d2p1:FieldTypeId>2</d2p1:FieldTypeId>
<d2p1:FieldValue>sample string 5</d2p1:FieldValue>
<d2p1:IsNewField>true</d2p1:IsNewField>
<d2p1:IsValidField>true</d2p1:IsValidField>
</d2p1:Field1>
<d2p1:Field2>
<d2p1:FieldId>1</d2p1:FieldId>
<d2p1:FieldMaxVal>3</d2p1:FieldMaxVal>
<d2p1:FieldName>sample string 4</d2p1:FieldName>
<d2p1:FieldTypeId>2</d2p1:FieldTypeId>
<d2p1:FieldValue>sample string 5</d2p1:FieldValue>
<d2p1:IsNewField>true</d2p1:IsNewField>
<d2p1:IsValidField>true</d2p1:IsValidField>
</d2p1:Field2>
<d2p1:FieldRowId>1</d2p1:FieldRowId>
</d2p1:SectionFieldsInfo>
<d2p1:SectionFieldsInfo>
<d2p1:Field1>
<d2p1:FieldId>1</d2p1:FieldId>
<d2p1:FieldMaxVal>3</d2p1:FieldMaxVal>
<d2p1:FieldName>sample string 4</d2p1:FieldName>
<d2p1:FieldTypeId>2</d2p1:FieldTypeId>
<d2p1:FieldValue>sample string 5</d2p1:FieldValue>
<d2p1:IsNewField>true</d2p1:IsNewField>
<d2p1:IsValidField>true</d2p1:IsValidField>
</d2p1:Field1>
<d2p1:Field2>
<d2p1:FieldId>1</d2p1:FieldId>
<d2p1:FieldMaxVal>3</d2p1:FieldMaxVal>
<d2p1:FieldName>sample string 4</d2p1:FieldName>
<d2p1:FieldTypeId>2</d2p1:FieldTypeId>
<d2p1:FieldValue>sample string 5</d2p1:FieldValue>
<d2p1:IsNewField>true</d2p1:IsNewField>
<d2p1:IsValidField>true</d2p1:IsValidField>
</d2p1:Field2>
<d2p1:FieldRowId>1</d2p1:FieldRowId>
</d2p1:SectionFieldsInfo>
<d2p1:SectionFieldsInfo>
<d2p1:Field1>
<d2p1:FieldId>1</d2p1:FieldId>
<d2p1:FieldMaxVal>3</d2p1:FieldMaxVal>
<d2p1:FieldName>sample string 4</d2p1:FieldName>
<d2p1:FieldTypeId>2</d2p1:FieldTypeId>
<d2p1:FieldValue>sample string 5</d2p1:FieldValue>
<d2p1:IsNewField>true</d2p1:IsNewField>
<d2p1:IsValidField>true</d2p1:IsValidField>
</d2p1:Field1>
<d2p1:Field2>
<d2p1:FieldId>1</d2p1:FieldId>
<d2p1:FieldMaxVal>3</d2p1:FieldMaxVal>
<d2p1:FieldName>sample string 4</d2p1:FieldName>
<d2p1:FieldTypeId>2</d2p1:FieldTypeId>
<d2p1:FieldValue>sample string 5</d2p1:FieldValue>
<d2p1:IsNewField>true</d2p1:IsNewField>
<d2p1:IsValidField>true</d2p1:IsValidField>
</d2p1:Field2>
<d2p1:FieldRowId>1</d2p1:FieldRowId>
</d2p1:SectionFieldsInfo>
</d2p1:Fields>
<d2p1:SectionId>3</d2p1:SectionId>
<d2p1:SectionName>sample string 4</d2p1:SectionName>
<d2p1:SectionTemplateId>1</d2p1:SectionTemplateId>
<d2p1:SectionTemplateName>sample string 2</d2p1:SectionTemplateName>
<d2p1:UpdatedBy>7</d2p1:UpdatedBy>
<d2p1:UpdatedDate>2026-03-12T18:09:06.5576979+04:00</d2p1:UpdatedDate>
</d2p1:SectionInfo>
</Sections>
<ShipVisitId>1</ShipVisitId>
<UserId>2</UserId>
</VesselInformation>
application/x-www-form-urlencoded
Sample:
Sample not available.