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": "a79a6fdc-0162-4d72-875e-d2c580d1f9b3",
"Name": "sample string 1",
"Description": "sample string 2",
"AssetType": {
"AssetTypeId": "b80df10b-d8d2-45ab-987d-cea0059085cb",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayColor": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "572d716e-b7c1-4eea-a234-f91565d45f9a",
"CreateDate": "2026-08-17T19:16:20.7080366-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-08-17T19:16:20.7080366-07:00",
"LastModifiedUser": "sample string 7"
},
"DataType": {
"DataTypeId": "d8d61622-38ac-452f-8c95-bf6ae4cc984f",
"Name": "sample string 1"
},
"Unit": {
"UnitId": "ba52c35d-ca95-4bdb-8e62-acccbcee14a0",
"Code": "sample string 1",
"Description": "sample string 2",
"SourceSystemId": "sample string 3",
"CompanyId": "601e9c51-57db-4eca-b027-d56d4731866d",
"CreateDate": "2026-08-17T19:16:20.7080366-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-08-17T19:16:20.7080366-07:00",
"LastModifiedUser": "sample string 6"
},
"MinValue": 1.0,
"MaxValue": 1.0,
"MinLength": 1,
"MaxLength": 1,
"HasValidValues": true,
"ValidValues": [
{
"ValidValueId": "cbec5b50-8f82-41a2-99cd-0af45b5b2802",
"FieldId": "ed83f531-4fcf-420b-934c-ae1be8ef62ff",
"FieldName": "sample string 1",
"FieldLabel": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
},
{
"ValidValueId": "cbec5b50-8f82-41a2-99cd-0af45b5b2802",
"FieldId": "ed83f531-4fcf-420b-934c-ae1be8ef62ff",
"FieldName": "sample string 1",
"FieldLabel": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
}
],
"FrequencyNeeded": 1,
"ValueNeededDate": "2026-08-17T19:16:20.7080366-07:00",
"IsAccumulator": true,
"SourceSystemId": "sample string 5",
"CompanyId": "ff9d91c8-d1bd-4612-8ea7-7e4ed2674f3a",
"CreateDate": "2026-08-17T19:16:20.7080366-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-08-17T19:16:20.7080366-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": "0abd68c8-c6af-45cd-a811-0e5651574f79",
"Name": "sample string 1",
"Description": "sample string 2",
"AssetType": {
"AssetTypeId": "0a9ed4c2-3cdc-41d0-9e12-b445166ab393",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayColor": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "7fc9b114-7794-4740-97bf-a8b0f5863026",
"CreateDate": "2026-08-17T19:16:20.7236349-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-08-17T19:16:20.7236349-07:00",
"LastModifiedUser": "sample string 7"
},
"DataType": {
"DataTypeId": "bc9498ac-be18-4a0c-af28-c832ee1d65b8",
"Name": "sample string 1"
},
"Unit": {
"UnitId": "42957d20-7549-4963-8119-4f21c8418c26",
"Code": "sample string 1",
"Description": "sample string 2",
"SourceSystemId": "sample string 3",
"CompanyId": "034e39fa-dcfa-4f6a-bd9a-3b1afdf0c43a",
"CreateDate": "2026-08-17T19:16:20.7236349-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-08-17T19:16:20.7236349-07:00",
"LastModifiedUser": "sample string 6"
},
"MinValue": 1.0,
"MaxValue": 1.0,
"MinLength": 1,
"MaxLength": 1,
"HasValidValues": true,
"ValidValues": [
{
"ValidValueId": "1af8e6c4-00ff-43e9-b18c-e5e46f40ad9b",
"FieldId": "417f4178-a286-4362-bf22-a681e97895c1",
"FieldName": "sample string 1",
"FieldLabel": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
},
{
"ValidValueId": "1af8e6c4-00ff-43e9-b18c-e5e46f40ad9b",
"FieldId": "417f4178-a286-4362-bf22-a681e97895c1",
"FieldName": "sample string 1",
"FieldLabel": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
}
],
"FrequencyNeeded": 1,
"ValueNeededDate": "2026-08-17T19:16:20.7236349-07:00",
"IsAccumulator": true,
"SourceSystemId": "sample string 5",
"CompanyId": "f1ea225c-1c37-4285-9a18-57c7b868ab42",
"CreateDate": "2026-08-17T19:16:20.7236349-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-08-17T19:16:20.7236349-07:00",
"LastModifiedUser": "sample string 8"
},
"Total": 1,
"Message": "sample string 1"
}