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": "649d27c9-c1a4-4a48-875b-41e5eca7c4e9",
"Name": "sample string 1",
"Description": "sample string 2",
"AssetType": {
"AssetTypeId": "17b30673-2d3f-434d-a6db-6ed0116f0703",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "6313b67d-d9bf-4458-ae48-81ff3d577e67",
"CreateDate": "2025-11-26T21:38:23.1338458-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2025-11-26T21:38:23.1338458-08:00",
"LastModifiedUser": "sample string 8"
},
"FrequencyNeeded": 1,
"ValueNeededDate": "2025-11-26T21:38:23.1338458-08:00",
"Fields": [
{
"FormTypeFieldId": "4960afcf-0521-41e3-9a1a-e0a41835eef3",
"Section": {
"FormTypeSectionId": "4023e78f-6fd4-4676-9166-3f09a1595397",
"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": "f8f2b35e-dbb8-48ef-9233-499e8e89cb64",
"Name": "sample string 1"
},
"Unit": {
"UnitId": "4d923999-2c7a-469b-ba01-58350d74976f",
"Code": "sample string 1",
"Description": "sample string 2",
"SourceSystemId": "sample string 3",
"CompanyId": "b9d015af-5ebc-44d1-a05d-eb25824881b6",
"CreateDate": "2025-11-26T21:38:23.1338458-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2025-11-26T21:38:23.1338458-08:00",
"LastModifiedUser": "sample string 6"
},
"DisplayOrder": 1,
"MinValue": 1.0,
"MaxValue": 1.0,
"MinLength": 1,
"MaxLength": 1,
"HasValidValues": true,
"ValidValues": [
{
"ValidValueId": "57f1376b-8efb-473d-8104-31eb238d307c",
"FieldId": "fb0f7281-f8f5-461a-9954-88460aad218d",
"FieldName": "sample string 1",
"FieldLable": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
},
{
"ValidValueId": "57f1376b-8efb-473d-8104-31eb238d307c",
"FieldId": "fb0f7281-f8f5-461a-9954-88460aad218d",
"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": "4960afcf-0521-41e3-9a1a-e0a41835eef3",
"Section": {
"FormTypeSectionId": "4023e78f-6fd4-4676-9166-3f09a1595397",
"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": "f8f2b35e-dbb8-48ef-9233-499e8e89cb64",
"Name": "sample string 1"
},
"Unit": {
"UnitId": "4d923999-2c7a-469b-ba01-58350d74976f",
"Code": "sample string 1",
"Description": "sample string 2",
"SourceSystemId": "sample string 3",
"CompanyId": "b9d015af-5ebc-44d1-a05d-eb25824881b6",
"CreateDate": "2025-11-26T21:38:23.1338458-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2025-11-26T21:38:23.1338458-08:00",
"LastModifiedUser": "sample string 6"
},
"DisplayOrder": 1,
"MinValue": 1.0,
"MaxValue": 1.0,
"MinLength": 1,
"MaxLength": 1,
"HasValidValues": true,
"ValidValues": [
{
"ValidValueId": "57f1376b-8efb-473d-8104-31eb238d307c",
"FieldId": "fb0f7281-f8f5-461a-9954-88460aad218d",
"FieldName": "sample string 1",
"FieldLable": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
},
{
"ValidValueId": "57f1376b-8efb-473d-8104-31eb238d307c",
"FieldId": "fb0f7281-f8f5-461a-9954-88460aad218d",
"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": "409f1ec0-001c-4b01-a5e8-76758f16238c",
"CreateDate": "2025-11-26T21:38:23.1338458-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2025-11-26T21:38:23.1338458-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": "794fd20a-8e29-4bf3-b380-f3d83a59e19c",
"Name": "sample string 1",
"Description": "sample string 2",
"AssetType": {
"AssetTypeId": "694f29b1-7736-4df7-ba6b-7fd7d9452739",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "9d9891b8-3086-4d6e-857d-ad346f9cac16",
"CreateDate": "2025-11-26T21:38:23.1338458-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2025-11-26T21:38:23.1338458-08:00",
"LastModifiedUser": "sample string 8"
},
"FrequencyNeeded": 1,
"ValueNeededDate": "2025-11-26T21:38:23.1338458-08:00",
"Fields": [
{
"FormTypeFieldId": "37e80be9-1e32-45e4-aef3-94ad836fe610",
"Section": {
"FormTypeSectionId": "00556b65-dc71-4ecf-954e-3bf3ee4fcf6e",
"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": "cb44b8ad-7146-48d8-aec2-e2ac3c9f227f",
"Name": "sample string 1"
},
"Unit": {
"UnitId": "8e9ab09a-4150-4507-b3f0-0553186dc7de",
"Code": "sample string 1",
"Description": "sample string 2",
"SourceSystemId": "sample string 3",
"CompanyId": "2f70826f-bf5a-4091-8963-7928ac5c0ec1",
"CreateDate": "2025-11-26T21:38:23.1338458-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2025-11-26T21:38:23.1338458-08:00",
"LastModifiedUser": "sample string 6"
},
"DisplayOrder": 1,
"MinValue": 1.0,
"MaxValue": 1.0,
"MinLength": 1,
"MaxLength": 1,
"HasValidValues": true,
"ValidValues": [
{
"ValidValueId": "33f3dec2-9a98-49e3-b616-ea74aeaa6d73",
"FieldId": "332e6b0d-66ed-457a-8a2c-2251e4424748",
"FieldName": "sample string 1",
"FieldLable": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
},
{
"ValidValueId": "33f3dec2-9a98-49e3-b616-ea74aeaa6d73",
"FieldId": "332e6b0d-66ed-457a-8a2c-2251e4424748",
"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": "37e80be9-1e32-45e4-aef3-94ad836fe610",
"Section": {
"FormTypeSectionId": "00556b65-dc71-4ecf-954e-3bf3ee4fcf6e",
"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": "cb44b8ad-7146-48d8-aec2-e2ac3c9f227f",
"Name": "sample string 1"
},
"Unit": {
"UnitId": "8e9ab09a-4150-4507-b3f0-0553186dc7de",
"Code": "sample string 1",
"Description": "sample string 2",
"SourceSystemId": "sample string 3",
"CompanyId": "2f70826f-bf5a-4091-8963-7928ac5c0ec1",
"CreateDate": "2025-11-26T21:38:23.1338458-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2025-11-26T21:38:23.1338458-08:00",
"LastModifiedUser": "sample string 6"
},
"DisplayOrder": 1,
"MinValue": 1.0,
"MaxValue": 1.0,
"MinLength": 1,
"MaxLength": 1,
"HasValidValues": true,
"ValidValues": [
{
"ValidValueId": "33f3dec2-9a98-49e3-b616-ea74aeaa6d73",
"FieldId": "332e6b0d-66ed-457a-8a2c-2251e4424748",
"FieldName": "sample string 1",
"FieldLable": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
},
{
"ValidValueId": "33f3dec2-9a98-49e3-b616-ea74aeaa6d73",
"FieldId": "332e6b0d-66ed-457a-8a2c-2251e4424748",
"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": "55098c15-cc13-4929-b5fa-f64d5f9881be",
"CreateDate": "2025-11-26T21:38:23.1338458-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2025-11-26T21:38:23.1338458-08:00",
"LastModifiedUser": "sample string 6"
},
"Total": 1,
"Message": "sample string 1"
}