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.
MeasurementType| Name | 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": "948e0f6e-e9b4-44f2-9d93-d73d8631db5c",
"Name": "sample string 1",
"Description": "sample string 2",
"AssetType": {
"AssetTypeId": "aab319e0-80ec-4b48-86b6-4b60270c05cc",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayColor": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "22aa7120-52b8-4592-a537-100262a6dc5c",
"CreateDate": "2026-08-05T17:35:16.4459148-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-08-05T17:35:16.4459148-07:00",
"LastModifiedUser": "sample string 7"
},
"DataType": {
"DataTypeId": "ba2543d9-54b3-4bd4-bc2e-2016dfe6688f",
"Name": "sample string 1"
},
"Unit": {
"UnitId": "33dd8f22-7556-481d-8d3e-50a07f5a3c13",
"Code": "sample string 1",
"Description": "sample string 2",
"SourceSystemId": "sample string 3",
"CompanyId": "fb51c0c2-3e2c-4f57-a9c4-350889b181bb",
"CreateDate": "2026-08-05T17:35:16.4459148-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-08-05T17:35:16.4459148-07:00",
"LastModifiedUser": "sample string 6"
},
"MinValue": 1.0,
"MaxValue": 1.0,
"MinLength": 1,
"MaxLength": 1,
"HasValidValues": true,
"ValidValues": [
{
"ValidValueId": "23d5f51a-2a31-473a-a6a1-00f1657d9b94",
"FieldId": "43beb40a-589f-4bc8-bc68-bfd22fd353c9",
"FieldName": "sample string 1",
"FieldLabel": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
},
{
"ValidValueId": "23d5f51a-2a31-473a-a6a1-00f1657d9b94",
"FieldId": "43beb40a-589f-4bc8-bc68-bfd22fd353c9",
"FieldName": "sample string 1",
"FieldLabel": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
}
],
"FrequencyNeeded": 1,
"ValueNeededDate": "2026-08-05T17:35:16.4459148-07:00",
"IsAccumulator": true,
"SourceSystemId": "sample string 5",
"CompanyId": "828cea1f-ff2e-4227-8300-efef114ea281",
"CreateDate": "2026-08-05T17:35:16.4459148-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-08-05T17:35:16.4459148-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": "70cd1443-a091-4a08-acbb-4640c296e68d",
"Name": "sample string 1",
"Description": "sample string 2",
"AssetType": {
"AssetTypeId": "387541a4-b346-4dab-839f-74de2f4c913c",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayColor": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "75e05348-bd2e-4055-b63d-6eb8d5635e57",
"CreateDate": "2026-08-05T17:35:16.4459148-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-08-05T17:35:16.4459148-07:00",
"LastModifiedUser": "sample string 7"
},
"DataType": {
"DataTypeId": "2c22d8ab-593b-4d3b-ab34-7cd6921e776e",
"Name": "sample string 1"
},
"Unit": {
"UnitId": "9744de0c-057b-4f6e-bbac-bd09f1282e3d",
"Code": "sample string 1",
"Description": "sample string 2",
"SourceSystemId": "sample string 3",
"CompanyId": "4f14d0df-39ca-4afe-932c-0802ac952a27",
"CreateDate": "2026-08-05T17:35:16.4459148-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-08-05T17:35:16.4459148-07:00",
"LastModifiedUser": "sample string 6"
},
"MinValue": 1.0,
"MaxValue": 1.0,
"MinLength": 1,
"MaxLength": 1,
"HasValidValues": true,
"ValidValues": [
{
"ValidValueId": "91aeb241-e4da-45de-abfd-fe5a40bc4eb8",
"FieldId": "44d9d7c6-4a72-4b69-b4ca-065bbd8c8c7f",
"FieldName": "sample string 1",
"FieldLabel": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
},
{
"ValidValueId": "91aeb241-e4da-45de-abfd-fe5a40bc4eb8",
"FieldId": "44d9d7c6-4a72-4b69-b4ca-065bbd8c8c7f",
"FieldName": "sample string 1",
"FieldLabel": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
}
],
"FrequencyNeeded": 1,
"ValueNeededDate": "2026-08-05T17:35:16.4459148-07:00",
"IsAccumulator": true,
"SourceSystemId": "sample string 5",
"CompanyId": "6965de16-c33a-45b0-ae24-aee76bd581c2",
"CreateDate": "2026-08-05T17:35:16.4459148-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-08-05T17:35:16.4459148-07:00",
"LastModifiedUser": "sample string 8"
},
"Total": 1,
"Message": "sample string 1"
}