POST Measurements
Creates a new measurement.
Request Information
URI Parameters
None.
Body Parameters
The measurement to create. MeasurementId should not be filled in.
MeasurementName | Description | Type | Additional information |
---|---|---|---|
MeasurementId | globally unique identifier |
None. |
|
Asset | Asset |
None. |
|
ValueText | string |
None. |
|
DisplayText | string |
None. |
|
EffectiveDate | date |
None. |
|
Location | string |
None. |
|
MeasurementType | MeasurementType |
None. |
|
IsValid | boolean |
None. |
|
IsValidMessage | string |
None. |
|
SourceSystemId | string |
None. |
|
CompanyId | globally unique identifier |
None. |
|
CreateDate | date |
None. |
|
CreateUser | string |
None. |
|
LastModifiedDate | date |
None. |
|
LastModifiedUser | string |
None. |
Request Formats
application/json, text/json
Sample:
{ "MeasurementId": "2fc45dfd-17b3-4dd1-8a31-cef52f6361df", "Asset": { "AssetId": "7e9606c4-bc10-4171-9aab-51645a84c487", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "0ce30737-db7c-4200-aa03-d760071adf26", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "4065c0bc-f868-41d2-aafb-46d8100e80bb", "CreateDate": "2024-12-08T17:40:47.4342247-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-12-08T17:40:47.4342247-08:00", "LastModifiedUser": "sample string 7" }, "AssetGroup": { "AssetGroupId": "96e11316-025b-4301-b72b-b75ccfd0b550", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2024-12-08T17:40:47.4342247-08:00", "MeasurementValueNeededDate": "2024-12-08T17:40:47.4342247-08:00", "SourceSystemId": "sample string 3", "CompanyId": "e8da0fa2-8241-4739-9d57-372a9674ec0e", "CreateDate": "2024-12-08T17:40:47.4342247-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-12-08T17:40:47.4342247-08:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "FormValueNeededDate": "2024-12-08T17:40:47.4342247-08:00", "MeasurementValueNeededDate": "2024-12-08T17:40:47.4342247-08:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "8b6c3c95-e952-48f3-9d4c-397262c8f624", "CreateDate": "2024-12-08T17:40:47.4342247-08:00", "CreateUser": "sample string 7", "LastModifiedDate": "2024-12-08T17:40:47.4342247-08:00", "LastModifiedUser": "sample string 8" }, "ValueText": "sample string 1", "DisplayText": "sample string 2", "EffectiveDate": "2024-12-08T17:40:47.4342247-08:00", "Location": "sample string 3", "MeasurementType": { "MeasurementTypeId": "2997662c-faf5-419d-bf08-d5213eafb45b", "Name": "sample string 1", "Description": "sample string 2", "AssetType": { "AssetTypeId": "0ce30737-db7c-4200-aa03-d760071adf26", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "4065c0bc-f868-41d2-aafb-46d8100e80bb", "CreateDate": "2024-12-08T17:40:47.4342247-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-12-08T17:40:47.4342247-08:00", "LastModifiedUser": "sample string 7" }, "DataType": { "DataTypeId": "ea77319f-39d1-4b0a-a40c-e03421ef43e8", "Name": "sample string 1" }, "Unit": { "UnitId": "7539efcf-cab5-42bf-939b-3c3acaf6a647", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "72ece1cb-30d8-4a1f-a03e-78d9a3ac3c75", "CreateDate": "2024-12-08T17:40:47.4342247-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-12-08T17:40:47.4342247-08:00", "LastModifiedUser": "sample string 6" }, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "08389d46-c3da-443a-b5a2-8340d8adf13a", "FieldId": "aa38cd52-f5b0-4d9b-bf44-0768c407c0bf", "FieldName": "sample string 1", "FieldLabel": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "08389d46-c3da-443a-b5a2-8340d8adf13a", "FieldId": "aa38cd52-f5b0-4d9b-bf44-0768c407c0bf", "FieldName": "sample string 1", "FieldLabel": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" } ], "FrequencyNeeded": 1, "ValueNeededDate": "2024-12-08T17:40:47.4342247-08:00", "IsAccumulator": true, "SourceSystemId": "sample string 5", "CompanyId": "cb60fe35-c811-4cbe-9cab-b96622e0b08b", "CreateDate": "2024-12-08T17:40:47.4342247-08:00", "CreateUser": "sample string 7", "LastModifiedDate": "2024-12-08T17:40:47.4342247-08:00", "LastModifiedUser": "sample string 8" }, "IsValid": true, "IsValidMessage": "sample string 5", "SourceSystemId": "sample string 6", "CompanyId": "bc415f64-2681-40ed-9081-6c545a84c888", "CreateDate": "2024-12-08T17:40:47.4342247-08:00", "CreateUser": "sample string 8", "LastModifiedDate": "2024-12-08T17:40:47.4342247-08:00", "LastModifiedUser": "sample string 9" }
Response Information
Resource Description
On success, the created measurement.
Name | Description | Type | Additional information |
---|---|---|---|
Data | Measurement |
None. |
|
Total | integer |
None. |
|
Message | string |
None. |
Response Formats
application/json, text/json
Sample:
{ "Data": { "MeasurementId": "d1bfa132-2031-4ec2-a9bf-ac416c3aa091", "Asset": { "AssetId": "02b54378-981e-4b0a-9fa1-353e0a76f92b", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "eb623a8c-d106-44f3-9d93-52736e7d1ecb", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "12308d96-7a61-4d9e-a31d-cc56d20b6f06", "CreateDate": "2024-12-08T17:40:47.4342247-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-12-08T17:40:47.4342247-08:00", "LastModifiedUser": "sample string 7" }, "AssetGroup": { "AssetGroupId": "16b8fceb-4b2c-40bf-9ba1-00d106e81036", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2024-12-08T17:40:47.4342247-08:00", "MeasurementValueNeededDate": "2024-12-08T17:40:47.4342247-08:00", "SourceSystemId": "sample string 3", "CompanyId": "f4afb1aa-6ab8-4af2-a344-44beefebb629", "CreateDate": "2024-12-08T17:40:47.4342247-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-12-08T17:40:47.4342247-08:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "FormValueNeededDate": "2024-12-08T17:40:47.4342247-08:00", "MeasurementValueNeededDate": "2024-12-08T17:40:47.4342247-08:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "f420c02b-fa99-4226-a807-781e770d6f8e", "CreateDate": "2024-12-08T17:40:47.4342247-08:00", "CreateUser": "sample string 7", "LastModifiedDate": "2024-12-08T17:40:47.4342247-08:00", "LastModifiedUser": "sample string 8" }, "ValueText": "sample string 1", "DisplayText": "sample string 2", "EffectiveDate": "2024-12-08T17:40:47.4342247-08:00", "Location": "sample string 3", "MeasurementType": { "MeasurementTypeId": "8e1a29e0-6efe-403b-aecb-666670f1a712", "Name": "sample string 1", "Description": "sample string 2", "AssetType": { "AssetTypeId": "eb623a8c-d106-44f3-9d93-52736e7d1ecb", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "12308d96-7a61-4d9e-a31d-cc56d20b6f06", "CreateDate": "2024-12-08T17:40:47.4342247-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-12-08T17:40:47.4342247-08:00", "LastModifiedUser": "sample string 7" }, "DataType": { "DataTypeId": "0588c5cd-9836-4dfd-8383-e49743a95b1b", "Name": "sample string 1" }, "Unit": { "UnitId": "52a3f195-73f7-4bd8-bc6b-65dcd677c872", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "885d8924-42dc-4494-a06d-dadc3d5194e3", "CreateDate": "2024-12-08T17:40:47.4342247-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-12-08T17:40:47.4342247-08:00", "LastModifiedUser": "sample string 6" }, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "39ef54ba-e58a-456b-9add-c641cd6cd726", "FieldId": "8581e30d-8819-4f90-ad1d-2f1d8798bf72", "FieldName": "sample string 1", "FieldLabel": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "39ef54ba-e58a-456b-9add-c641cd6cd726", "FieldId": "8581e30d-8819-4f90-ad1d-2f1d8798bf72", "FieldName": "sample string 1", "FieldLabel": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" } ], "FrequencyNeeded": 1, "ValueNeededDate": "2024-12-08T17:40:47.4342247-08:00", "IsAccumulator": true, "SourceSystemId": "sample string 5", "CompanyId": "96a985af-d07f-42b4-9f80-b86df1b9b557", "CreateDate": "2024-12-08T17:40:47.4342247-08:00", "CreateUser": "sample string 7", "LastModifiedDate": "2024-12-08T17:40:47.4342247-08:00", "LastModifiedUser": "sample string 8" }, "IsValid": true, "IsValidMessage": "sample string 5", "SourceSystemId": "sample string 6", "CompanyId": "b788b509-c851-4b75-b77b-bbea3f31969e", "CreateDate": "2024-12-08T17:40:47.4342247-08:00", "CreateUser": "sample string 8", "LastModifiedDate": "2024-12-08T17:40:47.4342247-08:00", "LastModifiedUser": "sample string 9" }, "Total": 1, "Message": "sample string 1" }