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.
FormTypeName | 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": "2203373a-1297-40f3-ae1c-e1c4556f20d0", "Name": "sample string 1", "Description": "sample string 2", "AssetType": { "AssetTypeId": "2246f98e-6377-4ab4-b9f0-fd5fb2afcea2", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "785c4807-98b8-4410-968d-bc2407568d68", "CreateDate": "2025-09-13T18:38:51.2709443-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-09-13T18:38:51.2709443-07:00", "LastModifiedUser": "sample string 8" }, "FrequencyNeeded": 1, "ValueNeededDate": "2025-09-13T18:38:51.2709443-07:00", "Fields": [ { "FormTypeFieldId": "6c1b4f0a-ab66-478e-a1c9-1bfb92fd3230", "Section": { "FormTypeSectionId": "33b1724d-7bf9-4833-9b52-3814efa19802", "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": "7e063d14-d271-459a-a9e6-15060c5542ab", "Name": "sample string 1" }, "Unit": { "UnitId": "8f9fd3df-b48a-4688-a55f-7da150cbbae6", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "a317f76b-ebc4-4fcd-8895-40b1f3f21b0a", "CreateDate": "2025-09-13T18:38:51.2709443-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-09-13T18:38:51.2709443-07:00", "LastModifiedUser": "sample string 6" }, "DisplayOrder": 1, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "3e25c3be-1f18-404f-ac2b-126f542ce550", "FieldId": "520aed9b-08d6-4d16-bdcd-44129063290d", "FieldName": "sample string 1", "FieldLable": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "3e25c3be-1f18-404f-ac2b-126f542ce550", "FieldId": "520aed9b-08d6-4d16-bdcd-44129063290d", "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": "6c1b4f0a-ab66-478e-a1c9-1bfb92fd3230", "Section": { "FormTypeSectionId": "33b1724d-7bf9-4833-9b52-3814efa19802", "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": "7e063d14-d271-459a-a9e6-15060c5542ab", "Name": "sample string 1" }, "Unit": { "UnitId": "8f9fd3df-b48a-4688-a55f-7da150cbbae6", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "a317f76b-ebc4-4fcd-8895-40b1f3f21b0a", "CreateDate": "2025-09-13T18:38:51.2709443-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-09-13T18:38:51.2709443-07:00", "LastModifiedUser": "sample string 6" }, "DisplayOrder": 1, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "3e25c3be-1f18-404f-ac2b-126f542ce550", "FieldId": "520aed9b-08d6-4d16-bdcd-44129063290d", "FieldName": "sample string 1", "FieldLable": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "3e25c3be-1f18-404f-ac2b-126f542ce550", "FieldId": "520aed9b-08d6-4d16-bdcd-44129063290d", "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": "c1fd5aa2-3e16-4ea0-9cdc-579d43998f8d", "CreateDate": "2025-09-13T18:38:51.2709443-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-09-13T18:38:51.2709443-07: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": "28f7a562-cfdf-4935-85b5-90bcf28a0d55", "Name": "sample string 1", "Description": "sample string 2", "AssetType": { "AssetTypeId": "47cf2e80-439f-48e5-a6e3-ae4f183c0199", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "b98a31c1-d8aa-43ba-8c5e-f45250a0b6bf", "CreateDate": "2025-09-13T18:38:51.2709443-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-09-13T18:38:51.2709443-07:00", "LastModifiedUser": "sample string 8" }, "FrequencyNeeded": 1, "ValueNeededDate": "2025-09-13T18:38:51.2709443-07:00", "Fields": [ { "FormTypeFieldId": "5bfe5993-332c-404b-8e99-612f856702d9", "Section": { "FormTypeSectionId": "b36a8a6b-1ab8-4bbd-b424-895479073044", "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": "ab40ff79-bd79-4a34-b900-f0275b269466", "Name": "sample string 1" }, "Unit": { "UnitId": "cabc4d84-6993-4637-a422-bf6c8714292f", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "7fe337f4-16a4-4d27-830a-12fd9b021ffe", "CreateDate": "2025-09-13T18:38:51.2709443-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-09-13T18:38:51.2709443-07:00", "LastModifiedUser": "sample string 6" }, "DisplayOrder": 1, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "e9cf1615-bdb4-4131-a0b5-129e9026d418", "FieldId": "16d2e56f-72fc-4f85-86c7-0635310ff428", "FieldName": "sample string 1", "FieldLable": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "e9cf1615-bdb4-4131-a0b5-129e9026d418", "FieldId": "16d2e56f-72fc-4f85-86c7-0635310ff428", "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": "5bfe5993-332c-404b-8e99-612f856702d9", "Section": { "FormTypeSectionId": "b36a8a6b-1ab8-4bbd-b424-895479073044", "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": "ab40ff79-bd79-4a34-b900-f0275b269466", "Name": "sample string 1" }, "Unit": { "UnitId": "cabc4d84-6993-4637-a422-bf6c8714292f", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "7fe337f4-16a4-4d27-830a-12fd9b021ffe", "CreateDate": "2025-09-13T18:38:51.2709443-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-09-13T18:38:51.2709443-07:00", "LastModifiedUser": "sample string 6" }, "DisplayOrder": 1, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "e9cf1615-bdb4-4131-a0b5-129e9026d418", "FieldId": "16d2e56f-72fc-4f85-86c7-0635310ff428", "FieldName": "sample string 1", "FieldLable": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "e9cf1615-bdb4-4131-a0b5-129e9026d418", "FieldId": "16d2e56f-72fc-4f85-86c7-0635310ff428", "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": "996f77f5-a6e1-4d33-b261-954353185e69", "CreateDate": "2025-09-13T18:38:51.2709443-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-09-13T18:38:51.2709443-07:00", "LastModifiedUser": "sample string 6" }, "Total": 1, "Message": "sample string 1" }