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": "04b96051-032e-4b56-9a3e-6d25a8910f69", "Name": "sample string 1", "Description": "sample string 2", "AssetType": { "AssetTypeId": "7bee2cdc-1ad7-4e5f-9601-8ebae493f01d", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "90391d29-bfc0-4ff3-a926-55c65f80762c", "CreateDate": "2025-01-30T16:46:19.4724983-08:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-01-30T16:46:19.4724983-08:00", "LastModifiedUser": "sample string 8" }, "FrequencyNeeded": 1, "ValueNeededDate": "2025-01-30T16:46:19.4724983-08:00", "Fields": [ { "FormTypeFieldId": "2b53b454-2d63-4aab-958f-d54673f66e07", "Section": { "FormTypeSectionId": "65d211ff-c535-4b6a-997b-374eb9bd38f3", "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": "c6178e41-81df-4ec3-9edd-b25a44c7930c", "Name": "sample string 1" }, "Unit": { "UnitId": "328e2af2-5081-415e-aa80-533a115b265b", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "82a6e537-74f4-41ae-a637-85223c678bc3", "CreateDate": "2025-01-30T16:46:19.4724983-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-01-30T16:46:19.4724983-08:00", "LastModifiedUser": "sample string 6" }, "DisplayOrder": 1, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "1438a260-9ded-4686-9fa5-ef50e3161588", "FieldId": "70e7bd35-1a03-4538-a35a-73a08e1b118e", "FieldName": "sample string 1", "FieldLable": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "1438a260-9ded-4686-9fa5-ef50e3161588", "FieldId": "70e7bd35-1a03-4538-a35a-73a08e1b118e", "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": "2b53b454-2d63-4aab-958f-d54673f66e07", "Section": { "FormTypeSectionId": "65d211ff-c535-4b6a-997b-374eb9bd38f3", "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": "c6178e41-81df-4ec3-9edd-b25a44c7930c", "Name": "sample string 1" }, "Unit": { "UnitId": "328e2af2-5081-415e-aa80-533a115b265b", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "82a6e537-74f4-41ae-a637-85223c678bc3", "CreateDate": "2025-01-30T16:46:19.4724983-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-01-30T16:46:19.4724983-08:00", "LastModifiedUser": "sample string 6" }, "DisplayOrder": 1, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "1438a260-9ded-4686-9fa5-ef50e3161588", "FieldId": "70e7bd35-1a03-4538-a35a-73a08e1b118e", "FieldName": "sample string 1", "FieldLable": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "1438a260-9ded-4686-9fa5-ef50e3161588", "FieldId": "70e7bd35-1a03-4538-a35a-73a08e1b118e", "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": "224831ba-c2c3-4805-a637-3fdebbb45b15", "CreateDate": "2025-01-30T16:46:19.4724983-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-01-30T16:46:19.4724983-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": "acc6f172-a3cd-43d0-9414-1217f6292776", "Name": "sample string 1", "Description": "sample string 2", "AssetType": { "AssetTypeId": "7da21353-e0c9-4556-a125-7f71abff46ac", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "b8b0deb3-2cea-49b4-b175-314e2e0f590a", "CreateDate": "2025-01-30T16:46:19.4724983-08:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-01-30T16:46:19.4724983-08:00", "LastModifiedUser": "sample string 8" }, "FrequencyNeeded": 1, "ValueNeededDate": "2025-01-30T16:46:19.4724983-08:00", "Fields": [ { "FormTypeFieldId": "b442d85c-9356-4330-a4d7-c56fe8dad276", "Section": { "FormTypeSectionId": "1fb1a1c2-f1d9-4a22-a90b-2a9f3197e350", "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": "fb16d7d0-925b-40d8-91fa-0765d6787dd7", "Name": "sample string 1" }, "Unit": { "UnitId": "49cc60c6-4a7b-4c89-9967-7355be5e1179", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "33f4e52e-2684-425f-8e12-676fad5961ae", "CreateDate": "2025-01-30T16:46:19.4724983-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-01-30T16:46:19.4724983-08:00", "LastModifiedUser": "sample string 6" }, "DisplayOrder": 1, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "3fd2fce6-2115-42d6-854f-5c29fad29342", "FieldId": "e925f4fb-9062-41bd-b9cf-b52dc3a8e831", "FieldName": "sample string 1", "FieldLable": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "3fd2fce6-2115-42d6-854f-5c29fad29342", "FieldId": "e925f4fb-9062-41bd-b9cf-b52dc3a8e831", "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": "b442d85c-9356-4330-a4d7-c56fe8dad276", "Section": { "FormTypeSectionId": "1fb1a1c2-f1d9-4a22-a90b-2a9f3197e350", "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": "fb16d7d0-925b-40d8-91fa-0765d6787dd7", "Name": "sample string 1" }, "Unit": { "UnitId": "49cc60c6-4a7b-4c89-9967-7355be5e1179", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "33f4e52e-2684-425f-8e12-676fad5961ae", "CreateDate": "2025-01-30T16:46:19.4724983-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-01-30T16:46:19.4724983-08:00", "LastModifiedUser": "sample string 6" }, "DisplayOrder": 1, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "3fd2fce6-2115-42d6-854f-5c29fad29342", "FieldId": "e925f4fb-9062-41bd-b9cf-b52dc3a8e831", "FieldName": "sample string 1", "FieldLable": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "3fd2fce6-2115-42d6-854f-5c29fad29342", "FieldId": "e925f4fb-9062-41bd-b9cf-b52dc3a8e831", "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": "36a19742-0158-4fae-b59d-1c5baef978e2", "CreateDate": "2025-01-30T16:46:19.4724983-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-01-30T16:46:19.4724983-08:00", "LastModifiedUser": "sample string 6" }, "Total": 1, "Message": "sample string 1" }