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": "7961a38c-95fd-464e-ade6-c787a7c96f49",
"Name": "sample string 1",
"Description": "sample string 2",
"AssetType": {
"AssetTypeId": "25315dd9-c41c-4ec5-b5b5-a5ccac183426",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "688fa1ca-0888-472d-a937-518182f8e048",
"CreateDate": "2026-01-28T12:34:53.0839779-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-01-28T12:34:53.0839779-08:00",
"LastModifiedUser": "sample string 8"
},
"FrequencyNeeded": 1,
"ValueNeededDate": "2026-01-28T12:34:53.0839779-08:00",
"Fields": [
{
"FormTypeFieldId": "17946cba-9fc3-42fd-a172-35ab55a609bb",
"Section": {
"FormTypeSectionId": "e11f9eae-4f64-4136-ba01-aefadb3f6fd5",
"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": "9a34ee39-4cb4-41db-8bbe-bac6d43c19c9",
"Name": "sample string 1"
},
"Unit": {
"UnitId": "0795757a-3747-4307-a067-9c7f98a85247",
"Code": "sample string 1",
"Description": "sample string 2",
"SourceSystemId": "sample string 3",
"CompanyId": "d8318fad-345e-475f-890a-61d9a4899ab7",
"CreateDate": "2026-01-28T12:34:53.0839779-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-01-28T12:34:53.0839779-08:00",
"LastModifiedUser": "sample string 6"
},
"DisplayOrder": 1,
"MinValue": 1.0,
"MaxValue": 1.0,
"MinLength": 1,
"MaxLength": 1,
"HasValidValues": true,
"ValidValues": [
{
"ValidValueId": "ab2989df-e483-477c-923c-72624e6cc0e5",
"FieldId": "0c6cd7d9-8f08-4a5d-8486-11a719666d58",
"FieldName": "sample string 1",
"FieldLable": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
},
{
"ValidValueId": "ab2989df-e483-477c-923c-72624e6cc0e5",
"FieldId": "0c6cd7d9-8f08-4a5d-8486-11a719666d58",
"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": "17946cba-9fc3-42fd-a172-35ab55a609bb",
"Section": {
"FormTypeSectionId": "e11f9eae-4f64-4136-ba01-aefadb3f6fd5",
"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": "9a34ee39-4cb4-41db-8bbe-bac6d43c19c9",
"Name": "sample string 1"
},
"Unit": {
"UnitId": "0795757a-3747-4307-a067-9c7f98a85247",
"Code": "sample string 1",
"Description": "sample string 2",
"SourceSystemId": "sample string 3",
"CompanyId": "d8318fad-345e-475f-890a-61d9a4899ab7",
"CreateDate": "2026-01-28T12:34:53.0839779-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-01-28T12:34:53.0839779-08:00",
"LastModifiedUser": "sample string 6"
},
"DisplayOrder": 1,
"MinValue": 1.0,
"MaxValue": 1.0,
"MinLength": 1,
"MaxLength": 1,
"HasValidValues": true,
"ValidValues": [
{
"ValidValueId": "ab2989df-e483-477c-923c-72624e6cc0e5",
"FieldId": "0c6cd7d9-8f08-4a5d-8486-11a719666d58",
"FieldName": "sample string 1",
"FieldLable": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
},
{
"ValidValueId": "ab2989df-e483-477c-923c-72624e6cc0e5",
"FieldId": "0c6cd7d9-8f08-4a5d-8486-11a719666d58",
"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": "3e65e472-1b90-4306-9f46-03d14d035698",
"CreateDate": "2026-01-28T12:34:53.0839779-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-01-28T12:34:53.0839779-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": "485e6b6b-3b34-4852-9491-605f78a7a1d2",
"Name": "sample string 1",
"Description": "sample string 2",
"AssetType": {
"AssetTypeId": "0357dc1e-a60f-4be6-89de-1248dd5c99a2",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "e0fc0f67-9b02-4267-be1b-0466c649a726",
"CreateDate": "2026-01-28T12:34:53.0839779-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-01-28T12:34:53.0839779-08:00",
"LastModifiedUser": "sample string 8"
},
"FrequencyNeeded": 1,
"ValueNeededDate": "2026-01-28T12:34:53.0839779-08:00",
"Fields": [
{
"FormTypeFieldId": "eb666b36-5a5d-4b55-b330-f838beeda9ee",
"Section": {
"FormTypeSectionId": "b83403b5-11e6-4ead-ad10-19f901c90b26",
"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": "d2a9520b-afdc-4cc7-bad7-2d84555bc1b3",
"Name": "sample string 1"
},
"Unit": {
"UnitId": "dc89aa1e-bd70-4cad-a410-fb1e0e982196",
"Code": "sample string 1",
"Description": "sample string 2",
"SourceSystemId": "sample string 3",
"CompanyId": "a6697e6a-0616-4d18-a12c-ed6000d80bb3",
"CreateDate": "2026-01-28T12:34:53.0839779-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-01-28T12:34:53.0839779-08:00",
"LastModifiedUser": "sample string 6"
},
"DisplayOrder": 1,
"MinValue": 1.0,
"MaxValue": 1.0,
"MinLength": 1,
"MaxLength": 1,
"HasValidValues": true,
"ValidValues": [
{
"ValidValueId": "c4b3e26a-400d-439d-8757-1b6771b3bf17",
"FieldId": "c2cbac0c-2618-4069-8451-702c4cb3878e",
"FieldName": "sample string 1",
"FieldLable": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
},
{
"ValidValueId": "c4b3e26a-400d-439d-8757-1b6771b3bf17",
"FieldId": "c2cbac0c-2618-4069-8451-702c4cb3878e",
"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": "eb666b36-5a5d-4b55-b330-f838beeda9ee",
"Section": {
"FormTypeSectionId": "b83403b5-11e6-4ead-ad10-19f901c90b26",
"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": "d2a9520b-afdc-4cc7-bad7-2d84555bc1b3",
"Name": "sample string 1"
},
"Unit": {
"UnitId": "dc89aa1e-bd70-4cad-a410-fb1e0e982196",
"Code": "sample string 1",
"Description": "sample string 2",
"SourceSystemId": "sample string 3",
"CompanyId": "a6697e6a-0616-4d18-a12c-ed6000d80bb3",
"CreateDate": "2026-01-28T12:34:53.0839779-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-01-28T12:34:53.0839779-08:00",
"LastModifiedUser": "sample string 6"
},
"DisplayOrder": 1,
"MinValue": 1.0,
"MaxValue": 1.0,
"MinLength": 1,
"MaxLength": 1,
"HasValidValues": true,
"ValidValues": [
{
"ValidValueId": "c4b3e26a-400d-439d-8757-1b6771b3bf17",
"FieldId": "c2cbac0c-2618-4069-8451-702c4cb3878e",
"FieldName": "sample string 1",
"FieldLable": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
},
{
"ValidValueId": "c4b3e26a-400d-439d-8757-1b6771b3bf17",
"FieldId": "c2cbac0c-2618-4069-8451-702c4cb3878e",
"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": "425845cc-a622-46e0-bf88-32c0f946203c",
"CreateDate": "2026-01-28T12:34:53.0839779-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-01-28T12:34:53.0839779-08:00",
"LastModifiedUser": "sample string 6"
},
"Total": 1,
"Message": "sample string 1"
}