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": "7174663b-1609-4509-953a-84eabc033ce0",
"Name": "sample string 1",
"Description": "sample string 2",
"AssetType": {
"AssetTypeId": "ac3d7602-d2d9-47cc-9687-898f1d6e95bc",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayColor": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "f4aa01a6-f182-463a-bac1-83e6ca7277a8",
"CreateDate": "2026-08-11T20:49:02.8042426-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-08-11T20:49:02.8042426-07:00",
"LastModifiedUser": "sample string 7"
},
"DataType": {
"DataTypeId": "30167bac-b8e4-49f5-ae5e-c4f87b627279",
"Name": "sample string 1"
},
"Unit": {
"UnitId": "8bac374d-dddc-4aca-8fbc-f46c6472da21",
"Code": "sample string 1",
"Description": "sample string 2",
"SourceSystemId": "sample string 3",
"CompanyId": "6793ffc7-12aa-4ba8-a7ea-a0b0a3d9ea42",
"CreateDate": "2026-08-11T20:49:02.8042426-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-08-11T20:49:02.8042426-07:00",
"LastModifiedUser": "sample string 6"
},
"MinValue": 1.0,
"MaxValue": 1.0,
"MinLength": 1,
"MaxLength": 1,
"HasValidValues": true,
"ValidValues": [
{
"ValidValueId": "db8179f1-a3b3-443a-a0d9-cb5135442978",
"FieldId": "574c8952-df8c-446b-bd38-10db5ceea039",
"FieldName": "sample string 1",
"FieldLabel": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
},
{
"ValidValueId": "db8179f1-a3b3-443a-a0d9-cb5135442978",
"FieldId": "574c8952-df8c-446b-bd38-10db5ceea039",
"FieldName": "sample string 1",
"FieldLabel": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
}
],
"FrequencyNeeded": 1,
"ValueNeededDate": "2026-08-11T20:49:02.8042426-07:00",
"IsAccumulator": true,
"SourceSystemId": "sample string 5",
"CompanyId": "597131a3-b779-4b1e-9362-20c6a33b0326",
"CreateDate": "2026-08-11T20:49:02.8042426-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-08-11T20:49:02.8042426-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": "3a8cce24-fdef-410d-ae5f-5de083de3e35",
"Name": "sample string 1",
"Description": "sample string 2",
"AssetType": {
"AssetTypeId": "67e94ad2-20b0-4d31-a843-a8178ffa2abf",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayColor": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "3a3d022c-fde4-46cd-82d8-65674f5be5b4",
"CreateDate": "2026-08-11T20:49:02.8042426-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-08-11T20:49:02.8042426-07:00",
"LastModifiedUser": "sample string 7"
},
"DataType": {
"DataTypeId": "9c788b25-77d8-4fa3-a20c-38a9bdad02fa",
"Name": "sample string 1"
},
"Unit": {
"UnitId": "99f46875-04e3-4eae-90b9-2720fba2a608",
"Code": "sample string 1",
"Description": "sample string 2",
"SourceSystemId": "sample string 3",
"CompanyId": "70979621-0daa-406b-8982-881921e33049",
"CreateDate": "2026-08-11T20:49:02.8042426-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-08-11T20:49:02.8042426-07:00",
"LastModifiedUser": "sample string 6"
},
"MinValue": 1.0,
"MaxValue": 1.0,
"MinLength": 1,
"MaxLength": 1,
"HasValidValues": true,
"ValidValues": [
{
"ValidValueId": "03a60b14-2e33-480c-a4f4-711a5425e643",
"FieldId": "8fe658f4-85bc-4ea4-aea2-870fe053698a",
"FieldName": "sample string 1",
"FieldLabel": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
},
{
"ValidValueId": "03a60b14-2e33-480c-a4f4-711a5425e643",
"FieldId": "8fe658f4-85bc-4ea4-aea2-870fe053698a",
"FieldName": "sample string 1",
"FieldLabel": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
}
],
"FrequencyNeeded": 1,
"ValueNeededDate": "2026-08-11T20:49:02.8042426-07:00",
"IsAccumulator": true,
"SourceSystemId": "sample string 5",
"CompanyId": "19fbc311-8777-4927-bde0-3f2504bb1149",
"CreateDate": "2026-08-11T20:49:02.8042426-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-08-11T20:49:02.8042426-07:00",
"LastModifiedUser": "sample string 8"
},
"Total": 1,
"Message": "sample string 1"
}