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.
FormType| Name | 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": "b3ef6cb8-ab43-49a4-a286-bb0f322980ca",
"Name": "sample string 1",
"Description": "sample string 2",
"AssetType": {
"AssetTypeId": "fce86ea9-a732-4567-ab5a-f1fe03bd457a",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "be52e154-05c8-4d19-b137-98ed972e3447",
"CreateDate": "2025-11-04T16:36:38.945257-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2025-11-04T16:36:38.945257-08:00",
"LastModifiedUser": "sample string 8"
},
"FrequencyNeeded": 1,
"ValueNeededDate": "2025-11-04T16:36:38.945257-08:00",
"Fields": [
{
"FormTypeFieldId": "46ed15c1-8aea-4dc9-9946-59fe47cb2452",
"Section": {
"FormTypeSectionId": "06c44dfa-97d4-41a6-a403-5d00ee7bca30",
"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": "03467666-f786-4bf0-962b-f6d162e5516a",
"Name": "sample string 1"
},
"Unit": {
"UnitId": "1b664b7e-1359-4139-8a9c-baad1625c6de",
"Code": "sample string 1",
"Description": "sample string 2",
"SourceSystemId": "sample string 3",
"CompanyId": "7fb56010-5717-467e-8ff7-c67173d8f5e1",
"CreateDate": "2025-11-04T16:36:38.945257-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2025-11-04T16:36:38.945257-08:00",
"LastModifiedUser": "sample string 6"
},
"DisplayOrder": 1,
"MinValue": 1.0,
"MaxValue": 1.0,
"MinLength": 1,
"MaxLength": 1,
"HasValidValues": true,
"ValidValues": [
{
"ValidValueId": "2437afe7-6963-454d-b3cf-ea2b9501c4cc",
"FieldId": "b38f6e86-28dd-4ba5-90b7-8a8dfba0da5d",
"FieldName": "sample string 1",
"FieldLable": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
},
{
"ValidValueId": "2437afe7-6963-454d-b3cf-ea2b9501c4cc",
"FieldId": "b38f6e86-28dd-4ba5-90b7-8a8dfba0da5d",
"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": "46ed15c1-8aea-4dc9-9946-59fe47cb2452",
"Section": {
"FormTypeSectionId": "06c44dfa-97d4-41a6-a403-5d00ee7bca30",
"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": "03467666-f786-4bf0-962b-f6d162e5516a",
"Name": "sample string 1"
},
"Unit": {
"UnitId": "1b664b7e-1359-4139-8a9c-baad1625c6de",
"Code": "sample string 1",
"Description": "sample string 2",
"SourceSystemId": "sample string 3",
"CompanyId": "7fb56010-5717-467e-8ff7-c67173d8f5e1",
"CreateDate": "2025-11-04T16:36:38.945257-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2025-11-04T16:36:38.945257-08:00",
"LastModifiedUser": "sample string 6"
},
"DisplayOrder": 1,
"MinValue": 1.0,
"MaxValue": 1.0,
"MinLength": 1,
"MaxLength": 1,
"HasValidValues": true,
"ValidValues": [
{
"ValidValueId": "2437afe7-6963-454d-b3cf-ea2b9501c4cc",
"FieldId": "b38f6e86-28dd-4ba5-90b7-8a8dfba0da5d",
"FieldName": "sample string 1",
"FieldLable": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
},
{
"ValidValueId": "2437afe7-6963-454d-b3cf-ea2b9501c4cc",
"FieldId": "b38f6e86-28dd-4ba5-90b7-8a8dfba0da5d",
"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": "d618c4ec-1156-47db-8588-77e742a46b43",
"CreateDate": "2025-11-04T16:36:38.945257-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2025-11-04T16:36:38.945257-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": "6d1b0777-459e-4da3-a6ad-f100f4d981fd",
"Name": "sample string 1",
"Description": "sample string 2",
"AssetType": {
"AssetTypeId": "038a6cba-a8c2-4ed4-927f-5fae717fb0dd",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "38c5e624-8084-45fc-90bb-e38674eeb970",
"CreateDate": "2025-11-04T16:36:38.945257-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2025-11-04T16:36:38.945257-08:00",
"LastModifiedUser": "sample string 8"
},
"FrequencyNeeded": 1,
"ValueNeededDate": "2025-11-04T16:36:38.945257-08:00",
"Fields": [
{
"FormTypeFieldId": "3b4a3c12-62d2-458a-b4e8-f4043158e44a",
"Section": {
"FormTypeSectionId": "302ff896-9bbb-4cd9-b8fa-4d2d61b9ab55",
"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": "b6d2ec69-77dc-4233-bf10-d9b6ed63d296",
"Name": "sample string 1"
},
"Unit": {
"UnitId": "8dbc5dd6-154d-4298-a7d5-4521f4c79e40",
"Code": "sample string 1",
"Description": "sample string 2",
"SourceSystemId": "sample string 3",
"CompanyId": "d5d9b23b-defd-43d4-a577-f3c60aee057d",
"CreateDate": "2025-11-04T16:36:38.945257-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2025-11-04T16:36:38.945257-08:00",
"LastModifiedUser": "sample string 6"
},
"DisplayOrder": 1,
"MinValue": 1.0,
"MaxValue": 1.0,
"MinLength": 1,
"MaxLength": 1,
"HasValidValues": true,
"ValidValues": [
{
"ValidValueId": "206969d3-37a6-472d-a738-c6de6962be58",
"FieldId": "c07e21f2-a40e-4d6b-8778-0ce09a702e48",
"FieldName": "sample string 1",
"FieldLable": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
},
{
"ValidValueId": "206969d3-37a6-472d-a738-c6de6962be58",
"FieldId": "c07e21f2-a40e-4d6b-8778-0ce09a702e48",
"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": "3b4a3c12-62d2-458a-b4e8-f4043158e44a",
"Section": {
"FormTypeSectionId": "302ff896-9bbb-4cd9-b8fa-4d2d61b9ab55",
"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": "b6d2ec69-77dc-4233-bf10-d9b6ed63d296",
"Name": "sample string 1"
},
"Unit": {
"UnitId": "8dbc5dd6-154d-4298-a7d5-4521f4c79e40",
"Code": "sample string 1",
"Description": "sample string 2",
"SourceSystemId": "sample string 3",
"CompanyId": "d5d9b23b-defd-43d4-a577-f3c60aee057d",
"CreateDate": "2025-11-04T16:36:38.945257-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2025-11-04T16:36:38.945257-08:00",
"LastModifiedUser": "sample string 6"
},
"DisplayOrder": 1,
"MinValue": 1.0,
"MaxValue": 1.0,
"MinLength": 1,
"MaxLength": 1,
"HasValidValues": true,
"ValidValues": [
{
"ValidValueId": "206969d3-37a6-472d-a738-c6de6962be58",
"FieldId": "c07e21f2-a40e-4d6b-8778-0ce09a702e48",
"FieldName": "sample string 1",
"FieldLable": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
},
{
"ValidValueId": "206969d3-37a6-472d-a738-c6de6962be58",
"FieldId": "c07e21f2-a40e-4d6b-8778-0ce09a702e48",
"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": "9a1da8f8-3f60-4aff-98c1-48f5c201b1fe",
"CreateDate": "2025-11-04T16:36:38.945257-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2025-11-04T16:36:38.945257-08:00",
"LastModifiedUser": "sample string 6"
},
"Total": 1,
"Message": "sample string 1"
}