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": "9bb4e3ee-715c-4f87-80f2-c1c8c77feede", "Name": "sample string 1", "Description": "sample string 2", "AssetType": { "AssetTypeId": "aec0e79d-f0b1-4038-b9ee-7a2ccda89885", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "edbdf6d2-7035-4de0-9f9b-25f9718ad1aa", "CreateDate": "2025-06-02T14:45:04.7747615-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-06-02T14:45:04.7747615-07:00", "LastModifiedUser": "sample string 8" }, "FrequencyNeeded": 1, "ValueNeededDate": "2025-06-02T14:45:04.7747615-07:00", "Fields": [ { "FormTypeFieldId": "958adf0f-01cd-4157-bb25-40f0d9d4eaec", "Section": { "FormTypeSectionId": "9b9d6800-fb97-4ad6-8a2e-2563cdedaed1", "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": "d6216126-062b-43c4-8399-57f556cb4f30", "Name": "sample string 1" }, "Unit": { "UnitId": "3897ee23-0153-4958-afac-ce033874c281", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "2fbd5f28-9445-4506-b47e-9a69ad49a31a", "CreateDate": "2025-06-02T14:45:04.7747615-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-06-02T14:45:04.7747615-07:00", "LastModifiedUser": "sample string 6" }, "DisplayOrder": 1, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "3931221d-7e19-4d1c-8dce-78bda577aeac", "FieldId": "1e0338e6-10dd-46eb-9a1f-fb97f3ec209b", "FieldName": "sample string 1", "FieldLable": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "3931221d-7e19-4d1c-8dce-78bda577aeac", "FieldId": "1e0338e6-10dd-46eb-9a1f-fb97f3ec209b", "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": "958adf0f-01cd-4157-bb25-40f0d9d4eaec", "Section": { "FormTypeSectionId": "9b9d6800-fb97-4ad6-8a2e-2563cdedaed1", "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": "d6216126-062b-43c4-8399-57f556cb4f30", "Name": "sample string 1" }, "Unit": { "UnitId": "3897ee23-0153-4958-afac-ce033874c281", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "2fbd5f28-9445-4506-b47e-9a69ad49a31a", "CreateDate": "2025-06-02T14:45:04.7747615-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-06-02T14:45:04.7747615-07:00", "LastModifiedUser": "sample string 6" }, "DisplayOrder": 1, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "3931221d-7e19-4d1c-8dce-78bda577aeac", "FieldId": "1e0338e6-10dd-46eb-9a1f-fb97f3ec209b", "FieldName": "sample string 1", "FieldLable": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "3931221d-7e19-4d1c-8dce-78bda577aeac", "FieldId": "1e0338e6-10dd-46eb-9a1f-fb97f3ec209b", "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": "e9d6f442-3bed-442f-a5cf-7b7745b34813", "CreateDate": "2025-06-02T14:45:04.7747615-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-06-02T14:45:04.7747615-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": "3e204b53-001c-48db-8525-25d4bced7372", "Name": "sample string 1", "Description": "sample string 2", "AssetType": { "AssetTypeId": "bc836504-8cb6-483e-83c3-bf572d847aa8", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "846ff7bf-8e2b-41ba-8ec1-27b865db139a", "CreateDate": "2025-06-02T14:45:04.7747615-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-06-02T14:45:04.7747615-07:00", "LastModifiedUser": "sample string 8" }, "FrequencyNeeded": 1, "ValueNeededDate": "2025-06-02T14:45:04.7747615-07:00", "Fields": [ { "FormTypeFieldId": "1d857246-58c7-4f4b-a88b-9a9842d2c94d", "Section": { "FormTypeSectionId": "cc65adad-0f62-4799-aa98-01d98d18d696", "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": "d777bba2-2fa8-4b9c-a1b9-c823576d9efd", "Name": "sample string 1" }, "Unit": { "UnitId": "0b532c5e-0023-4c07-8809-b6209b39d350", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "3269d7d3-8623-42f6-9119-34240865035e", "CreateDate": "2025-06-02T14:45:04.7747615-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-06-02T14:45:04.7747615-07:00", "LastModifiedUser": "sample string 6" }, "DisplayOrder": 1, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "a23ecc11-6c9e-482f-aec9-df8437d66c2c", "FieldId": "6110f988-d084-4fc0-aff9-4b6b8a0c2358", "FieldName": "sample string 1", "FieldLable": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "a23ecc11-6c9e-482f-aec9-df8437d66c2c", "FieldId": "6110f988-d084-4fc0-aff9-4b6b8a0c2358", "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": "1d857246-58c7-4f4b-a88b-9a9842d2c94d", "Section": { "FormTypeSectionId": "cc65adad-0f62-4799-aa98-01d98d18d696", "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": "d777bba2-2fa8-4b9c-a1b9-c823576d9efd", "Name": "sample string 1" }, "Unit": { "UnitId": "0b532c5e-0023-4c07-8809-b6209b39d350", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "3269d7d3-8623-42f6-9119-34240865035e", "CreateDate": "2025-06-02T14:45:04.7747615-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-06-02T14:45:04.7747615-07:00", "LastModifiedUser": "sample string 6" }, "DisplayOrder": 1, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "a23ecc11-6c9e-482f-aec9-df8437d66c2c", "FieldId": "6110f988-d084-4fc0-aff9-4b6b8a0c2358", "FieldName": "sample string 1", "FieldLable": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "a23ecc11-6c9e-482f-aec9-df8437d66c2c", "FieldId": "6110f988-d084-4fc0-aff9-4b6b8a0c2358", "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": "8dbc7833-9ba6-4f18-a786-4cbce57441a2", "CreateDate": "2025-06-02T14:45:04.7747615-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-06-02T14:45:04.7747615-07:00", "LastModifiedUser": "sample string 6" }, "Total": 1, "Message": "sample string 1" }