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. |
|
Active | boolean |
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": "5b6dd9e3-4787-455b-b97a-9f77c8e89997", "Name": "sample string 1", "Description": "sample string 2", "AssetType": { "AssetTypeId": "ad9d2744-9d83-466a-a56e-1109816d687d", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "daadb026-04ed-4bb6-a037-d4017d6637ca", "CreateDate": "2025-08-23T22:44:57.7729355-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-08-23T22:44:57.7729355-07:00", "LastModifiedUser": "sample string 7" }, "FrequencyNeeded": 1, "ValueNeededDate": "2025-08-23T22:44:57.7729355-07:00", "Active": true, "Fields": [ { "FormTypeFieldId": "a7084d16-65f1-4f8f-ab15-f6fe2e971cb2", "Section": { "FormTypeSectionId": "737b01f5-74aa-4dd2-963f-2d6e32af59f2", "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": "f050ee86-62ce-41c2-afa4-dbd69c04d041", "Name": "sample string 1" }, "Unit": { "UnitId": "49f0afe5-c2e6-42c6-98c6-b2735f591014", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "5005032e-2a84-432e-af3a-74367c71b96a", "CreateDate": "2025-08-23T22:44:57.7729355-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-08-23T22:44:57.7729355-07:00", "LastModifiedUser": "sample string 6" }, "DisplayOrder": 1, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "820ce983-a6f1-4ca1-b9b0-f3a9afa8a1bc", "FieldId": "15fcc0a1-6487-430f-8b46-8751ee5d2c18", "FieldName": "sample string 1", "FieldLabel": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "820ce983-a6f1-4ca1-b9b0-f3a9afa8a1bc", "FieldId": "15fcc0a1-6487-430f-8b46-8751ee5d2c18", "FieldName": "sample string 1", "FieldLabel": "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": "a7084d16-65f1-4f8f-ab15-f6fe2e971cb2", "Section": { "FormTypeSectionId": "737b01f5-74aa-4dd2-963f-2d6e32af59f2", "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": "f050ee86-62ce-41c2-afa4-dbd69c04d041", "Name": "sample string 1" }, "Unit": { "UnitId": "49f0afe5-c2e6-42c6-98c6-b2735f591014", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "5005032e-2a84-432e-af3a-74367c71b96a", "CreateDate": "2025-08-23T22:44:57.7729355-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-08-23T22:44:57.7729355-07:00", "LastModifiedUser": "sample string 6" }, "DisplayOrder": 1, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "820ce983-a6f1-4ca1-b9b0-f3a9afa8a1bc", "FieldId": "15fcc0a1-6487-430f-8b46-8751ee5d2c18", "FieldName": "sample string 1", "FieldLabel": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "820ce983-a6f1-4ca1-b9b0-f3a9afa8a1bc", "FieldId": "15fcc0a1-6487-430f-8b46-8751ee5d2c18", "FieldName": "sample string 1", "FieldLabel": "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 4", "CompanyId": "49a5691b-f9d2-4187-8fe6-88f5f334079e", "CreateDate": "2025-08-23T22:44:57.7729355-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-08-23T22:44:57.7729355-07:00", "LastModifiedUser": "sample string 7" }
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": "58592d5f-94e6-4e3c-aff9-7a2a28d44bd1", "Name": "sample string 1", "Description": "sample string 2", "AssetType": { "AssetTypeId": "4e07145d-d3ca-4e4e-858d-32051a2be8ac", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "b652e07c-0bc0-43f7-ab7f-8788bd10de9b", "CreateDate": "2025-08-23T22:44:57.7729355-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-08-23T22:44:57.7729355-07:00", "LastModifiedUser": "sample string 7" }, "FrequencyNeeded": 1, "ValueNeededDate": "2025-08-23T22:44:57.7729355-07:00", "Active": true, "Fields": [ { "FormTypeFieldId": "0ca76aee-8829-48b2-a733-1ae585ccdcb3", "Section": { "FormTypeSectionId": "bccd84de-d014-4675-8672-c5089a518510", "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": "dc994541-fd3c-4e77-a78f-cb9c9f9ecbb1", "Name": "sample string 1" }, "Unit": { "UnitId": "9c4820c5-53c9-4c4b-9cad-8f84ba2aa251", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "7d69701d-d3a1-42ce-9ffa-e5968d94869d", "CreateDate": "2025-08-23T22:44:57.7729355-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-08-23T22:44:57.7729355-07:00", "LastModifiedUser": "sample string 6" }, "DisplayOrder": 1, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "e5cea9b4-5455-4b02-afe1-d4966893474c", "FieldId": "c9fb03aa-17a9-49f0-a59b-f9de6076e6a6", "FieldName": "sample string 1", "FieldLabel": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "e5cea9b4-5455-4b02-afe1-d4966893474c", "FieldId": "c9fb03aa-17a9-49f0-a59b-f9de6076e6a6", "FieldName": "sample string 1", "FieldLabel": "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": "0ca76aee-8829-48b2-a733-1ae585ccdcb3", "Section": { "FormTypeSectionId": "bccd84de-d014-4675-8672-c5089a518510", "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": "dc994541-fd3c-4e77-a78f-cb9c9f9ecbb1", "Name": "sample string 1" }, "Unit": { "UnitId": "9c4820c5-53c9-4c4b-9cad-8f84ba2aa251", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "7d69701d-d3a1-42ce-9ffa-e5968d94869d", "CreateDate": "2025-08-23T22:44:57.7729355-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-08-23T22:44:57.7729355-07:00", "LastModifiedUser": "sample string 6" }, "DisplayOrder": 1, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "e5cea9b4-5455-4b02-afe1-d4966893474c", "FieldId": "c9fb03aa-17a9-49f0-a59b-f9de6076e6a6", "FieldName": "sample string 1", "FieldLabel": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "e5cea9b4-5455-4b02-afe1-d4966893474c", "FieldId": "c9fb03aa-17a9-49f0-a59b-f9de6076e6a6", "FieldName": "sample string 1", "FieldLabel": "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 4", "CompanyId": "6f8df91a-05bd-4bea-82d2-f3207f1ab090", "CreateDate": "2025-08-23T22:44:57.7729355-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-08-23T22:44:57.7729355-07:00", "LastModifiedUser": "sample string 7" }, "Total": 1, "Message": "sample string 1" }