POST AvailableSubProductTrait/ValidateSave_2

Request Information

URI Parameters

None.

Body Parameters

Collection of AvailableSubProductTrait
NameDescriptionTypeAdditional information
Year

integer

None.

Code

string

None.

ProductLineCode

string

None.

TraitId

integer

None.

TraitValueMemberId

decimal number

None.

LastMaintenanceName

string

None.

LastMaintenanceDate

date

None.

ChangeTracker

ObjectChangeTracker

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "$id": "1",
    "Year": 1,
    "Code": "sample string 2",
    "ProductLineCode": "sample string 3",
    "TraitId": 4,
    "TraitValueMemberId": 1.1,
    "LastMaintenanceName": "sample string 5",
    "LastMaintenanceDate": "2024-12-10T02:14:08.3606019+00:00",
    "ChangeTracker": {
      "$id": "2",
      "State": 2,
      "ObjectsRemovedFromCollectionProperties": {},
      "OriginalValues": {},
      "ExtendedProperties": {},
      "ObjectsAddedToCollectionProperties": {}
    }
  },
  {
    "$ref": "1"
  }
]

application/xml, text/xml

Sample:
<ArrayOfAvailableSubProductTrait xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Pioneer.Trials.Domain.Model">
  <AvailableSubProductTrait z:Id="i1" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/">
    <ChangeTracker z:Id="i2">
      <ExtendedProperties />
      <ObjectsAddedToCollectionProperties />
      <ObjectsRemovedFromCollectionProperties />
      <OriginalValues />
      <State>Added</State>
    </ChangeTracker>
    <Code>sample string 2</Code>
    <LastMaintenanceDate>2024-12-10T02:14:08.3606019+00:00</LastMaintenanceDate>
    <LastMaintenanceName>sample string 5</LastMaintenanceName>
    <ProductLineCode>sample string 3</ProductLineCode>
    <TraitId>4</TraitId>
    <TraitValueMemberId>1.1</TraitValueMemberId>
    <Year>1</Year>
  </AvailableSubProductTrait>
  <AvailableSubProductTrait z:Ref="i1" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/" />
</ArrayOfAvailableSubProductTrait>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ValidationReturn
NameDescriptionTypeAdditional information
IsValid

boolean

None.

Message

string

None.

Caption

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Message": "sample string 1",
  "Caption": "sample string 2"
}

application/xml, text/xml

Sample:
<ValidationReturn xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Pioneer.Trials.Domain.Model.Custom">
  <Caption>sample string 2</Caption>
  <Message>sample string 1</Message>
</ValidationReturn>