POST api/GlobalRegistry/UpsertSpId

Request Information

URI Parameters

None.

Body Parameters

SpIdDto
NameDescriptionTypeAdditional information
SpidId

integer

None.

SpidNumber

string

None.

CustomerId

integer

None.

JobCardId

integer

None.

EquipmentId

integer

None.

SamplingPointId

integer

None.

OrgId

integer

None.

CustomerName

string

None.

MakeOfEquipment

string

None.

ModelOfEquipment

string

None.

EquipmentSrNo

string

None.

EquipmentName

string

None.

ReservoirQty

string

None.

AreaId

integer

None.

SamplingPointName

string

None.

CreatedBy

integer

None.

CreatedDate

date

None.

UpdatedBy

integer

None.

UpdatedDate

date

None.

StatusTypeId

byte

None.

ComponentId

integer

None.

GraphTemplateTypeId

integer

None.

OilGradeId

integer

None.

lstCharIds

Collection of integer

None.

lstSampleChars

Collection of CharacteristicsDto

None.

ShipId

integer

None.

TransformerDetails

string

None.

TransformerCapacity

string

None.

TransformerMake

string

None.

TransformerSerialNo

string

None.

VoltageRating

string

None.

YearOfMake

string

None.

Request Formats

application/json, text/json

Sample:
{
  "SpidId": 1,
  "SpidNumber": "sample string 2",
  "CustomerId": 3,
  "JobCardId": 4,
  "EquipmentId": 5,
  "SamplingPointId": 1,
  "OrgId": 6,
  "CustomerName": "sample string 7",
  "MakeOfEquipment": "sample string 8",
  "ModelOfEquipment": "sample string 9",
  "EquipmentSrNo": "sample string 10",
  "EquipmentName": "sample string 11",
  "ReservoirQty": "sample string 12",
  "AreaId": 1,
  "SamplingPointName": "sample string 13",
  "CreatedBy": 14,
  "CreatedDate": "2026-07-29T08:51:33.4041598-06:00",
  "UpdatedBy": 1,
  "UpdatedDate": "2026-07-29T08:51:33.4041598-06:00",
  "StatusTypeId": 64,
  "ComponentId": 1,
  "GraphTemplateTypeId": 1,
  "OilGradeId": 1,
  "lstCharIds": [
    1,
    2
  ],
  "lstSampleChars": [
    {
      "CharacteristicId": 1,
      "Name": "sample string 2",
      "Description": "sample string 3",
      "UnitId": 1,
      "TestMethodId": 1,
      "CreatedBy": 4,
      "CreatedDate": "2026-07-29T08:51:33.4041598-06:00",
      "UpdateBy": 1,
      "UpdatedDate": "2026-07-29T08:51:33.4041598-06:00",
      "StatusTypeId": 64,
      "OrgId": 7,
      "RoleId": 8,
      "UserTypeId": 64,
      "UnitName": "sample string 10",
      "TestMethodName": "sample string 11",
      "IsChecked": true,
      "HasAnalysisGraph": true,
      "CharacteristicOrderId": 1,
      "AnalysisElementTypeId": 14,
      "ShowInOilGrades": true,
      "ShowInGeneralSamples": true,
      "ShowInFerrographySamples": true,
      "ShowInTataSamples": true,
      "IsLabelOnly": true,
      "ShowInTransformerSamples": true,
      "ParentCharId": 1,
      "SpIdChar": {
        "SpidChariId": 1,
        "Spid": 2,
        "CharacteristicId": 3,
        "CreatedBy": 4,
        "CreatedDate": "2026-07-29T08:51:33.4041598-06:00"
      },
      "CustomerChar": {
        "CustomerCharId": 1,
        "CustomerId": 2,
        "CharacteristicId": 3,
        "CreatedBy": 4,
        "CreatedDate": "2026-07-29T08:51:33.4041598-06:00"
      },
      "JobCardChar": {
        "JobCardCharId": 1,
        "JobCardId": 2,
        "CharacteristicId": 3,
        "CreatedBy": 4,
        "CreatedDate": "2026-07-29T08:51:33.4041598-06:00"
      },
      "LubricantChar": {
        "LubricantCharId": 1,
        "LubricantTypeId": 2,
        "CharacteristicId": 3,
        "IsChecked": true,
        "CreatedBy": 5,
        "CreatedDate": "2026-07-29T08:51:33.4041598-06:00",
        "UpdatedBy": 1,
        "UpdatedDate": "2026-07-29T08:51:33.4041598-06:00"
      },
      "AliasName": "sample string 15",
      "SubCharcteristics": [],
      "Collapsed": true,
      "IsIntermediate": true
    },
    {
      "CharacteristicId": 1,
      "Name": "sample string 2",
      "Description": "sample string 3",
      "UnitId": 1,
      "TestMethodId": 1,
      "CreatedBy": 4,
      "CreatedDate": "2026-07-29T08:51:33.4041598-06:00",
      "UpdateBy": 1,
      "UpdatedDate": "2026-07-29T08:51:33.4041598-06:00",
      "StatusTypeId": 64,
      "OrgId": 7,
      "RoleId": 8,
      "UserTypeId": 64,
      "UnitName": "sample string 10",
      "TestMethodName": "sample string 11",
      "IsChecked": true,
      "HasAnalysisGraph": true,
      "CharacteristicOrderId": 1,
      "AnalysisElementTypeId": 14,
      "ShowInOilGrades": true,
      "ShowInGeneralSamples": true,
      "ShowInFerrographySamples": true,
      "ShowInTataSamples": true,
      "IsLabelOnly": true,
      "ShowInTransformerSamples": true,
      "ParentCharId": 1,
      "SpIdChar": {
        "SpidChariId": 1,
        "Spid": 2,
        "CharacteristicId": 3,
        "CreatedBy": 4,
        "CreatedDate": "2026-07-29T08:51:33.4041598-06:00"
      },
      "CustomerChar": {
        "CustomerCharId": 1,
        "CustomerId": 2,
        "CharacteristicId": 3,
        "CreatedBy": 4,
        "CreatedDate": "2026-07-29T08:51:33.4041598-06:00"
      },
      "JobCardChar": {
        "JobCardCharId": 1,
        "JobCardId": 2,
        "CharacteristicId": 3,
        "CreatedBy": 4,
        "CreatedDate": "2026-07-29T08:51:33.4041598-06:00"
      },
      "LubricantChar": {
        "LubricantCharId": 1,
        "LubricantTypeId": 2,
        "CharacteristicId": 3,
        "IsChecked": true,
        "CreatedBy": 5,
        "CreatedDate": "2026-07-29T08:51:33.4041598-06:00",
        "UpdatedBy": 1,
        "UpdatedDate": "2026-07-29T08:51:33.4041598-06:00"
      },
      "AliasName": "sample string 15",
      "SubCharcteristics": [],
      "Collapsed": true,
      "IsIntermediate": true
    }
  ],
  "ShipId": 17,
  "TransformerDetails": "sample string 18",
  "TransformerCapacity": "sample string 19",
  "TransformerMake": "sample string 20",
  "TransformerSerialNo": "sample string 21",
  "VoltageRating": "sample string 22",
  "YearOfMake": "sample string 23"
}

application/x-www-form-urlencoded

Sample:

Sample not available.

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.