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": "5f058f95-c9e7-45f0-b9c2-0a9468a8badd", "Name": "sample string 1", "Description": "sample string 2", "AssetType": { "AssetTypeId": "04551f15-e60a-410c-8c90-c359603cf107", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "737c2fbc-917e-443c-b118-a656711ecba4", "CreateDate": "2025-04-30T13:41:04.3619209-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-04-30T13:41:04.3619209-07:00", "LastModifiedUser": "sample string 7" }, "FrequencyNeeded": 1, "ValueNeededDate": "2025-04-30T13:41:04.3619209-07:00", "Fields": [ { "FormTypeFieldId": "d8196e01-a304-4dcf-af8c-504496f17604", "Section": { "FormTypeSectionId": "8d53f07d-0992-4850-a2bf-201e6ed1b8d2", "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": "0c89d9b0-6dd7-4ae7-9fbc-a963fde9a764", "Name": "sample string 1" }, "Unit": { "UnitId": "483bcf7f-dabc-442a-92f3-9cc325e348af", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "d0f91633-8e18-4b6c-86b8-6e9c3a11f0f5", "CreateDate": "2025-04-30T13:41:04.3619209-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-04-30T13:41:04.3619209-07:00", "LastModifiedUser": "sample string 6" }, "DisplayOrder": 1, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "0b71ccab-03d9-4031-bbcb-223b9fb43498", "FieldId": "7fc57e1c-72e0-4b41-8dbb-3f06d3658587", "FieldName": "sample string 1", "FieldLabel": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "0b71ccab-03d9-4031-bbcb-223b9fb43498", "FieldId": "7fc57e1c-72e0-4b41-8dbb-3f06d3658587", "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": "d8196e01-a304-4dcf-af8c-504496f17604", "Section": { "FormTypeSectionId": "8d53f07d-0992-4850-a2bf-201e6ed1b8d2", "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": "0c89d9b0-6dd7-4ae7-9fbc-a963fde9a764", "Name": "sample string 1" }, "Unit": { "UnitId": "483bcf7f-dabc-442a-92f3-9cc325e348af", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "d0f91633-8e18-4b6c-86b8-6e9c3a11f0f5", "CreateDate": "2025-04-30T13:41:04.3619209-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-04-30T13:41:04.3619209-07:00", "LastModifiedUser": "sample string 6" }, "DisplayOrder": 1, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "0b71ccab-03d9-4031-bbcb-223b9fb43498", "FieldId": "7fc57e1c-72e0-4b41-8dbb-3f06d3658587", "FieldName": "sample string 1", "FieldLabel": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "0b71ccab-03d9-4031-bbcb-223b9fb43498", "FieldId": "7fc57e1c-72e0-4b41-8dbb-3f06d3658587", "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 3", "CompanyId": "ec1ef36c-8bfa-4643-8545-6aa18d1ee78d", "CreateDate": "2025-04-30T13:41:04.3619209-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-04-30T13:41:04.3619209-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": "8ebc6e4e-9da4-4daa-a098-72144b392432", "Name": "sample string 1", "Description": "sample string 2", "AssetType": { "AssetTypeId": "3909680a-196d-4103-b20f-219adaacd4a0", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "dd3f90f9-21fb-4a3a-a548-08d8bb38ba6c", "CreateDate": "2025-04-30T13:41:04.3619209-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-04-30T13:41:04.3619209-07:00", "LastModifiedUser": "sample string 7" }, "FrequencyNeeded": 1, "ValueNeededDate": "2025-04-30T13:41:04.3619209-07:00", "Fields": [ { "FormTypeFieldId": "1217614f-ca65-402f-b630-855b92c5a25b", "Section": { "FormTypeSectionId": "f41d2b31-ccdd-4dc8-8ddf-ee4ea9f5ea47", "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": "6df41bc3-7e52-4af3-bfb5-e31c49cf1ef5", "Name": "sample string 1" }, "Unit": { "UnitId": "c194a87f-4335-43ae-be04-900737f6c4f4", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "2cbc2cec-44fa-4ed2-9456-e694e24e32ae", "CreateDate": "2025-04-30T13:41:04.3619209-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-04-30T13:41:04.3619209-07:00", "LastModifiedUser": "sample string 6" }, "DisplayOrder": 1, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "e2f62ef4-67e6-4346-ad6a-f4e95f9a7182", "FieldId": "cd5d8457-0357-4570-8d71-40db66fba64e", "FieldName": "sample string 1", "FieldLabel": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "e2f62ef4-67e6-4346-ad6a-f4e95f9a7182", "FieldId": "cd5d8457-0357-4570-8d71-40db66fba64e", "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": "1217614f-ca65-402f-b630-855b92c5a25b", "Section": { "FormTypeSectionId": "f41d2b31-ccdd-4dc8-8ddf-ee4ea9f5ea47", "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": "6df41bc3-7e52-4af3-bfb5-e31c49cf1ef5", "Name": "sample string 1" }, "Unit": { "UnitId": "c194a87f-4335-43ae-be04-900737f6c4f4", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "2cbc2cec-44fa-4ed2-9456-e694e24e32ae", "CreateDate": "2025-04-30T13:41:04.3619209-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-04-30T13:41:04.3619209-07:00", "LastModifiedUser": "sample string 6" }, "DisplayOrder": 1, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "e2f62ef4-67e6-4346-ad6a-f4e95f9a7182", "FieldId": "cd5d8457-0357-4570-8d71-40db66fba64e", "FieldName": "sample string 1", "FieldLabel": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "e2f62ef4-67e6-4346-ad6a-f4e95f9a7182", "FieldId": "cd5d8457-0357-4570-8d71-40db66fba64e", "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 3", "CompanyId": "cecffa3d-b5cf-444a-b814-f9cb29a006ca", "CreateDate": "2025-04-30T13:41:04.3619209-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-04-30T13:41:04.3619209-07:00", "LastModifiedUser": "sample string 6" }, "Total": 1, "Message": "sample string 1" }