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. |
|
| Active | boolean |
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": "eb41b4b2-7c59-44c4-b105-f279ea3083c7",
"Name": "sample string 1",
"Description": "sample string 2",
"AssetType": {
"AssetTypeId": "b88fbb64-d98f-4955-b31c-0b672bcf0cf2",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayColor": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "0f28bd5e-c261-4868-9c77-216814ab723b",
"CreateDate": "2025-11-19T14:43:50.2922238-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2025-11-19T14:43:50.2922238-08:00",
"LastModifiedUser": "sample string 7"
},
"FrequencyNeeded": 1,
"ValueNeededDate": "2025-11-19T14:43:50.2922238-08:00",
"Active": true,
"Fields": [
{
"FormTypeFieldId": "cdbac5a1-7b24-4520-a4fe-d2c0d00a6ef9",
"Section": {
"FormTypeSectionId": "6cbfc7c6-ec01-482f-8430-f7b2dbd832a3",
"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": "5b683e8d-81c1-4b66-a012-7ef8e26b1c59",
"Name": "sample string 1"
},
"Unit": {
"UnitId": "6fb37c36-d719-4861-acda-755a26a831e4",
"Code": "sample string 1",
"Description": "sample string 2",
"SourceSystemId": "sample string 3",
"CompanyId": "90bbde38-f3cb-4a94-8479-8c8b1161c9c6",
"CreateDate": "2025-11-19T14:43:50.2922238-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2025-11-19T14:43:50.2922238-08:00",
"LastModifiedUser": "sample string 6"
},
"DisplayOrder": 1,
"MinValue": 1.0,
"MaxValue": 1.0,
"MinLength": 1,
"MaxLength": 1,
"HasValidValues": true,
"ValidValues": [
{
"ValidValueId": "4b5ce60f-a2ca-4db1-970e-5e81726fdc86",
"FieldId": "b2d69cae-cb17-44a5-884d-8b0ae838a7a0",
"FieldName": "sample string 1",
"FieldLabel": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
},
{
"ValidValueId": "4b5ce60f-a2ca-4db1-970e-5e81726fdc86",
"FieldId": "b2d69cae-cb17-44a5-884d-8b0ae838a7a0",
"FieldName": "sample string 1",
"FieldLabel": "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": "cdbac5a1-7b24-4520-a4fe-d2c0d00a6ef9",
"Section": {
"FormTypeSectionId": "6cbfc7c6-ec01-482f-8430-f7b2dbd832a3",
"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": "5b683e8d-81c1-4b66-a012-7ef8e26b1c59",
"Name": "sample string 1"
},
"Unit": {
"UnitId": "6fb37c36-d719-4861-acda-755a26a831e4",
"Code": "sample string 1",
"Description": "sample string 2",
"SourceSystemId": "sample string 3",
"CompanyId": "90bbde38-f3cb-4a94-8479-8c8b1161c9c6",
"CreateDate": "2025-11-19T14:43:50.2922238-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2025-11-19T14:43:50.2922238-08:00",
"LastModifiedUser": "sample string 6"
},
"DisplayOrder": 1,
"MinValue": 1.0,
"MaxValue": 1.0,
"MinLength": 1,
"MaxLength": 1,
"HasValidValues": true,
"ValidValues": [
{
"ValidValueId": "4b5ce60f-a2ca-4db1-970e-5e81726fdc86",
"FieldId": "b2d69cae-cb17-44a5-884d-8b0ae838a7a0",
"FieldName": "sample string 1",
"FieldLabel": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
},
{
"ValidValueId": "4b5ce60f-a2ca-4db1-970e-5e81726fdc86",
"FieldId": "b2d69cae-cb17-44a5-884d-8b0ae838a7a0",
"FieldName": "sample string 1",
"FieldLabel": "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 4",
"CompanyId": "4d4021af-265c-435f-ad41-0b9c71e8ece8",
"CreateDate": "2025-11-19T14:43:50.2922238-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2025-11-19T14:43:50.2922238-08:00",
"LastModifiedUser": "sample string 7"
}
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": "8fad603b-f6ff-4932-9f4c-c7fc87125633",
"Name": "sample string 1",
"Description": "sample string 2",
"AssetType": {
"AssetTypeId": "a32450dd-b595-47aa-861d-bb47b435eb98",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayColor": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "c4d1bbbd-004d-4ce2-94a0-a0caa95bc95d",
"CreateDate": "2025-11-19T14:43:50.2922238-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2025-11-19T14:43:50.2922238-08:00",
"LastModifiedUser": "sample string 7"
},
"FrequencyNeeded": 1,
"ValueNeededDate": "2025-11-19T14:43:50.2922238-08:00",
"Active": true,
"Fields": [
{
"FormTypeFieldId": "fa8aca7e-c605-4d8a-a1f4-9843e0743ba5",
"Section": {
"FormTypeSectionId": "38eaa5a2-4ecc-46d4-86cc-8139eecb0e28",
"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": "602c4985-0a04-4f95-ba32-60b107fcd882",
"Name": "sample string 1"
},
"Unit": {
"UnitId": "c7911566-4ef6-42ab-ae5a-0ed9f3274d75",
"Code": "sample string 1",
"Description": "sample string 2",
"SourceSystemId": "sample string 3",
"CompanyId": "78b904bc-2881-4b7e-a97b-0f55847ff2ce",
"CreateDate": "2025-11-19T14:43:50.2922238-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2025-11-19T14:43:50.2922238-08:00",
"LastModifiedUser": "sample string 6"
},
"DisplayOrder": 1,
"MinValue": 1.0,
"MaxValue": 1.0,
"MinLength": 1,
"MaxLength": 1,
"HasValidValues": true,
"ValidValues": [
{
"ValidValueId": "04d42a56-2546-439b-9a0b-8ca6876c71ae",
"FieldId": "62a78842-1291-4058-927f-ea57f2437504",
"FieldName": "sample string 1",
"FieldLabel": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
},
{
"ValidValueId": "04d42a56-2546-439b-9a0b-8ca6876c71ae",
"FieldId": "62a78842-1291-4058-927f-ea57f2437504",
"FieldName": "sample string 1",
"FieldLabel": "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": "fa8aca7e-c605-4d8a-a1f4-9843e0743ba5",
"Section": {
"FormTypeSectionId": "38eaa5a2-4ecc-46d4-86cc-8139eecb0e28",
"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": "602c4985-0a04-4f95-ba32-60b107fcd882",
"Name": "sample string 1"
},
"Unit": {
"UnitId": "c7911566-4ef6-42ab-ae5a-0ed9f3274d75",
"Code": "sample string 1",
"Description": "sample string 2",
"SourceSystemId": "sample string 3",
"CompanyId": "78b904bc-2881-4b7e-a97b-0f55847ff2ce",
"CreateDate": "2025-11-19T14:43:50.2922238-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2025-11-19T14:43:50.2922238-08:00",
"LastModifiedUser": "sample string 6"
},
"DisplayOrder": 1,
"MinValue": 1.0,
"MaxValue": 1.0,
"MinLength": 1,
"MaxLength": 1,
"HasValidValues": true,
"ValidValues": [
{
"ValidValueId": "04d42a56-2546-439b-9a0b-8ca6876c71ae",
"FieldId": "62a78842-1291-4058-927f-ea57f2437504",
"FieldName": "sample string 1",
"FieldLabel": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
},
{
"ValidValueId": "04d42a56-2546-439b-9a0b-8ca6876c71ae",
"FieldId": "62a78842-1291-4058-927f-ea57f2437504",
"FieldName": "sample string 1",
"FieldLabel": "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 4",
"CompanyId": "cbf7ae51-56b0-4adb-9bec-7321a8845369",
"CreateDate": "2025-11-19T14:43:50.2922238-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2025-11-19T14:43:50.2922238-08:00",
"LastModifiedUser": "sample string 7"
},
"Total": 1,
"Message": "sample string 1"
}