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": "540c1b72-fcfd-427d-9a7f-e8db85e382f3",
"Name": "sample string 1",
"Description": "sample string 2",
"AssetType": {
"AssetTypeId": "c98afad5-4ab4-468f-90d7-b34f49d59ae2",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayColor": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "bde84c2c-ebae-4d8a-87a1-27bf4c509761",
"CreateDate": "2026-05-30T22:11:06.407069-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-05-30T22:11:06.407069-07:00",
"LastModifiedUser": "sample string 7"
},
"DataType": {
"DataTypeId": "8dfee6b6-09f1-420b-9572-7d897b9d2266",
"Name": "sample string 1"
},
"Unit": {
"UnitId": "1171e596-ceec-4df4-a9b6-d9f9540e0b46",
"Code": "sample string 1",
"Description": "sample string 2",
"SourceSystemId": "sample string 3",
"CompanyId": "40da53b7-d66e-40a3-a621-5e28a024f277",
"CreateDate": "2026-05-30T22:11:06.407069-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-05-30T22:11:06.407069-07:00",
"LastModifiedUser": "sample string 6"
},
"MinValue": 1.0,
"MaxValue": 1.0,
"MinLength": 1,
"MaxLength": 1,
"HasValidValues": true,
"ValidValues": [
{
"ValidValueId": "df6a4d75-abf6-40b4-9a0f-53e6f7abbaab",
"FieldId": "cca37369-429a-47a9-901b-b53277cecbd7",
"FieldName": "sample string 1",
"FieldLabel": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
},
{
"ValidValueId": "df6a4d75-abf6-40b4-9a0f-53e6f7abbaab",
"FieldId": "cca37369-429a-47a9-901b-b53277cecbd7",
"FieldName": "sample string 1",
"FieldLabel": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
}
],
"FrequencyNeeded": 1,
"ValueNeededDate": "2026-05-30T22:11:06.407069-07:00",
"IsAccumulator": true,
"SourceSystemId": "sample string 5",
"CompanyId": "3fabe383-9dcf-4652-86be-4de12ce62615",
"CreateDate": "2026-05-30T22:11:06.407069-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-05-30T22:11:06.407069-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": "d52ef768-1ccc-4920-9411-6ebf83014689",
"Name": "sample string 1",
"Description": "sample string 2",
"AssetType": {
"AssetTypeId": "d8ac6bad-e66d-4f9d-a321-2c430e5bacb1",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayColor": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "dfed90e1-f48b-478c-b7e2-4deea39bb036",
"CreateDate": "2026-05-30T22:11:06.4226941-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-05-30T22:11:06.4226941-07:00",
"LastModifiedUser": "sample string 7"
},
"DataType": {
"DataTypeId": "e1a87170-dc34-4a8c-85ad-5a5f5f6d4589",
"Name": "sample string 1"
},
"Unit": {
"UnitId": "b7bb3808-7a17-4dad-a7a0-12e95b74503d",
"Code": "sample string 1",
"Description": "sample string 2",
"SourceSystemId": "sample string 3",
"CompanyId": "52a1f551-0c6e-46d0-8cb8-d64c44472092",
"CreateDate": "2026-05-30T22:11:06.4226941-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-05-30T22:11:06.4226941-07:00",
"LastModifiedUser": "sample string 6"
},
"MinValue": 1.0,
"MaxValue": 1.0,
"MinLength": 1,
"MaxLength": 1,
"HasValidValues": true,
"ValidValues": [
{
"ValidValueId": "88cf8fab-c652-484a-9d5c-0e2348c209c1",
"FieldId": "6684e586-a20e-40ae-aafd-9afb816ae757",
"FieldName": "sample string 1",
"FieldLabel": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
},
{
"ValidValueId": "88cf8fab-c652-484a-9d5c-0e2348c209c1",
"FieldId": "6684e586-a20e-40ae-aafd-9afb816ae757",
"FieldName": "sample string 1",
"FieldLabel": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
}
],
"FrequencyNeeded": 1,
"ValueNeededDate": "2026-05-30T22:11:06.4226941-07:00",
"IsAccumulator": true,
"SourceSystemId": "sample string 5",
"CompanyId": "1d14243a-1394-4e33-9ff1-929b726081a7",
"CreateDate": "2026-05-30T22:11:06.4226941-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-05-30T22:11:06.4226941-07:00",
"LastModifiedUser": "sample string 8"
},
"Total": 1,
"Message": "sample string 1"
}