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": "5e1f6172-8056-4e71-ad37-626ab8a67c99", "Name": "sample string 1", "Description": "sample string 2", "AssetType": { "AssetTypeId": "3342cc95-9210-428a-b2e4-4290ab0a7f3e", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "71b1ed39-345a-46fc-81b3-d60e33b9ab71", "CreateDate": "2024-12-26T03:00:37.1793273-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-12-26T03:00:37.1793273-08:00", "LastModifiedUser": "sample string 7" }, "FrequencyNeeded": 1, "ValueNeededDate": "2024-12-26T03:00:37.1793273-08:00", "Fields": [ { "FormTypeFieldId": "ff9343c6-da4e-46f3-9c0c-9391561cea4a", "Section": { "FormTypeSectionId": "f507c07d-bc31-4eeb-9931-e0d1a5f40a56", "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": "37c8d802-2aef-4b17-b02a-0422b7c31ff5", "Name": "sample string 1" }, "Unit": { "UnitId": "38f14244-5939-486f-b114-5d0a7ae775f1", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "f761e373-21a7-4f1b-a4c6-7fbcc6311ede", "CreateDate": "2024-12-26T03:00:37.1793273-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-12-26T03:00:37.1793273-08:00", "LastModifiedUser": "sample string 6" }, "DisplayOrder": 1, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "8af6267a-8a70-41b5-9f3c-8b67d16da2a9", "FieldId": "16512c23-7ed0-4859-8c3e-3d0249ab12e0", "FieldName": "sample string 1", "FieldLabel": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "8af6267a-8a70-41b5-9f3c-8b67d16da2a9", "FieldId": "16512c23-7ed0-4859-8c3e-3d0249ab12e0", "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": "ff9343c6-da4e-46f3-9c0c-9391561cea4a", "Section": { "FormTypeSectionId": "f507c07d-bc31-4eeb-9931-e0d1a5f40a56", "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": "37c8d802-2aef-4b17-b02a-0422b7c31ff5", "Name": "sample string 1" }, "Unit": { "UnitId": "38f14244-5939-486f-b114-5d0a7ae775f1", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "f761e373-21a7-4f1b-a4c6-7fbcc6311ede", "CreateDate": "2024-12-26T03:00:37.1793273-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-12-26T03:00:37.1793273-08:00", "LastModifiedUser": "sample string 6" }, "DisplayOrder": 1, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "8af6267a-8a70-41b5-9f3c-8b67d16da2a9", "FieldId": "16512c23-7ed0-4859-8c3e-3d0249ab12e0", "FieldName": "sample string 1", "FieldLabel": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "8af6267a-8a70-41b5-9f3c-8b67d16da2a9", "FieldId": "16512c23-7ed0-4859-8c3e-3d0249ab12e0", "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": "620f2f4d-9bf9-4964-ad2b-22e345e0c229", "CreateDate": "2024-12-26T03:00:37.1793273-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-12-26T03:00:37.1793273-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": "2325cef6-7364-4b53-8636-2a1ae4b3594d", "Name": "sample string 1", "Description": "sample string 2", "AssetType": { "AssetTypeId": "02a82caf-8721-46a7-8582-714071a6340b", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "83959aaf-cf5f-4ed4-b78d-a3f2d8e4a05c", "CreateDate": "2024-12-26T03:00:37.1793273-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-12-26T03:00:37.1793273-08:00", "LastModifiedUser": "sample string 7" }, "FrequencyNeeded": 1, "ValueNeededDate": "2024-12-26T03:00:37.1793273-08:00", "Fields": [ { "FormTypeFieldId": "a700ec21-143d-4a34-b765-5c1503d0b324", "Section": { "FormTypeSectionId": "6e0996f7-0ae6-4e81-a560-918ceab78d7f", "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": "222233b4-d0d6-4cba-b8d7-bda6d4b80190", "Name": "sample string 1" }, "Unit": { "UnitId": "332c1425-7016-4160-9114-9f9e13c832fe", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "5627756e-244c-405c-a7a0-5004655d3947", "CreateDate": "2024-12-26T03:00:37.1793273-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-12-26T03:00:37.1793273-08:00", "LastModifiedUser": "sample string 6" }, "DisplayOrder": 1, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "2894094b-e513-4f54-af7b-ab2f8942d82d", "FieldId": "9e0c25ad-f2a3-4c3e-a0a3-615e53388516", "FieldName": "sample string 1", "FieldLabel": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "2894094b-e513-4f54-af7b-ab2f8942d82d", "FieldId": "9e0c25ad-f2a3-4c3e-a0a3-615e53388516", "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": "a700ec21-143d-4a34-b765-5c1503d0b324", "Section": { "FormTypeSectionId": "6e0996f7-0ae6-4e81-a560-918ceab78d7f", "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": "222233b4-d0d6-4cba-b8d7-bda6d4b80190", "Name": "sample string 1" }, "Unit": { "UnitId": "332c1425-7016-4160-9114-9f9e13c832fe", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "5627756e-244c-405c-a7a0-5004655d3947", "CreateDate": "2024-12-26T03:00:37.1793273-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-12-26T03:00:37.1793273-08:00", "LastModifiedUser": "sample string 6" }, "DisplayOrder": 1, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "2894094b-e513-4f54-af7b-ab2f8942d82d", "FieldId": "9e0c25ad-f2a3-4c3e-a0a3-615e53388516", "FieldName": "sample string 1", "FieldLabel": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "2894094b-e513-4f54-af7b-ab2f8942d82d", "FieldId": "9e0c25ad-f2a3-4c3e-a0a3-615e53388516", "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": "aaf23d80-683d-483d-bee3-50d03952e5fc", "CreateDate": "2024-12-26T03:00:37.1793273-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-12-26T03:00:37.1793273-08:00", "LastModifiedUser": "sample string 6" }, "Total": 1, "Message": "sample string 1" }