POST TraitByLanguage/Base/SaveAll
Request Information
URI Parameters
None.
Body Parameters
Collection of TraitByLanguageName | Description | Type | Additional information |
---|---|---|---|
TraitName | string |
None. |
|
TraitDescription | string |
None. |
|
ValueSetType | string |
None. |
|
ValueSetId | integer |
None. |
|
TraitId | integer |
None. |
|
CropCode | string |
None. |
|
LanguageCulture | string |
None. |
|
Description | string |
None. |
|
LastMaintenanceName | string |
None. |
|
LastMaintenanceDate | date |
None. |
|
ChangeTracker | ObjectChangeTracker |
None. |
Request Formats
application/json, text/json
Sample:
[ { "$id": "1", "TraitName": "sample string 1", "TraitDescription": "sample string 2", "ValueSetType": "sample string 3", "ValueSetId": 1, "TraitId": 4, "CropCode": "sample string 5", "LanguageCulture": "sample string 6", "Description": "sample string 7", "LastMaintenanceName": "sample string 8", "LastMaintenanceDate": "2024-12-10T05:24:35.3204532+00:00", "ChangeTracker": { "$id": "2", "State": 2, "ObjectsRemovedFromCollectionProperties": {}, "OriginalValues": {}, "ExtendedProperties": {}, "ObjectsAddedToCollectionProperties": {} } }, { "$ref": "1" } ]
application/xml, text/xml
Sample:
<ArrayOfTraitByLanguage xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Pioneer.Trials.Domain.Model"> <TraitByLanguage z:Id="i1" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/"> <ChangeTracker z:Id="i2"> <ExtendedProperties /> <ObjectsAddedToCollectionProperties /> <ObjectsRemovedFromCollectionProperties /> <OriginalValues /> <State>Added</State> </ChangeTracker> <CropCode>sample string 5</CropCode> <Description>sample string 7</Description> <LanguageCulture>sample string 6</LanguageCulture> <LastMaintenanceDate>2024-12-10T05:24:35.3204532+00:00</LastMaintenanceDate> <LastMaintenanceName>sample string 8</LastMaintenanceName> <TraitDescription>sample string 2</TraitDescription> <TraitId>4</TraitId> <TraitName>sample string 1</TraitName> <ValueSetId>1</ValueSetId> <ValueSetType>sample string 3</ValueSetType> </TraitByLanguage> <TraitByLanguage z:Ref="i1" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/" /> </ArrayOfTraitByLanguage>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Collection of TraitByLanguageName | Description | Type | Additional information |
---|---|---|---|
TraitName | string |
None. |
|
TraitDescription | string |
None. |
|
ValueSetType | string |
None. |
|
ValueSetId | integer |
None. |
|
TraitId | integer |
None. |
|
CropCode | string |
None. |
|
LanguageCulture | string |
None. |
|
Description | string |
None. |
|
LastMaintenanceName | string |
None. |
|
LastMaintenanceDate | date |
None. |
|
ChangeTracker | ObjectChangeTracker |
None. |
Response Formats
application/json, text/json
Sample:
[ { "$id": "1", "TraitName": "sample string 1", "TraitDescription": "sample string 2", "ValueSetType": "sample string 3", "ValueSetId": 1, "TraitId": 4, "CropCode": "sample string 5", "LanguageCulture": "sample string 6", "Description": "sample string 7", "LastMaintenanceName": "sample string 8", "LastMaintenanceDate": "2024-12-10T05:24:35.477376+00:00", "ChangeTracker": { "$id": "2", "State": 2, "ObjectsRemovedFromCollectionProperties": {}, "OriginalValues": {}, "ExtendedProperties": {}, "ObjectsAddedToCollectionProperties": {} } }, { "$ref": "1" } ]
application/xml, text/xml
Sample:
<ArrayOfTraitByLanguage xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Pioneer.Trials.Domain.Model"> <TraitByLanguage z:Id="i1" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/"> <ChangeTracker z:Id="i2"> <ExtendedProperties /> <ObjectsAddedToCollectionProperties /> <ObjectsRemovedFromCollectionProperties /> <OriginalValues /> <State>Added</State> </ChangeTracker> <CropCode>sample string 5</CropCode> <Description>sample string 7</Description> <LanguageCulture>sample string 6</LanguageCulture> <LastMaintenanceDate>2024-12-10T05:24:35.477376+00:00</LastMaintenanceDate> <LastMaintenanceName>sample string 8</LastMaintenanceName> <TraitDescription>sample string 2</TraitDescription> <TraitId>4</TraitId> <TraitName>sample string 1</TraitName> <ValueSetId>1</ValueSetId> <ValueSetType>sample string 3</ValueSetType> </TraitByLanguage> <TraitByLanguage z:Ref="i1" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/" /> </ArrayOfTraitByLanguage>