POST MeasurementTypes
Creates a new measurement type.
Request Information
URI Parameters
None.
Body Parameters
The measurement type to create. MeasurementTypeId should not be filled in.
MeasurementTypeName | Description | Type | Additional information |
---|---|---|---|
MeasurementTypeId | globally unique identifier |
None. |
|
Name | string |
None. |
|
Description | string |
None. |
|
AssetType | AssetType |
None. |
|
DataType | DataType |
None. |
|
Unit | Unit |
None. |
|
MinValue | decimal number |
None. |
|
MaxValue | decimal number |
None. |
|
MinLength | integer |
None. |
|
MaxLength | integer |
None. |
|
HasValidValues | boolean |
None. |
|
ValidValues | Collection of ValidValue |
None. |
|
FrequencyNeeded | integer |
None. |
|
ValueNeededDate | date |
None. |
|
IsAccumulator | boolean |
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:
{ "MeasurementTypeId": "46847e62-0f4f-46dc-b270-f92ab86ff96e", "Name": "sample string 1", "Description": "sample string 2", "AssetType": { "AssetTypeId": "1dd6568e-f8ed-4f58-9841-419d1a46d96c", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "7017ade0-1ddc-48bf-be5f-3f2b80cda1cc", "CreateDate": "2025-07-14T13:42:23.5835502-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-07-14T13:42:23.5835502-07:00", "LastModifiedUser": "sample string 8" }, "DataType": { "DataTypeId": "c247d6ca-d5b2-46fc-b6cb-f017a6446947", "Name": "sample string 1" }, "Unit": { "UnitId": "9a35d7a3-d202-4111-9d28-77573d44dbad", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "4c39abf0-d10c-42ad-96b0-f2d3fd110ebc", "CreateDate": "2025-07-14T13:42:23.5835502-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-07-14T13:42:23.5835502-07:00", "LastModifiedUser": "sample string 6" }, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "12c1d3ca-a943-41b1-a3c4-c07dc8334218", "FieldId": "40fe74af-5654-4340-bdf3-c786a5dde3ad", "FieldName": "sample string 1", "FieldLable": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "12c1d3ca-a943-41b1-a3c4-c07dc8334218", "FieldId": "40fe74af-5654-4340-bdf3-c786a5dde3ad", "FieldName": "sample string 1", "FieldLable": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" } ], "FrequencyNeeded": 1, "ValueNeededDate": "2025-07-14T13:42:23.5835502-07:00", "IsAccumulator": true, "SourceSystemId": "sample string 5", "CompanyId": "f2755bcf-cbf3-4867-908c-946b7971b21d", "CreateDate": "2025-07-14T13:42:23.5835502-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-07-14T13:42:23.5835502-07:00", "LastModifiedUser": "sample string 8" }
Response Information
Resource Description
On success, the created measurement type.
Name | Description | Type | Additional information |
---|---|---|---|
Data | MeasurementType |
None. |
|
Total | integer |
None. |
|
Message | string |
None. |
Response Formats
application/json, text/json
Sample:
{ "Data": { "MeasurementTypeId": "b8a03fb2-2209-4371-87b6-a0527234870e", "Name": "sample string 1", "Description": "sample string 2", "AssetType": { "AssetTypeId": "bba47f6d-09da-4197-9c8f-8f0522b4f63d", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "b22743f3-c00d-4057-b033-c3063a4936a7", "CreateDate": "2025-07-14T13:42:23.5835502-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-07-14T13:42:23.5835502-07:00", "LastModifiedUser": "sample string 8" }, "DataType": { "DataTypeId": "8f4ee6c2-0ef4-417a-be34-365b824496b0", "Name": "sample string 1" }, "Unit": { "UnitId": "4eaedc84-c040-4074-826c-41ef7eb76cde", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "d38ff28d-a399-4985-b6ed-72cd33bf0d31", "CreateDate": "2025-07-14T13:42:23.5835502-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-07-14T13:42:23.5835502-07:00", "LastModifiedUser": "sample string 6" }, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "2390bbd6-230f-4d87-a66f-93877d7bbbf7", "FieldId": "05b7b70f-657a-42be-abdd-38e4a6bcc13c", "FieldName": "sample string 1", "FieldLable": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "2390bbd6-230f-4d87-a66f-93877d7bbbf7", "FieldId": "05b7b70f-657a-42be-abdd-38e4a6bcc13c", "FieldName": "sample string 1", "FieldLable": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" } ], "FrequencyNeeded": 1, "ValueNeededDate": "2025-07-14T13:42:23.5835502-07:00", "IsAccumulator": true, "SourceSystemId": "sample string 5", "CompanyId": "f76f9fd6-da1e-4c64-bfed-993b4dc8e8df", "CreateDate": "2025-07-14T13:42:23.5835502-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-07-14T13:42:23.5835502-07:00", "LastModifiedUser": "sample string 8" }, "Total": 1, "Message": "sample string 1" }