POST FormTypes
Creates a new form type.
Request Information
URI Parameters
None.
Body Parameters
The form type to create. FormTypeId should not be filled in.
FormType| Name | Description | Type | Additional information |
|---|---|---|---|
| FormTypeId | globally unique identifier |
None. |
|
| Name | string |
None. |
|
| Description | string |
None. |
|
| AssetType | AssetType |
None. |
|
| FrequencyNeeded | integer |
None. |
|
| ValueNeededDate | date |
None. |
|
| Fields | Collection of FormTypeField |
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:
{
"FormTypeId": "431d1d5e-c8b6-446a-a0ba-08597145c1da",
"Name": "sample string 1",
"Description": "sample string 2",
"AssetType": {
"AssetTypeId": "14afdc8f-9961-4805-a8ef-dd8655e979db",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "2db68003-25a9-49be-88d7-0f09a7271767",
"CreateDate": "2026-02-02T07:01:26.5228959-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-02-02T07:01:26.5228959-08:00",
"LastModifiedUser": "sample string 8"
},
"FrequencyNeeded": 1,
"ValueNeededDate": "2026-02-02T07:01:26.5228959-08:00",
"Fields": [
{
"FormTypeFieldId": "2897b012-7013-462c-af35-c6e7abd2be01",
"Section": {
"FormTypeSectionId": "5aa3daa7-0257-4bfd-bf4d-d4195cbd3509",
"Name": "sample string 1",
"Label": "sample string 2",
"DisplayOrder": 1,
"IsRepeatable": true,
"VisibleExpression": "sample string 4",
"SourceSystemId": "sample string 5"
},
"Name": "sample string 1",
"Label": "sample string 2",
"Description": "sample string 3",
"DataType": {
"DataTypeId": "1db2fa88-dc94-4178-bba2-98e5c095a33b",
"Name": "sample string 1"
},
"Unit": {
"UnitId": "5822719e-4a03-4bd8-b96b-54f97f6ee2c8",
"Code": "sample string 1",
"Description": "sample string 2",
"SourceSystemId": "sample string 3",
"CompanyId": "1f3e9ea8-7ddd-4a98-aef7-69b652922efc",
"CreateDate": "2026-02-02T07:01:26.5228959-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-02-02T07:01:26.5228959-08:00",
"LastModifiedUser": "sample string 6"
},
"DisplayOrder": 1,
"MinValue": 1.0,
"MaxValue": 1.0,
"MinLength": 1,
"MaxLength": 1,
"HasValidValues": true,
"ValidValues": [
{
"ValidValueId": "7c73ad29-fc48-4415-849a-9cbf389069cc",
"FieldId": "f897b5d2-35b2-4995-96c5-8b63404ad6b7",
"FieldName": "sample string 1",
"FieldLable": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
},
{
"ValidValueId": "7c73ad29-fc48-4415-849a-9cbf389069cc",
"FieldId": "f897b5d2-35b2-4995-96c5-8b63404ad6b7",
"FieldName": "sample string 1",
"FieldLable": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
}
],
"ValueExpression": "sample string 5",
"RequiredExpression": "sample string 6",
"IsAttachment": true,
"DefaultValueExpression": "sample string 8",
"IsAccumulator": true,
"IsMultiline": true,
"IsRepeatable": true,
"VisibleExpression": "sample string 12",
"SourceSystemId": "sample string 13"
},
{
"FormTypeFieldId": "2897b012-7013-462c-af35-c6e7abd2be01",
"Section": {
"FormTypeSectionId": "5aa3daa7-0257-4bfd-bf4d-d4195cbd3509",
"Name": "sample string 1",
"Label": "sample string 2",
"DisplayOrder": 1,
"IsRepeatable": true,
"VisibleExpression": "sample string 4",
"SourceSystemId": "sample string 5"
},
"Name": "sample string 1",
"Label": "sample string 2",
"Description": "sample string 3",
"DataType": {
"DataTypeId": "1db2fa88-dc94-4178-bba2-98e5c095a33b",
"Name": "sample string 1"
},
"Unit": {
"UnitId": "5822719e-4a03-4bd8-b96b-54f97f6ee2c8",
"Code": "sample string 1",
"Description": "sample string 2",
"SourceSystemId": "sample string 3",
"CompanyId": "1f3e9ea8-7ddd-4a98-aef7-69b652922efc",
"CreateDate": "2026-02-02T07:01:26.5228959-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-02-02T07:01:26.5228959-08:00",
"LastModifiedUser": "sample string 6"
},
"DisplayOrder": 1,
"MinValue": 1.0,
"MaxValue": 1.0,
"MinLength": 1,
"MaxLength": 1,
"HasValidValues": true,
"ValidValues": [
{
"ValidValueId": "7c73ad29-fc48-4415-849a-9cbf389069cc",
"FieldId": "f897b5d2-35b2-4995-96c5-8b63404ad6b7",
"FieldName": "sample string 1",
"FieldLable": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
},
{
"ValidValueId": "7c73ad29-fc48-4415-849a-9cbf389069cc",
"FieldId": "f897b5d2-35b2-4995-96c5-8b63404ad6b7",
"FieldName": "sample string 1",
"FieldLable": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
}
],
"ValueExpression": "sample string 5",
"RequiredExpression": "sample string 6",
"IsAttachment": true,
"DefaultValueExpression": "sample string 8",
"IsAccumulator": true,
"IsMultiline": true,
"IsRepeatable": true,
"VisibleExpression": "sample string 12",
"SourceSystemId": "sample string 13"
}
],
"SourceSystemId": "sample string 3",
"CompanyId": "b5564e45-798a-4bab-8d7e-cdfa424ca589",
"CreateDate": "2026-02-02T07:01:26.5228959-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-02-02T07:01:26.5228959-08:00",
"LastModifiedUser": "sample string 6"
}
Response Information
Resource Description
On success, the created form type.
| Name | Description | Type | Additional information |
|---|---|---|---|
| Data | FormType |
None. |
|
| Total | integer |
None. |
|
| Message | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"Data": {
"FormTypeId": "ca70bc37-abc0-4735-bd19-5ccbfd605c8a",
"Name": "sample string 1",
"Description": "sample string 2",
"AssetType": {
"AssetTypeId": "8482f718-4804-4ec0-a223-b8af325eef42",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "3c1f5d4e-48e2-43a9-8643-5f7c71dc8456",
"CreateDate": "2026-02-02T07:01:26.5228959-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-02-02T07:01:26.5228959-08:00",
"LastModifiedUser": "sample string 8"
},
"FrequencyNeeded": 1,
"ValueNeededDate": "2026-02-02T07:01:26.5228959-08:00",
"Fields": [
{
"FormTypeFieldId": "fb767fa7-f945-4fc8-8571-1880d6aba029",
"Section": {
"FormTypeSectionId": "8f7ac037-cde2-4d50-9ba0-8bb56e0adc13",
"Name": "sample string 1",
"Label": "sample string 2",
"DisplayOrder": 1,
"IsRepeatable": true,
"VisibleExpression": "sample string 4",
"SourceSystemId": "sample string 5"
},
"Name": "sample string 1",
"Label": "sample string 2",
"Description": "sample string 3",
"DataType": {
"DataTypeId": "35e71072-7670-4908-911b-d74659c559ad",
"Name": "sample string 1"
},
"Unit": {
"UnitId": "d8ac6165-9960-4453-bcc3-9eea41f9be66",
"Code": "sample string 1",
"Description": "sample string 2",
"SourceSystemId": "sample string 3",
"CompanyId": "8a05f0bd-abfc-4d3e-8b23-d12c7a56b442",
"CreateDate": "2026-02-02T07:01:26.5228959-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-02-02T07:01:26.5228959-08:00",
"LastModifiedUser": "sample string 6"
},
"DisplayOrder": 1,
"MinValue": 1.0,
"MaxValue": 1.0,
"MinLength": 1,
"MaxLength": 1,
"HasValidValues": true,
"ValidValues": [
{
"ValidValueId": "2f049f61-cebb-4394-a043-84657cde6951",
"FieldId": "92a3ce2e-b0c6-4cdd-9b81-c3a311b6a03a",
"FieldName": "sample string 1",
"FieldLable": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
},
{
"ValidValueId": "2f049f61-cebb-4394-a043-84657cde6951",
"FieldId": "92a3ce2e-b0c6-4cdd-9b81-c3a311b6a03a",
"FieldName": "sample string 1",
"FieldLable": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
}
],
"ValueExpression": "sample string 5",
"RequiredExpression": "sample string 6",
"IsAttachment": true,
"DefaultValueExpression": "sample string 8",
"IsAccumulator": true,
"IsMultiline": true,
"IsRepeatable": true,
"VisibleExpression": "sample string 12",
"SourceSystemId": "sample string 13"
},
{
"FormTypeFieldId": "fb767fa7-f945-4fc8-8571-1880d6aba029",
"Section": {
"FormTypeSectionId": "8f7ac037-cde2-4d50-9ba0-8bb56e0adc13",
"Name": "sample string 1",
"Label": "sample string 2",
"DisplayOrder": 1,
"IsRepeatable": true,
"VisibleExpression": "sample string 4",
"SourceSystemId": "sample string 5"
},
"Name": "sample string 1",
"Label": "sample string 2",
"Description": "sample string 3",
"DataType": {
"DataTypeId": "35e71072-7670-4908-911b-d74659c559ad",
"Name": "sample string 1"
},
"Unit": {
"UnitId": "d8ac6165-9960-4453-bcc3-9eea41f9be66",
"Code": "sample string 1",
"Description": "sample string 2",
"SourceSystemId": "sample string 3",
"CompanyId": "8a05f0bd-abfc-4d3e-8b23-d12c7a56b442",
"CreateDate": "2026-02-02T07:01:26.5228959-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-02-02T07:01:26.5228959-08:00",
"LastModifiedUser": "sample string 6"
},
"DisplayOrder": 1,
"MinValue": 1.0,
"MaxValue": 1.0,
"MinLength": 1,
"MaxLength": 1,
"HasValidValues": true,
"ValidValues": [
{
"ValidValueId": "2f049f61-cebb-4394-a043-84657cde6951",
"FieldId": "92a3ce2e-b0c6-4cdd-9b81-c3a311b6a03a",
"FieldName": "sample string 1",
"FieldLable": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
},
{
"ValidValueId": "2f049f61-cebb-4394-a043-84657cde6951",
"FieldId": "92a3ce2e-b0c6-4cdd-9b81-c3a311b6a03a",
"FieldName": "sample string 1",
"FieldLable": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
}
],
"ValueExpression": "sample string 5",
"RequiredExpression": "sample string 6",
"IsAttachment": true,
"DefaultValueExpression": "sample string 8",
"IsAccumulator": true,
"IsMultiline": true,
"IsRepeatable": true,
"VisibleExpression": "sample string 12",
"SourceSystemId": "sample string 13"
}
],
"SourceSystemId": "sample string 3",
"CompanyId": "dbf71c4c-4f49-438d-ab48-3705fd71e205",
"CreateDate": "2026-02-02T07:01:26.5228959-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-02-02T07:01:26.5228959-08:00",
"LastModifiedUser": "sample string 6"
},
"Total": 1,
"Message": "sample string 1"
}