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": "c26b79c1-9d49-4c4d-ba2d-58de52abd37e",
"Name": "sample string 1",
"Description": "sample string 2",
"AssetType": {
"AssetTypeId": "6926b5e9-9948-4589-b3b5-5416fa66c70e",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayColor": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "97dbc048-d6c3-4453-9ec8-028cf69eb63f",
"CreateDate": "2026-11-29T14:10:50.7370343-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-11-29T14:10:50.7370343-08:00",
"LastModifiedUser": "sample string 7"
},
"DataType": {
"DataTypeId": "112afc13-d7de-4fbe-b330-bf880bc8fb29",
"Name": "sample string 1"
},
"Unit": {
"UnitId": "26707ecc-deb7-4dd3-9ac5-c3566b123053",
"Code": "sample string 1",
"Description": "sample string 2",
"SourceSystemId": "sample string 3",
"CompanyId": "19a297d4-1c3b-4d74-98c3-46cefef732c8",
"CreateDate": "2026-11-29T14:10:50.7370343-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-11-29T14:10:50.7370343-08:00",
"LastModifiedUser": "sample string 6"
},
"MinValue": 1.0,
"MaxValue": 1.0,
"MinLength": 1,
"MaxLength": 1,
"HasValidValues": true,
"ValidValues": [
{
"ValidValueId": "638bb6c1-e6ba-4ab9-8f7b-79519e5f5ab4",
"FieldId": "0e92bbcc-a6a2-4c76-b512-492b616244f0",
"FieldName": "sample string 1",
"FieldLabel": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
},
{
"ValidValueId": "638bb6c1-e6ba-4ab9-8f7b-79519e5f5ab4",
"FieldId": "0e92bbcc-a6a2-4c76-b512-492b616244f0",
"FieldName": "sample string 1",
"FieldLabel": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
}
],
"FrequencyNeeded": 1,
"ValueNeededDate": "2026-11-29T14:10:50.7370343-08:00",
"IsAccumulator": true,
"SourceSystemId": "sample string 5",
"CompanyId": "c087ed85-535b-4614-91db-b114f14bc334",
"CreateDate": "2026-11-29T14:10:50.7370343-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-11-29T14:10:50.7370343-08: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": "7c455c37-3283-474e-816e-1d614fef171c",
"Name": "sample string 1",
"Description": "sample string 2",
"AssetType": {
"AssetTypeId": "210709b7-ab77-469a-9916-a920e0326713",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayColor": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "7aa43877-96b7-4b1d-857d-d01862ff6789",
"CreateDate": "2026-11-29T14:10:50.8933361-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-11-29T14:10:50.8933361-08:00",
"LastModifiedUser": "sample string 7"
},
"DataType": {
"DataTypeId": "08e9add4-1fbd-46cf-8544-9b7627af10d1",
"Name": "sample string 1"
},
"Unit": {
"UnitId": "811cd0e2-577e-4abb-87b8-737b404aa63c",
"Code": "sample string 1",
"Description": "sample string 2",
"SourceSystemId": "sample string 3",
"CompanyId": "74a281c8-5e0d-449f-94d3-c863dd99aca5",
"CreateDate": "2026-11-29T14:10:50.8933361-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-11-29T14:10:50.8933361-08:00",
"LastModifiedUser": "sample string 6"
},
"MinValue": 1.0,
"MaxValue": 1.0,
"MinLength": 1,
"MaxLength": 1,
"HasValidValues": true,
"ValidValues": [
{
"ValidValueId": "95014d4f-4165-49cb-b627-6a80844e15c1",
"FieldId": "789ee68b-c8e9-4170-8b41-d8711887e749",
"FieldName": "sample string 1",
"FieldLabel": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
},
{
"ValidValueId": "95014d4f-4165-49cb-b627-6a80844e15c1",
"FieldId": "789ee68b-c8e9-4170-8b41-d8711887e749",
"FieldName": "sample string 1",
"FieldLabel": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
}
],
"FrequencyNeeded": 1,
"ValueNeededDate": "2026-11-29T14:10:50.8933361-08:00",
"IsAccumulator": true,
"SourceSystemId": "sample string 5",
"CompanyId": "d1032680-c3fc-4254-9f19-7a4085e612f1",
"CreateDate": "2026-11-29T14:10:50.8933361-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-11-29T14:10:50.8933361-08:00",
"LastModifiedUser": "sample string 8"
},
"Total": 1,
"Message": "sample string 1"
}