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": "b631557b-9e31-4982-a78a-e7595a1fa7bb", "Name": "sample string 1", "Description": "sample string 2", "AssetType": { "AssetTypeId": "a336ceaa-3454-4b98-8169-9d64a8e3a08a", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "1a6c7c0e-d9b3-455b-9110-a293dc352654", "CreateDate": "2024-11-21T04:59:02.7325493-08:00", "CreateUser": "sample string 7", "LastModifiedDate": "2024-11-21T04:59:02.7325493-08:00", "LastModifiedUser": "sample string 8" }, "FrequencyNeeded": 1, "ValueNeededDate": "2024-11-21T04:59:02.7325493-08:00", "Fields": [ { "FormTypeFieldId": "7d855394-0d85-447e-a6aa-139d5e46e81e", "Section": { "FormTypeSectionId": "90aea14c-0428-4881-81f5-d0a91e22a2db", "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": "350eec9c-4ebd-4d0a-8f85-0c7b56d646cb", "Name": "sample string 1" }, "Unit": { "UnitId": "4ffd28e7-c5db-40ec-938a-6dee6d52412a", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "19501e8e-1fa0-4c52-8062-0327bfc10ae8", "CreateDate": "2024-11-21T04:59:02.7325493-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-11-21T04:59:02.7325493-08:00", "LastModifiedUser": "sample string 6" }, "DisplayOrder": 1, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "c656df73-3803-42e6-9e05-9c7f119e880c", "FieldId": "0cbc5a20-c511-4cd2-8864-4a92687514ee", "FieldName": "sample string 1", "FieldLable": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "c656df73-3803-42e6-9e05-9c7f119e880c", "FieldId": "0cbc5a20-c511-4cd2-8864-4a92687514ee", "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": "7d855394-0d85-447e-a6aa-139d5e46e81e", "Section": { "FormTypeSectionId": "90aea14c-0428-4881-81f5-d0a91e22a2db", "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": "350eec9c-4ebd-4d0a-8f85-0c7b56d646cb", "Name": "sample string 1" }, "Unit": { "UnitId": "4ffd28e7-c5db-40ec-938a-6dee6d52412a", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "19501e8e-1fa0-4c52-8062-0327bfc10ae8", "CreateDate": "2024-11-21T04:59:02.7325493-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-11-21T04:59:02.7325493-08:00", "LastModifiedUser": "sample string 6" }, "DisplayOrder": 1, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "c656df73-3803-42e6-9e05-9c7f119e880c", "FieldId": "0cbc5a20-c511-4cd2-8864-4a92687514ee", "FieldName": "sample string 1", "FieldLable": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "c656df73-3803-42e6-9e05-9c7f119e880c", "FieldId": "0cbc5a20-c511-4cd2-8864-4a92687514ee", "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": "7f921bc0-507c-44ac-8591-65b803e2d869", "CreateDate": "2024-11-21T04:59:02.7325493-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-11-21T04:59:02.7325493-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": "9ee87210-57a4-441d-81e7-3eb47e0ab682", "Name": "sample string 1", "Description": "sample string 2", "AssetType": { "AssetTypeId": "4c059aa1-5e93-41b3-864c-d40576c535ef", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "3307634f-63c0-4870-bf1c-7ca3be448fc7", "CreateDate": "2024-11-21T04:59:02.7325493-08:00", "CreateUser": "sample string 7", "LastModifiedDate": "2024-11-21T04:59:02.7325493-08:00", "LastModifiedUser": "sample string 8" }, "FrequencyNeeded": 1, "ValueNeededDate": "2024-11-21T04:59:02.7325493-08:00", "Fields": [ { "FormTypeFieldId": "d05a0aa6-7df3-49cd-9ea7-535fa0462012", "Section": { "FormTypeSectionId": "482eb37d-0c71-4e4d-90a1-37c16f385cce", "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": "750c6442-d57d-42ae-b57d-6bff62fe29d3", "Name": "sample string 1" }, "Unit": { "UnitId": "786808f4-0703-4d1d-980a-b912560885fa", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "fe8a8d26-a2fb-4edd-a4e1-97c782f67dee", "CreateDate": "2024-11-21T04:59:02.7325493-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-11-21T04:59:02.7325493-08:00", "LastModifiedUser": "sample string 6" }, "DisplayOrder": 1, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "ed7aea8f-985f-445e-988b-dd6aef0e8a1b", "FieldId": "bca9c24a-a2d1-433e-8c1c-dd107bf25235", "FieldName": "sample string 1", "FieldLable": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "ed7aea8f-985f-445e-988b-dd6aef0e8a1b", "FieldId": "bca9c24a-a2d1-433e-8c1c-dd107bf25235", "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": "d05a0aa6-7df3-49cd-9ea7-535fa0462012", "Section": { "FormTypeSectionId": "482eb37d-0c71-4e4d-90a1-37c16f385cce", "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": "750c6442-d57d-42ae-b57d-6bff62fe29d3", "Name": "sample string 1" }, "Unit": { "UnitId": "786808f4-0703-4d1d-980a-b912560885fa", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "fe8a8d26-a2fb-4edd-a4e1-97c782f67dee", "CreateDate": "2024-11-21T04:59:02.7325493-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-11-21T04:59:02.7325493-08:00", "LastModifiedUser": "sample string 6" }, "DisplayOrder": 1, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "ed7aea8f-985f-445e-988b-dd6aef0e8a1b", "FieldId": "bca9c24a-a2d1-433e-8c1c-dd107bf25235", "FieldName": "sample string 1", "FieldLable": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "ed7aea8f-985f-445e-988b-dd6aef0e8a1b", "FieldId": "bca9c24a-a2d1-433e-8c1c-dd107bf25235", "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": "392b1420-1898-4150-aaae-3631b169db91", "CreateDate": "2024-11-21T04:59:02.7325493-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-11-21T04:59:02.7325493-08:00", "LastModifiedUser": "sample string 6" }, "Total": 1, "Message": "sample string 1" }