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": "33d040ad-5c58-4597-a054-89024085b902",
"Name": "sample string 1",
"Description": "sample string 2",
"AssetType": {
"AssetTypeId": "aff144a5-b2bd-479d-a85a-90ee03c0f7e7",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "82a04d21-902a-437f-8a11-5823ffe37fa6",
"CreateDate": "2025-11-29T16:53:07.3632277-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2025-11-29T16:53:07.3632277-08:00",
"LastModifiedUser": "sample string 8"
},
"FrequencyNeeded": 1,
"ValueNeededDate": "2025-11-29T16:53:07.3632277-08:00",
"Fields": [
{
"FormTypeFieldId": "e7e5c833-f262-45f5-b05c-12c97f41c5ee",
"Section": {
"FormTypeSectionId": "6b1c7c1e-75b6-42d0-8605-8a10d3bdaef1",
"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": "5aa324c5-3760-44c4-839e-5cdc0ea6db7a",
"Name": "sample string 1"
},
"Unit": {
"UnitId": "57938ac7-7206-4d9e-80eb-99b7bd591152",
"Code": "sample string 1",
"Description": "sample string 2",
"SourceSystemId": "sample string 3",
"CompanyId": "38acc22e-ad35-4db9-af56-366835cb246e",
"CreateDate": "2025-11-29T16:53:07.3632277-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2025-11-29T16:53:07.3632277-08:00",
"LastModifiedUser": "sample string 6"
},
"DisplayOrder": 1,
"MinValue": 1.0,
"MaxValue": 1.0,
"MinLength": 1,
"MaxLength": 1,
"HasValidValues": true,
"ValidValues": [
{
"ValidValueId": "15562b00-9daf-41d9-9e3c-5db1ec791425",
"FieldId": "e9c019f3-7f13-4117-b0e4-9d9b31902201",
"FieldName": "sample string 1",
"FieldLable": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
},
{
"ValidValueId": "15562b00-9daf-41d9-9e3c-5db1ec791425",
"FieldId": "e9c019f3-7f13-4117-b0e4-9d9b31902201",
"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": "e7e5c833-f262-45f5-b05c-12c97f41c5ee",
"Section": {
"FormTypeSectionId": "6b1c7c1e-75b6-42d0-8605-8a10d3bdaef1",
"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": "5aa324c5-3760-44c4-839e-5cdc0ea6db7a",
"Name": "sample string 1"
},
"Unit": {
"UnitId": "57938ac7-7206-4d9e-80eb-99b7bd591152",
"Code": "sample string 1",
"Description": "sample string 2",
"SourceSystemId": "sample string 3",
"CompanyId": "38acc22e-ad35-4db9-af56-366835cb246e",
"CreateDate": "2025-11-29T16:53:07.3632277-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2025-11-29T16:53:07.3632277-08:00",
"LastModifiedUser": "sample string 6"
},
"DisplayOrder": 1,
"MinValue": 1.0,
"MaxValue": 1.0,
"MinLength": 1,
"MaxLength": 1,
"HasValidValues": true,
"ValidValues": [
{
"ValidValueId": "15562b00-9daf-41d9-9e3c-5db1ec791425",
"FieldId": "e9c019f3-7f13-4117-b0e4-9d9b31902201",
"FieldName": "sample string 1",
"FieldLable": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
},
{
"ValidValueId": "15562b00-9daf-41d9-9e3c-5db1ec791425",
"FieldId": "e9c019f3-7f13-4117-b0e4-9d9b31902201",
"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": "017dd0f7-369a-4160-b69d-04430afff91d",
"CreateDate": "2025-11-29T16:53:07.3632277-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2025-11-29T16:53:07.3632277-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": "23cdacdf-c9e0-4492-a29d-541a625d738a",
"Name": "sample string 1",
"Description": "sample string 2",
"AssetType": {
"AssetTypeId": "15769617-03be-4270-b204-85c2e883290c",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "d40d00f3-1648-4ff8-a9d6-b1fbb90f5226",
"CreateDate": "2025-11-29T16:53:07.3632277-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2025-11-29T16:53:07.3632277-08:00",
"LastModifiedUser": "sample string 8"
},
"FrequencyNeeded": 1,
"ValueNeededDate": "2025-11-29T16:53:07.3632277-08:00",
"Fields": [
{
"FormTypeFieldId": "45eb6d75-38ba-46c6-aedd-a243ce781a98",
"Section": {
"FormTypeSectionId": "c062ee1c-13a1-4a9b-a9a7-e71fe649b45f",
"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": "eff0d5da-a86a-4147-b53b-09f043ab8730",
"Name": "sample string 1"
},
"Unit": {
"UnitId": "bf3e09d0-e1fc-44d9-99fd-d91b4a1c0318",
"Code": "sample string 1",
"Description": "sample string 2",
"SourceSystemId": "sample string 3",
"CompanyId": "2fc2ac0c-c4b3-4365-9b49-138dc00838c0",
"CreateDate": "2025-11-29T16:53:07.3632277-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2025-11-29T16:53:07.3632277-08:00",
"LastModifiedUser": "sample string 6"
},
"DisplayOrder": 1,
"MinValue": 1.0,
"MaxValue": 1.0,
"MinLength": 1,
"MaxLength": 1,
"HasValidValues": true,
"ValidValues": [
{
"ValidValueId": "14abad90-f50c-40ce-912d-2b4845131587",
"FieldId": "0fb8f41c-5838-4b7f-830f-e9891da77afe",
"FieldName": "sample string 1",
"FieldLable": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
},
{
"ValidValueId": "14abad90-f50c-40ce-912d-2b4845131587",
"FieldId": "0fb8f41c-5838-4b7f-830f-e9891da77afe",
"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": "45eb6d75-38ba-46c6-aedd-a243ce781a98",
"Section": {
"FormTypeSectionId": "c062ee1c-13a1-4a9b-a9a7-e71fe649b45f",
"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": "eff0d5da-a86a-4147-b53b-09f043ab8730",
"Name": "sample string 1"
},
"Unit": {
"UnitId": "bf3e09d0-e1fc-44d9-99fd-d91b4a1c0318",
"Code": "sample string 1",
"Description": "sample string 2",
"SourceSystemId": "sample string 3",
"CompanyId": "2fc2ac0c-c4b3-4365-9b49-138dc00838c0",
"CreateDate": "2025-11-29T16:53:07.3632277-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2025-11-29T16:53:07.3632277-08:00",
"LastModifiedUser": "sample string 6"
},
"DisplayOrder": 1,
"MinValue": 1.0,
"MaxValue": 1.0,
"MinLength": 1,
"MaxLength": 1,
"HasValidValues": true,
"ValidValues": [
{
"ValidValueId": "14abad90-f50c-40ce-912d-2b4845131587",
"FieldId": "0fb8f41c-5838-4b7f-830f-e9891da77afe",
"FieldName": "sample string 1",
"FieldLable": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
},
{
"ValidValueId": "14abad90-f50c-40ce-912d-2b4845131587",
"FieldId": "0fb8f41c-5838-4b7f-830f-e9891da77afe",
"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": "dd449541-db8d-4cd8-b9cb-31790a6962a9",
"CreateDate": "2025-11-29T16:53:07.3632277-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2025-11-29T16:53:07.3632277-08:00",
"LastModifiedUser": "sample string 6"
},
"Total": 1,
"Message": "sample string 1"
}