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. |
|
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": "3c460dfb-94bb-44c5-a50c-35bf2225ab15", "Name": "sample string 1", "Description": "sample string 2", "AssetType": { "AssetTypeId": "8015e8af-60f1-4e8e-b5c9-4a6be9fc7121", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "4d8b2788-6ab1-4e01-acf2-a8515ff09573", "CreateDate": "2025-06-16T11:04:45.7225936-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-06-16T11:04:45.7225936-07:00", "LastModifiedUser": "sample string 7" }, "FrequencyNeeded": 1, "ValueNeededDate": "2025-06-16T11:04:45.7225936-07:00", "Active": true, "Fields": [ { "FormTypeFieldId": "8493791e-880e-442b-b8e2-03f76c5c7670", "Section": { "FormTypeSectionId": "b49536b6-57b8-4aa6-8763-48f606aa046c", "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": "bb4b1973-a369-4604-b784-b5d6e3d3f51c", "Name": "sample string 1" }, "Unit": { "UnitId": "4c701957-bd20-4034-8ffa-1426a201f476", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "e40b3855-f4b9-48fb-a2ef-93522dfdd838", "CreateDate": "2025-06-16T11:04:45.7225936-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-06-16T11:04:45.7225936-07:00", "LastModifiedUser": "sample string 6" }, "DisplayOrder": 1, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "102ed342-7680-407a-b671-05a76f5a30ac", "FieldId": "15ec99b6-c0cc-4966-a905-ec91daeddbd2", "FieldName": "sample string 1", "FieldLabel": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "102ed342-7680-407a-b671-05a76f5a30ac", "FieldId": "15ec99b6-c0cc-4966-a905-ec91daeddbd2", "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": "8493791e-880e-442b-b8e2-03f76c5c7670", "Section": { "FormTypeSectionId": "b49536b6-57b8-4aa6-8763-48f606aa046c", "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": "bb4b1973-a369-4604-b784-b5d6e3d3f51c", "Name": "sample string 1" }, "Unit": { "UnitId": "4c701957-bd20-4034-8ffa-1426a201f476", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "e40b3855-f4b9-48fb-a2ef-93522dfdd838", "CreateDate": "2025-06-16T11:04:45.7225936-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-06-16T11:04:45.7225936-07:00", "LastModifiedUser": "sample string 6" }, "DisplayOrder": 1, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "102ed342-7680-407a-b671-05a76f5a30ac", "FieldId": "15ec99b6-c0cc-4966-a905-ec91daeddbd2", "FieldName": "sample string 1", "FieldLabel": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "102ed342-7680-407a-b671-05a76f5a30ac", "FieldId": "15ec99b6-c0cc-4966-a905-ec91daeddbd2", "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": "4fb0fa22-eadb-4f7a-b33c-3cc3905bcd16", "CreateDate": "2025-06-16T11:04:45.7225936-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-06-16T11:04:45.7225936-07: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": "a204bcdc-3eea-4d23-9960-b87df9c74697", "Name": "sample string 1", "Description": "sample string 2", "AssetType": { "AssetTypeId": "6dbe4ea9-d37c-44f5-867e-80f10a317684", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "4cb75d27-6055-4050-a714-3a22adb7bdc0", "CreateDate": "2025-06-16T11:04:45.7225936-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-06-16T11:04:45.7225936-07:00", "LastModifiedUser": "sample string 7" }, "FrequencyNeeded": 1, "ValueNeededDate": "2025-06-16T11:04:45.7225936-07:00", "Active": true, "Fields": [ { "FormTypeFieldId": "f8a7d8e4-7948-4f17-84f1-2fdca0c64cd4", "Section": { "FormTypeSectionId": "0186bd14-66e8-4e3d-9793-12fc42e39759", "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": "f124bfac-fe9d-48dc-9901-46ddaa074c32", "Name": "sample string 1" }, "Unit": { "UnitId": "f156bb15-3a40-4cc3-9c4d-bd9e7a430203", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "b7f32677-5e5a-400d-809d-1a3ffaf09f8e", "CreateDate": "2025-06-16T11:04:45.7225936-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-06-16T11:04:45.7225936-07:00", "LastModifiedUser": "sample string 6" }, "DisplayOrder": 1, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "d362b395-36b6-49c2-a026-db4213df025c", "FieldId": "0d577a15-889a-4614-9e25-bec457d4da18", "FieldName": "sample string 1", "FieldLabel": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "d362b395-36b6-49c2-a026-db4213df025c", "FieldId": "0d577a15-889a-4614-9e25-bec457d4da18", "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": "f8a7d8e4-7948-4f17-84f1-2fdca0c64cd4", "Section": { "FormTypeSectionId": "0186bd14-66e8-4e3d-9793-12fc42e39759", "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": "f124bfac-fe9d-48dc-9901-46ddaa074c32", "Name": "sample string 1" }, "Unit": { "UnitId": "f156bb15-3a40-4cc3-9c4d-bd9e7a430203", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "b7f32677-5e5a-400d-809d-1a3ffaf09f8e", "CreateDate": "2025-06-16T11:04:45.7225936-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-06-16T11:04:45.7225936-07:00", "LastModifiedUser": "sample string 6" }, "DisplayOrder": 1, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "d362b395-36b6-49c2-a026-db4213df025c", "FieldId": "0d577a15-889a-4614-9e25-bec457d4da18", "FieldName": "sample string 1", "FieldLabel": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "d362b395-36b6-49c2-a026-db4213df025c", "FieldId": "0d577a15-889a-4614-9e25-bec457d4da18", "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": "c6a549e5-854e-4554-9cb2-24ebb6d01b05", "CreateDate": "2025-06-16T11:04:45.7225936-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-06-16T11:04:45.7225936-07:00", "LastModifiedUser": "sample string 7" }, "Total": 1, "Message": "sample string 1" }