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": "64d2ca80-b3d0-4571-9400-6d45c64b09a1", "Asset": { "AssetId": "380984b5-c6d0-4c5b-af8d-d37dcf4a6f80", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "fafe866b-868f-4c5b-a366-ce55e15ad6c0", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "129606db-b939-4d6b-8001-33a11e473a8a", "CreateDate": "2024-11-21T04:37:56.4781078-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-11-21T04:37:56.4781078-08:00", "LastModifiedUser": "sample string 7" }, "AssetGroup": { "AssetGroupId": "b8ab83a9-46f2-4a8a-a606-fcd9c1439b7f", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2024-11-21T04:37:56.4781078-08:00", "MeasurementValueNeededDate": "2024-11-21T04:37:56.4781078-08:00", "SourceSystemId": "sample string 3", "CompanyId": "079ea237-8415-4072-a96b-9eae69cca3a2", "CreateDate": "2024-11-21T04:37:56.4781078-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-11-21T04:37:56.4781078-08:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "FormValueNeededDate": "2024-11-21T04:37:56.4781078-08:00", "MeasurementValueNeededDate": "2024-11-21T04:37:56.4781078-08:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "2a121cdd-ecf2-4118-8bd4-03a7a869c95f", "CreateDate": "2024-11-21T04:37:56.4781078-08:00", "CreateUser": "sample string 7", "LastModifiedDate": "2024-11-21T04:37:56.4781078-08:00", "LastModifiedUser": "sample string 8" }, "ValueText": "sample string 1", "DisplayText": "sample string 2", "EffectiveDate": "2024-11-21T04:37:56.4781078-08:00", "Location": "sample string 3", "MeasurementType": { "MeasurementTypeId": "ee170af3-6c07-43cb-9fcd-e9c4a397e40b", "Name": "sample string 1", "Description": "sample string 2", "AssetType": { "AssetTypeId": "fafe866b-868f-4c5b-a366-ce55e15ad6c0", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "129606db-b939-4d6b-8001-33a11e473a8a", "CreateDate": "2024-11-21T04:37:56.4781078-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-11-21T04:37:56.4781078-08:00", "LastModifiedUser": "sample string 7" }, "DataType": { "DataTypeId": "3650fb6e-b787-43f9-8b7d-d68a2c4ab21a", "Name": "sample string 1" }, "Unit": { "UnitId": "d4df44a4-c64a-4bd0-a75c-3f578858dc1e", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "f19ec157-5c8c-4257-b7ed-facea9da9042", "CreateDate": "2024-11-21T04:37:56.4781078-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-11-21T04:37:56.4781078-08:00", "LastModifiedUser": "sample string 6" }, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "b286af8a-1ec9-42ee-904b-a9bab70b0cc2", "FieldId": "cb9b3bcf-cef6-4795-81fd-66cfa0334183", "FieldName": "sample string 1", "FieldLabel": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "b286af8a-1ec9-42ee-904b-a9bab70b0cc2", "FieldId": "cb9b3bcf-cef6-4795-81fd-66cfa0334183", "FieldName": "sample string 1", "FieldLabel": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" } ], "FrequencyNeeded": 1, "ValueNeededDate": "2024-11-21T04:37:56.4781078-08:00", "IsAccumulator": true, "SourceSystemId": "sample string 5", "CompanyId": "20ee496d-487d-480c-bc42-b2b22236735b", "CreateDate": "2024-11-21T04:37:56.4781078-08:00", "CreateUser": "sample string 7", "LastModifiedDate": "2024-11-21T04:37:56.4781078-08:00", "LastModifiedUser": "sample string 8" }, "IsValid": true, "IsValidMessage": "sample string 5", "SourceSystemId": "sample string 6", "CompanyId": "ca593f16-1525-47c0-953b-476cfed5f243", "CreateDate": "2024-11-21T04:37:56.4781078-08:00", "CreateUser": "sample string 8", "LastModifiedDate": "2024-11-21T04:37:56.4781078-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": "4ed84b7d-ef8d-42fe-bd9d-e8d95407ee2d", "Asset": { "AssetId": "152ee8f2-94a1-4957-9ef5-0bf48d76db95", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "6d6e4054-af4d-4136-b64d-fe64e6b0cf5d", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "989a3c9b-3fd8-4ceb-826d-6c27d3e3f923", "CreateDate": "2024-11-21T04:37:56.4781078-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-11-21T04:37:56.4781078-08:00", "LastModifiedUser": "sample string 7" }, "AssetGroup": { "AssetGroupId": "1258a57e-f9bc-4055-a5e9-c2b62e9ab7b8", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2024-11-21T04:37:56.4781078-08:00", "MeasurementValueNeededDate": "2024-11-21T04:37:56.4781078-08:00", "SourceSystemId": "sample string 3", "CompanyId": "8d7ad3dc-5763-40d3-8b17-b7c64c091ce0", "CreateDate": "2024-11-21T04:37:56.4781078-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-11-21T04:37:56.4781078-08:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "FormValueNeededDate": "2024-11-21T04:37:56.4781078-08:00", "MeasurementValueNeededDate": "2024-11-21T04:37:56.4781078-08:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "fb939fa1-ff27-443a-96ca-b67f6f91325a", "CreateDate": "2024-11-21T04:37:56.4781078-08:00", "CreateUser": "sample string 7", "LastModifiedDate": "2024-11-21T04:37:56.4781078-08:00", "LastModifiedUser": "sample string 8" }, "ValueText": "sample string 1", "DisplayText": "sample string 2", "EffectiveDate": "2024-11-21T04:37:56.4781078-08:00", "Location": "sample string 3", "MeasurementType": { "MeasurementTypeId": "e577c0fe-2350-484a-81f8-da6112e3ba4b", "Name": "sample string 1", "Description": "sample string 2", "AssetType": { "AssetTypeId": "6d6e4054-af4d-4136-b64d-fe64e6b0cf5d", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "989a3c9b-3fd8-4ceb-826d-6c27d3e3f923", "CreateDate": "2024-11-21T04:37:56.4781078-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-11-21T04:37:56.4781078-08:00", "LastModifiedUser": "sample string 7" }, "DataType": { "DataTypeId": "f3439a18-fdf0-49bf-a3c4-70de00925412", "Name": "sample string 1" }, "Unit": { "UnitId": "d3ff09ae-54e5-481e-a03c-c802c6fb86ef", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "aa53142d-72e9-458f-9acf-756be6f97253", "CreateDate": "2024-11-21T04:37:56.4781078-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-11-21T04:37:56.4781078-08:00", "LastModifiedUser": "sample string 6" }, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "62122d5b-6913-4f6a-80d3-e52475422cfe", "FieldId": "ce95f0c7-a7ad-46c2-afa1-c2c2e844ca17", "FieldName": "sample string 1", "FieldLabel": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "62122d5b-6913-4f6a-80d3-e52475422cfe", "FieldId": "ce95f0c7-a7ad-46c2-afa1-c2c2e844ca17", "FieldName": "sample string 1", "FieldLabel": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" } ], "FrequencyNeeded": 1, "ValueNeededDate": "2024-11-21T04:37:56.4781078-08:00", "IsAccumulator": true, "SourceSystemId": "sample string 5", "CompanyId": "c5b904e1-7c4a-41a9-a1a7-2aacabcdf170", "CreateDate": "2024-11-21T04:37:56.4781078-08:00", "CreateUser": "sample string 7", "LastModifiedDate": "2024-11-21T04:37:56.4781078-08:00", "LastModifiedUser": "sample string 8" }, "IsValid": true, "IsValidMessage": "sample string 5", "SourceSystemId": "sample string 6", "CompanyId": "fc302c91-5577-4411-b6af-2863eb39ccb9", "CreateDate": "2024-11-21T04:37:56.4781078-08:00", "CreateUser": "sample string 8", "LastModifiedDate": "2024-11-21T04:37:56.4781078-08:00", "LastModifiedUser": "sample string 9" }, "Total": 1, "Message": "sample string 1" }