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": "397f4e0b-730b-44e8-a8b1-ec1c5ea51862", "Name": "sample string 1", "Description": "sample string 2", "AssetType": { "AssetTypeId": "1dc4d12d-7b12-44af-97ce-d9cda2c5f740", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "9a5fab66-74af-4210-821a-7bf558ea67f1", "CreateDate": "2025-04-17T03:47:00.1434711-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-04-17T03:47:00.1434711-07:00", "LastModifiedUser": "sample string 8" }, "FrequencyNeeded": 1, "ValueNeededDate": "2025-04-17T03:47:00.1434711-07:00", "Fields": [ { "FormTypeFieldId": "7764989c-4cc9-4fb6-a619-83b5a96666ca", "Section": { "FormTypeSectionId": "c685a8a4-265d-4f63-b04e-01a2460f29b1", "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": "e554cb68-594c-45e4-a219-fa06f87a77b4", "Name": "sample string 1" }, "Unit": { "UnitId": "ae740e83-7fbf-463b-84b5-32b28ae48b13", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "afbdb368-45d4-4996-99d0-2aa2e4c7a3d8", "CreateDate": "2025-04-17T03:47:00.1434711-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-04-17T03:47:00.1434711-07:00", "LastModifiedUser": "sample string 6" }, "DisplayOrder": 1, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "66a59df2-5ed4-4bd7-b5aa-b9e2df7887f1", "FieldId": "5386a71e-bf16-4a44-a2bf-87d4e7fe7082", "FieldName": "sample string 1", "FieldLable": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "66a59df2-5ed4-4bd7-b5aa-b9e2df7887f1", "FieldId": "5386a71e-bf16-4a44-a2bf-87d4e7fe7082", "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": "7764989c-4cc9-4fb6-a619-83b5a96666ca", "Section": { "FormTypeSectionId": "c685a8a4-265d-4f63-b04e-01a2460f29b1", "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": "e554cb68-594c-45e4-a219-fa06f87a77b4", "Name": "sample string 1" }, "Unit": { "UnitId": "ae740e83-7fbf-463b-84b5-32b28ae48b13", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "afbdb368-45d4-4996-99d0-2aa2e4c7a3d8", "CreateDate": "2025-04-17T03:47:00.1434711-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-04-17T03:47:00.1434711-07:00", "LastModifiedUser": "sample string 6" }, "DisplayOrder": 1, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "66a59df2-5ed4-4bd7-b5aa-b9e2df7887f1", "FieldId": "5386a71e-bf16-4a44-a2bf-87d4e7fe7082", "FieldName": "sample string 1", "FieldLable": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "66a59df2-5ed4-4bd7-b5aa-b9e2df7887f1", "FieldId": "5386a71e-bf16-4a44-a2bf-87d4e7fe7082", "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": "c28c0032-4e29-47f9-922d-5c40eec7be7f", "CreateDate": "2025-04-17T03:47:00.1590934-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-04-17T03:47:00.1590934-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": "17cd360d-a875-4a1a-a428-a1f347b18278", "Name": "sample string 1", "Description": "sample string 2", "AssetType": { "AssetTypeId": "a8e7b70c-a5d8-46b2-a404-51fbca0765c8", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "a2a01e16-2727-4b96-a909-6f0d6231fc39", "CreateDate": "2025-04-17T03:47:00.1590934-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-04-17T03:47:00.1590934-07:00", "LastModifiedUser": "sample string 8" }, "FrequencyNeeded": 1, "ValueNeededDate": "2025-04-17T03:47:00.1590934-07:00", "Fields": [ { "FormTypeFieldId": "36a9b6e1-6409-4c96-a97e-58fd355fefa8", "Section": { "FormTypeSectionId": "1fd462ce-c365-4e8d-93ac-32a079acf55b", "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": "ce1208b3-95d6-49a8-9f56-935fa495a186", "Name": "sample string 1" }, "Unit": { "UnitId": "9216574e-982f-4264-a8fc-d0d613fd0d75", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "ea3e98db-8d73-4891-afcc-510e0d5201e8", "CreateDate": "2025-04-17T03:47:00.1590934-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-04-17T03:47:00.1590934-07:00", "LastModifiedUser": "sample string 6" }, "DisplayOrder": 1, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "de8eb883-aba1-4c5e-8eab-796fa85f3e8d", "FieldId": "2c4b73b7-b97a-4b07-aa0a-887b56918315", "FieldName": "sample string 1", "FieldLable": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "de8eb883-aba1-4c5e-8eab-796fa85f3e8d", "FieldId": "2c4b73b7-b97a-4b07-aa0a-887b56918315", "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": "36a9b6e1-6409-4c96-a97e-58fd355fefa8", "Section": { "FormTypeSectionId": "1fd462ce-c365-4e8d-93ac-32a079acf55b", "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": "ce1208b3-95d6-49a8-9f56-935fa495a186", "Name": "sample string 1" }, "Unit": { "UnitId": "9216574e-982f-4264-a8fc-d0d613fd0d75", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "ea3e98db-8d73-4891-afcc-510e0d5201e8", "CreateDate": "2025-04-17T03:47:00.1590934-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-04-17T03:47:00.1590934-07:00", "LastModifiedUser": "sample string 6" }, "DisplayOrder": 1, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "de8eb883-aba1-4c5e-8eab-796fa85f3e8d", "FieldId": "2c4b73b7-b97a-4b07-aa0a-887b56918315", "FieldName": "sample string 1", "FieldLable": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "de8eb883-aba1-4c5e-8eab-796fa85f3e8d", "FieldId": "2c4b73b7-b97a-4b07-aa0a-887b56918315", "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": "00f3651d-1e40-414e-87cf-f006e4ee170a", "CreateDate": "2025-04-17T03:47:00.1590934-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-04-17T03:47:00.1590934-07:00", "LastModifiedUser": "sample string 6" }, "Total": 1, "Message": "sample string 1" }