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": "dd3c4d12-83c1-4c9e-bec6-361a812a82a1", "Name": "sample string 1", "Description": "sample string 2", "AssetType": { "AssetTypeId": "5d3435a5-22bd-4503-81f0-b0a96735be30", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "238dbaa6-ae1d-4165-986a-54743e94dc3a", "CreateDate": "2025-03-09T08:29:19.0289016-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-03-09T08:29:19.0289016-07:00", "LastModifiedUser": "sample string 8" }, "FrequencyNeeded": 1, "ValueNeededDate": "2025-03-09T08:29:19.0289016-07:00", "Fields": [ { "FormTypeFieldId": "2edbb2b0-498b-4277-b93c-ba5ffd4d1b89", "Section": { "FormTypeSectionId": "18fa2e4c-6d24-4bcd-8a8b-ded71203bd9d", "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": "5548720d-97f5-4327-b41e-a404acd84520", "Name": "sample string 1" }, "Unit": { "UnitId": "cfdb499c-1c3c-4d19-af69-63a08159b558", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "b9c872f5-c459-418f-8425-b0d59d45cbb9", "CreateDate": "2025-03-09T08:29:19.0289016-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-03-09T08:29:19.0289016-07:00", "LastModifiedUser": "sample string 6" }, "DisplayOrder": 1, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "d040724e-2d13-4e65-8bf1-db62bf2d58c9", "FieldId": "03d53fe4-4a8b-4a0a-91a9-b18cb5d3df6d", "FieldName": "sample string 1", "FieldLable": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "d040724e-2d13-4e65-8bf1-db62bf2d58c9", "FieldId": "03d53fe4-4a8b-4a0a-91a9-b18cb5d3df6d", "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": "2edbb2b0-498b-4277-b93c-ba5ffd4d1b89", "Section": { "FormTypeSectionId": "18fa2e4c-6d24-4bcd-8a8b-ded71203bd9d", "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": "5548720d-97f5-4327-b41e-a404acd84520", "Name": "sample string 1" }, "Unit": { "UnitId": "cfdb499c-1c3c-4d19-af69-63a08159b558", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "b9c872f5-c459-418f-8425-b0d59d45cbb9", "CreateDate": "2025-03-09T08:29:19.0289016-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-03-09T08:29:19.0289016-07:00", "LastModifiedUser": "sample string 6" }, "DisplayOrder": 1, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "d040724e-2d13-4e65-8bf1-db62bf2d58c9", "FieldId": "03d53fe4-4a8b-4a0a-91a9-b18cb5d3df6d", "FieldName": "sample string 1", "FieldLable": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "d040724e-2d13-4e65-8bf1-db62bf2d58c9", "FieldId": "03d53fe4-4a8b-4a0a-91a9-b18cb5d3df6d", "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": "4d076859-a59b-446f-808c-c1e11b0ff6cd", "CreateDate": "2025-03-09T08:29:19.0289016-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-03-09T08:29:19.0289016-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": "55f19e30-6e72-4da8-b0f2-a16a2fcdc2a9", "Name": "sample string 1", "Description": "sample string 2", "AssetType": { "AssetTypeId": "e3667f2a-4701-4686-aa12-99a82a36316e", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "54bab789-8c8a-4f7e-8fe5-26ce8f9bd304", "CreateDate": "2025-03-09T08:29:19.0289016-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-03-09T08:29:19.0289016-07:00", "LastModifiedUser": "sample string 8" }, "FrequencyNeeded": 1, "ValueNeededDate": "2025-03-09T08:29:19.0289016-07:00", "Fields": [ { "FormTypeFieldId": "02be9006-85d7-43a9-a717-32b617445973", "Section": { "FormTypeSectionId": "7182acbc-f242-411f-8079-455814ce2377", "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": "ea65b5d3-7d55-4d59-8afe-2566f3ff12e0", "Name": "sample string 1" }, "Unit": { "UnitId": "496545f3-5ceb-4e7e-b573-22b73284482a", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "474ccbe6-bd20-4181-8193-b89feefeedfa", "CreateDate": "2025-03-09T08:29:19.0289016-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-03-09T08:29:19.0289016-07:00", "LastModifiedUser": "sample string 6" }, "DisplayOrder": 1, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "33c5c2f2-aec3-4129-991f-69f3f20a5684", "FieldId": "dbe42ef7-d45a-4b02-aa3f-098441b42121", "FieldName": "sample string 1", "FieldLable": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "33c5c2f2-aec3-4129-991f-69f3f20a5684", "FieldId": "dbe42ef7-d45a-4b02-aa3f-098441b42121", "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": "02be9006-85d7-43a9-a717-32b617445973", "Section": { "FormTypeSectionId": "7182acbc-f242-411f-8079-455814ce2377", "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": "ea65b5d3-7d55-4d59-8afe-2566f3ff12e0", "Name": "sample string 1" }, "Unit": { "UnitId": "496545f3-5ceb-4e7e-b573-22b73284482a", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "474ccbe6-bd20-4181-8193-b89feefeedfa", "CreateDate": "2025-03-09T08:29:19.0289016-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-03-09T08:29:19.0289016-07:00", "LastModifiedUser": "sample string 6" }, "DisplayOrder": 1, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "33c5c2f2-aec3-4129-991f-69f3f20a5684", "FieldId": "dbe42ef7-d45a-4b02-aa3f-098441b42121", "FieldName": "sample string 1", "FieldLable": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "33c5c2f2-aec3-4129-991f-69f3f20a5684", "FieldId": "dbe42ef7-d45a-4b02-aa3f-098441b42121", "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": "664b6cf3-b1ec-4e03-8356-f10cf51bf7f5", "CreateDate": "2025-03-09T08:29:19.0289016-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-03-09T08:29:19.0289016-07:00", "LastModifiedUser": "sample string 6" }, "Total": 1, "Message": "sample string 1" }