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": "442c6bff-0ef3-47d7-bc4f-73e6044fe58d", "Name": "sample string 1", "Description": "sample string 2", "AssetType": { "AssetTypeId": "9f2b4347-d786-4948-bb47-32c4b685bce0", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "669aebc2-175a-4250-bb7b-76283bf04d3d", "CreateDate": "2024-12-08T04:15:07.8080956-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-12-08T04:15:07.8080956-08:00", "LastModifiedUser": "sample string 7" }, "FrequencyNeeded": 1, "ValueNeededDate": "2024-12-08T04:15:07.8080956-08:00", "Fields": [ { "FormTypeFieldId": "8b927d22-8579-433d-8f45-9b6ab653a977", "Section": { "FormTypeSectionId": "a76f1a32-69e5-4b1f-ba9a-c3eaa0637822", "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": "5ec8889e-1206-40e2-833b-0682cabf1d87", "Name": "sample string 1" }, "Unit": { "UnitId": "d6ea2220-77aa-4597-834e-7b423edd2164", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "723b0da2-bcfd-4509-ab9f-6ebf97da9bf2", "CreateDate": "2024-12-08T04:15:07.8080956-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-12-08T04:15:07.8080956-08:00", "LastModifiedUser": "sample string 6" }, "DisplayOrder": 1, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "6c74a586-a1b1-4b22-a8b7-22a92e096d8a", "FieldId": "88ea38d9-b851-425f-9f7f-f6a074b34531", "FieldName": "sample string 1", "FieldLabel": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "6c74a586-a1b1-4b22-a8b7-22a92e096d8a", "FieldId": "88ea38d9-b851-425f-9f7f-f6a074b34531", "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": "8b927d22-8579-433d-8f45-9b6ab653a977", "Section": { "FormTypeSectionId": "a76f1a32-69e5-4b1f-ba9a-c3eaa0637822", "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": "5ec8889e-1206-40e2-833b-0682cabf1d87", "Name": "sample string 1" }, "Unit": { "UnitId": "d6ea2220-77aa-4597-834e-7b423edd2164", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "723b0da2-bcfd-4509-ab9f-6ebf97da9bf2", "CreateDate": "2024-12-08T04:15:07.8080956-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-12-08T04:15:07.8080956-08:00", "LastModifiedUser": "sample string 6" }, "DisplayOrder": 1, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "6c74a586-a1b1-4b22-a8b7-22a92e096d8a", "FieldId": "88ea38d9-b851-425f-9f7f-f6a074b34531", "FieldName": "sample string 1", "FieldLabel": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "6c74a586-a1b1-4b22-a8b7-22a92e096d8a", "FieldId": "88ea38d9-b851-425f-9f7f-f6a074b34531", "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": "ad057842-f10f-4fab-b7ce-58500ea37bdb", "CreateDate": "2024-12-08T04:15:07.8080956-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-12-08T04:15:07.8080956-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": "0ba5a0bd-23b1-40d5-97f5-cd45c134a173", "Name": "sample string 1", "Description": "sample string 2", "AssetType": { "AssetTypeId": "5c8eb37e-71df-4e05-8f35-9ff024972f2d", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "f3117457-56d7-4cf1-9beb-6f37ddab3092", "CreateDate": "2024-12-08T04:15:07.8080956-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-12-08T04:15:07.8080956-08:00", "LastModifiedUser": "sample string 7" }, "FrequencyNeeded": 1, "ValueNeededDate": "2024-12-08T04:15:07.8080956-08:00", "Fields": [ { "FormTypeFieldId": "625e86c1-aa65-4136-a947-86e7a250c4e4", "Section": { "FormTypeSectionId": "039e631a-ef5b-467f-b71d-b9357c58a071", "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": "07da7836-b520-4f87-bc5d-3b8d27e02a48", "Name": "sample string 1" }, "Unit": { "UnitId": "527ad5f9-602b-4c3a-a54e-06e72bce0e60", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "7ade7399-be13-4bcd-a5d0-c9dce3dc21f1", "CreateDate": "2024-12-08T04:15:07.8080956-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-12-08T04:15:07.8080956-08:00", "LastModifiedUser": "sample string 6" }, "DisplayOrder": 1, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "8e1f8f9d-a5d5-44fb-8bdc-eec78a0656ba", "FieldId": "172db9a8-b5a6-4eca-b824-69c4e36b611d", "FieldName": "sample string 1", "FieldLabel": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "8e1f8f9d-a5d5-44fb-8bdc-eec78a0656ba", "FieldId": "172db9a8-b5a6-4eca-b824-69c4e36b611d", "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": "625e86c1-aa65-4136-a947-86e7a250c4e4", "Section": { "FormTypeSectionId": "039e631a-ef5b-467f-b71d-b9357c58a071", "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": "07da7836-b520-4f87-bc5d-3b8d27e02a48", "Name": "sample string 1" }, "Unit": { "UnitId": "527ad5f9-602b-4c3a-a54e-06e72bce0e60", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "7ade7399-be13-4bcd-a5d0-c9dce3dc21f1", "CreateDate": "2024-12-08T04:15:07.8080956-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-12-08T04:15:07.8080956-08:00", "LastModifiedUser": "sample string 6" }, "DisplayOrder": 1, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "8e1f8f9d-a5d5-44fb-8bdc-eec78a0656ba", "FieldId": "172db9a8-b5a6-4eca-b824-69c4e36b611d", "FieldName": "sample string 1", "FieldLabel": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "8e1f8f9d-a5d5-44fb-8bdc-eec78a0656ba", "FieldId": "172db9a8-b5a6-4eca-b824-69c4e36b611d", "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": "05a695af-94e5-4615-be0d-1c28d23b206a", "CreateDate": "2024-12-08T04:15:07.8080956-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-12-08T04:15:07.8080956-08:00", "LastModifiedUser": "sample string 6" }, "Total": 1, "Message": "sample string 1" }