PUT api/v2/sampletypes/{sampleTypeId}
Request
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
sampleTypeId | integer |
Required |
Body Parameters
SampleTypeUpdateName | Description | Type | Additional information |
---|---|---|---|
Id | integer | ||
Identification | string | ||
Active | boolean | ||
ReferenceKey | string | ||
RequireTakenDateTime | boolean | ||
RequireAccount | boolean | ||
CompatiblewithAllMethodsOfAnalysis | boolean | ||
Available | boolean | ||
SampleClassId | integer | ||
SampleTypeParentId | integer | ||
InitialStatusId | integer | ||
SamplePublishTypeId | integer | ||
SampleReasonId | integer | ||
SampleIdentification | string | ||
Infos | DeltaOfSampleTypeInfoNewAndSampleTypeInfoUpdate |
Request Formats
application/json, text/json
Sample:
{ "Id": 1, "Identification": "sample string 2", "Active": true, "ReferenceKey": "sample string 4", "RequireTakenDateTime": true, "RequireAccount": true, "CompatiblewithAllMethodsOfAnalysis": true, "Available": true, "SampleClassId": 1, "SampleTypeParentId": 1, "InitialStatusId": 1, "SamplePublishTypeId": 1, "SampleReasonId": 1, "SampleIdentification": "sample string 9", "Infos": { "Inserted": [ { "InfoId": 1, "InfoTypeId": 2, "MeasurementUnitId": 1, "DisplayValue": "sample string 3", "ForceScale": 1, "ForceSignifDigits": 1, "ValueText": "sample string 4", "ValueInteger": 1, "ValueFloat": 1.1, "ValueDateTime": "2025-08-04T18:39:27.7716671Z", "ValueBoolean": true, "ValueAccountId": 1, "DependentInfoId": 1, "Inherited": true, "RequiredValue": true, "Order": 7, "InfoGroupId": 1, "ReadOnlyValue": true }, { "InfoId": 1, "InfoTypeId": 2, "MeasurementUnitId": 1, "DisplayValue": "sample string 3", "ForceScale": 1, "ForceSignifDigits": 1, "ValueText": "sample string 4", "ValueInteger": 1, "ValueFloat": 1.1, "ValueDateTime": "2025-08-04T18:39:27.7716671Z", "ValueBoolean": true, "ValueAccountId": 1, "DependentInfoId": 1, "Inherited": true, "RequiredValue": true, "Order": 7, "InfoGroupId": 1, "ReadOnlyValue": true } ], "Modified": [ { "Id": 1, "InfoId": 2, "InfoTypeId": 3, "MeasurementUnitId": 1, "DisplayValue": "sample string 4", "ForceScale": 1, "ForceSignifDigits": 1, "ValueText": "sample string 5", "ValueInteger": 1, "ValueFloat": 1.1, "ValueDateTime": "2025-08-04T18:39:27.7726667Z", "ValueBoolean": true, "ValueAccountId": 1, "DependentInfoId": 1, "Inherited": true, "RequiredValue": true, "Order": 8, "InfoGroupId": 1, "ReadOnlyValue": true }, { "Id": 1, "InfoId": 2, "InfoTypeId": 3, "MeasurementUnitId": 1, "DisplayValue": "sample string 4", "ForceScale": 1, "ForceSignifDigits": 1, "ValueText": "sample string 5", "ValueInteger": 1, "ValueFloat": 1.1, "ValueDateTime": "2025-08-04T18:39:27.7726667Z", "ValueBoolean": true, "ValueAccountId": 1, "DependentInfoId": 1, "Inherited": true, "RequiredValue": true, "Order": 8, "InfoGroupId": 1, "ReadOnlyValue": true } ], "Deleted": [ 1, 2 ] } }
text/html
Sample:
{"Id":1,"Identification":"sample string 2","Active":true,"ReferenceKey":"sample string 4","RequireTakenDateTime":true,"RequireAccount":true,"CompatiblewithAllMethodsOfAnalysis":true,"Available":true,"SampleClassId":1,"SampleTypeParentId":1,"InitialStatusId":1,"SamplePublishTypeId":1,"SampleReasonId":1,"SampleIdentification":"sample string 9","Infos":{"Inserted":[{"InfoId":1,"InfoTypeId":2,"MeasurementUnitId":1,"DisplayValue":"sample string 3","ForceScale":1,"ForceSignifDigits":1,"ValueText":"sample string 4","ValueInteger":1,"ValueFloat":1.1,"ValueDateTime":"2025-08-04T18:39:27.7716671Z","ValueBoolean":true,"ValueAccountId":1,"DependentInfoId":1,"Inherited":true,"RequiredValue":true,"Order":7,"InfoGroupId":1,"ReadOnlyValue":true},{"InfoId":1,"InfoTypeId":2,"MeasurementUnitId":1,"DisplayValue":"sample string 3","ForceScale":1,"ForceSignifDigits":1,"ValueText":"sample string 4","ValueInteger":1,"ValueFloat":1.1,"ValueDateTime":"2025-08-04T18:39:27.7716671Z","ValueBoolean":true,"ValueAccountId":1,"DependentInfoId":1,"Inherited":true,"RequiredValue":true,"Order":7,"InfoGroupId":1,"ReadOnlyValue":true}],"Modified":[{"Id":1,"InfoId":2,"InfoTypeId":3,"MeasurementUnitId":1,"DisplayValue":"sample string 4","ForceScale":1,"ForceSignifDigits":1,"ValueText":"sample string 5","ValueInteger":1,"ValueFloat":1.1,"ValueDateTime":"2025-08-04T18:39:27.7726667Z","ValueBoolean":true,"ValueAccountId":1,"DependentInfoId":1,"Inherited":true,"RequiredValue":true,"Order":8,"InfoGroupId":1,"ReadOnlyValue":true},{"Id":1,"InfoId":2,"InfoTypeId":3,"MeasurementUnitId":1,"DisplayValue":"sample string 4","ForceScale":1,"ForceSignifDigits":1,"ValueText":"sample string 5","ValueInteger":1,"ValueFloat":1.1,"ValueDateTime":"2025-08-04T18:39:27.7726667Z","ValueBoolean":true,"ValueAccountId":1,"DependentInfoId":1,"Inherited":true,"RequiredValue":true,"Order":8,"InfoGroupId":1,"ReadOnlyValue":true}],"Deleted":[1,2]}}
Response
IHttpActionResultResponse Format
application/json, text/json, text/html
Sample:
Sample not available.