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": "9f6fddf3-f05a-4012-b818-4ae34b212207",
"Name": "sample string 1",
"Description": "sample string 2",
"AssetType": {
"AssetTypeId": "e1fc3c7c-bcd3-46dc-9dd3-833a8837b5bb",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayColor": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "f0d49f48-abb2-483e-8ae9-f054a2dc6925",
"CreateDate": "2026-06-08T16:37:20.0838966-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-06-08T16:37:20.0838966-07:00",
"LastModifiedUser": "sample string 7"
},
"DataType": {
"DataTypeId": "7d6cc296-83db-4a14-b46d-affed9c480f3",
"Name": "sample string 1"
},
"Unit": {
"UnitId": "55834ea0-3da0-41af-914c-844d8d1d3923",
"Code": "sample string 1",
"Description": "sample string 2",
"SourceSystemId": "sample string 3",
"CompanyId": "19680027-6083-4a9c-9c0f-a4269a57474b",
"CreateDate": "2026-06-08T16:37:20.0838966-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-06-08T16:37:20.0838966-07:00",
"LastModifiedUser": "sample string 6"
},
"MinValue": 1.0,
"MaxValue": 1.0,
"MinLength": 1,
"MaxLength": 1,
"HasValidValues": true,
"ValidValues": [
{
"ValidValueId": "b7ec3299-ff60-4b5a-84c9-d8dc5954c6ee",
"FieldId": "4e3e4872-6b49-4be2-88fb-c66f14f93efe",
"FieldName": "sample string 1",
"FieldLabel": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
},
{
"ValidValueId": "b7ec3299-ff60-4b5a-84c9-d8dc5954c6ee",
"FieldId": "4e3e4872-6b49-4be2-88fb-c66f14f93efe",
"FieldName": "sample string 1",
"FieldLabel": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
}
],
"FrequencyNeeded": 1,
"ValueNeededDate": "2026-06-08T16:37:20.0838966-07:00",
"IsAccumulator": true,
"SourceSystemId": "sample string 5",
"CompanyId": "a6a6b285-77d0-40de-a5b0-dd7fc672cdc2",
"CreateDate": "2026-06-08T16:37:20.0838966-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-06-08T16:37:20.0838966-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": "9cf3267a-b95b-4a8f-b7f5-72364d44ffe7",
"Name": "sample string 1",
"Description": "sample string 2",
"AssetType": {
"AssetTypeId": "49250138-7d2c-43bd-bcd4-1e996c7a19a5",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayColor": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "e5941a29-1185-4882-81dd-2df6ba16b011",
"CreateDate": "2026-06-08T16:37:20.0838966-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-06-08T16:37:20.0838966-07:00",
"LastModifiedUser": "sample string 7"
},
"DataType": {
"DataTypeId": "8c9ad73d-2c77-49ff-903e-797da1fb2612",
"Name": "sample string 1"
},
"Unit": {
"UnitId": "810861ae-7509-4eeb-8447-7b356647e5f2",
"Code": "sample string 1",
"Description": "sample string 2",
"SourceSystemId": "sample string 3",
"CompanyId": "25ef33c1-835d-41fa-b64e-34d9524984ec",
"CreateDate": "2026-06-08T16:37:20.0838966-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-06-08T16:37:20.0838966-07:00",
"LastModifiedUser": "sample string 6"
},
"MinValue": 1.0,
"MaxValue": 1.0,
"MinLength": 1,
"MaxLength": 1,
"HasValidValues": true,
"ValidValues": [
{
"ValidValueId": "bf1ee72f-22e9-4e6f-96e1-a00a4e41db7c",
"FieldId": "0c3be823-9a98-401d-8aa6-3627d73b83cc",
"FieldName": "sample string 1",
"FieldLabel": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
},
{
"ValidValueId": "bf1ee72f-22e9-4e6f-96e1-a00a4e41db7c",
"FieldId": "0c3be823-9a98-401d-8aa6-3627d73b83cc",
"FieldName": "sample string 1",
"FieldLabel": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
}
],
"FrequencyNeeded": 1,
"ValueNeededDate": "2026-06-08T16:37:20.0838966-07:00",
"IsAccumulator": true,
"SourceSystemId": "sample string 5",
"CompanyId": "de920ce6-967d-4847-9591-a26d263f4cae",
"CreateDate": "2026-06-08T16:37:20.0838966-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-06-08T16:37:20.0838966-07:00",
"LastModifiedUser": "sample string 8"
},
"Total": 1,
"Message": "sample string 1"
}