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": "9b7e2830-6c57-4731-9fac-d66d3a61f155", "Name": "sample string 1", "Description": "sample string 2", "AssetType": { "AssetTypeId": "872c7be0-daaf-4342-b41c-cdeb00e01977", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "e0074f84-9adb-4fc6-a46d-c92a27326f58", "CreateDate": "2025-08-29T17:10:40.5670034-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-08-29T17:10:40.5670034-07:00", "LastModifiedUser": "sample string 8" }, "FrequencyNeeded": 1, "ValueNeededDate": "2025-08-29T17:10:40.5670034-07:00", "Fields": [ { "FormTypeFieldId": "c761dcf3-5d4e-41fc-bd86-9e5a96a39553", "Section": { "FormTypeSectionId": "5ec81df4-fc5a-4539-9eba-bbd11a763969", "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": "7b9e7721-9a1f-4e59-99bf-8bfb7ef0b541", "Name": "sample string 1" }, "Unit": { "UnitId": "b86d0ac5-8ac8-404a-beb2-4efc103b3310", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "e2c2d420-6529-4c4e-b0d5-5272caf10d84", "CreateDate": "2025-08-29T17:10:40.5670034-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-08-29T17:10:40.5670034-07:00", "LastModifiedUser": "sample string 6" }, "DisplayOrder": 1, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "8b6bec91-7855-4c92-a9fe-9afb66f74a25", "FieldId": "7b7de3ef-718e-44d5-ac1a-20f9625b4704", "FieldName": "sample string 1", "FieldLable": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "8b6bec91-7855-4c92-a9fe-9afb66f74a25", "FieldId": "7b7de3ef-718e-44d5-ac1a-20f9625b4704", "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": "c761dcf3-5d4e-41fc-bd86-9e5a96a39553", "Section": { "FormTypeSectionId": "5ec81df4-fc5a-4539-9eba-bbd11a763969", "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": "7b9e7721-9a1f-4e59-99bf-8bfb7ef0b541", "Name": "sample string 1" }, "Unit": { "UnitId": "b86d0ac5-8ac8-404a-beb2-4efc103b3310", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "e2c2d420-6529-4c4e-b0d5-5272caf10d84", "CreateDate": "2025-08-29T17:10:40.5670034-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-08-29T17:10:40.5670034-07:00", "LastModifiedUser": "sample string 6" }, "DisplayOrder": 1, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "8b6bec91-7855-4c92-a9fe-9afb66f74a25", "FieldId": "7b7de3ef-718e-44d5-ac1a-20f9625b4704", "FieldName": "sample string 1", "FieldLable": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "8b6bec91-7855-4c92-a9fe-9afb66f74a25", "FieldId": "7b7de3ef-718e-44d5-ac1a-20f9625b4704", "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": "4d95ee45-4281-481b-b6ce-407c3fee2839", "CreateDate": "2025-08-29T17:10:40.5670034-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-08-29T17:10:40.5670034-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": "19c7de26-e54c-4990-adb2-7708fa8c253c", "Name": "sample string 1", "Description": "sample string 2", "AssetType": { "AssetTypeId": "de8bd5e0-248f-4828-8a1f-8c813b7c9020", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "bfe7c1d1-5d16-475b-8642-a389016a5a4f", "CreateDate": "2025-08-29T17:10:40.5982261-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-08-29T17:10:40.5982261-07:00", "LastModifiedUser": "sample string 8" }, "FrequencyNeeded": 1, "ValueNeededDate": "2025-08-29T17:10:40.5982261-07:00", "Fields": [ { "FormTypeFieldId": "7d83f292-d059-496a-ba2b-1a1704e12bd8", "Section": { "FormTypeSectionId": "59d6039a-83e2-40cb-97ad-b601aec11e71", "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": "518e32ce-9382-451c-a0e5-222419a1184d", "Name": "sample string 1" }, "Unit": { "UnitId": "e4a1b7c8-bdc6-462c-af0b-4e53d4494152", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "d6a084e4-25a0-48f9-aec3-1cf5368b4856", "CreateDate": "2025-08-29T17:10:40.5982261-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-08-29T17:10:40.5982261-07:00", "LastModifiedUser": "sample string 6" }, "DisplayOrder": 1, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "288d94d9-5414-4423-a093-81a1d50aef5e", "FieldId": "1c9019e4-ef63-413a-a8fb-d8cfc43da31b", "FieldName": "sample string 1", "FieldLable": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "288d94d9-5414-4423-a093-81a1d50aef5e", "FieldId": "1c9019e4-ef63-413a-a8fb-d8cfc43da31b", "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": "7d83f292-d059-496a-ba2b-1a1704e12bd8", "Section": { "FormTypeSectionId": "59d6039a-83e2-40cb-97ad-b601aec11e71", "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": "518e32ce-9382-451c-a0e5-222419a1184d", "Name": "sample string 1" }, "Unit": { "UnitId": "e4a1b7c8-bdc6-462c-af0b-4e53d4494152", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "d6a084e4-25a0-48f9-aec3-1cf5368b4856", "CreateDate": "2025-08-29T17:10:40.5982261-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-08-29T17:10:40.5982261-07:00", "LastModifiedUser": "sample string 6" }, "DisplayOrder": 1, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "288d94d9-5414-4423-a093-81a1d50aef5e", "FieldId": "1c9019e4-ef63-413a-a8fb-d8cfc43da31b", "FieldName": "sample string 1", "FieldLable": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "288d94d9-5414-4423-a093-81a1d50aef5e", "FieldId": "1c9019e4-ef63-413a-a8fb-d8cfc43da31b", "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": "1ff80c54-aaa9-4c6f-9e65-1c4a8df5c9fa", "CreateDate": "2025-08-29T17:10:40.5982261-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-08-29T17:10:40.5982261-07:00", "LastModifiedUser": "sample string 6" }, "Total": 1, "Message": "sample string 1" }