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
NameDescriptionTypeAdditional 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": "668b605c-c001-40fb-861f-d806c852c9a5",
  "Name": "sample string 1",
  "Description": "sample string 2",
  "AssetType": {
    "AssetTypeId": "fb14510f-177f-4faa-b96a-7a44b960a03a",
    "Name": "sample string 1",
    "Description": "sample string 2",
    "DisplayColor": "sample string 3",
    "SourceSystemId": "sample string 4",
    "CompanyId": "b7687544-6271-46bf-a23e-bbb2ab7db7ca",
    "CreateDate": "2024-11-22T23:56:32.5964408-08:00",
    "CreateUser": "sample string 6",
    "LastModifiedDate": "2024-11-22T23:56:32.5964408-08:00",
    "LastModifiedUser": "sample string 7"
  },
  "FrequencyNeeded": 1,
  "ValueNeededDate": "2024-11-22T23:56:32.5964408-08:00",
  "Fields": [
    {
      "FormTypeFieldId": "c7415138-9be4-4d4a-8ef8-faa834b2646c",
      "Section": {
        "FormTypeSectionId": "edc3a0f0-8353-400f-9971-910ff63a84f2",
        "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": "ade26b00-0d60-42a0-a801-366e8d7d03df",
        "Name": "sample string 1"
      },
      "Unit": {
        "UnitId": "0064efc1-5e20-4438-9fcf-74ef51fcc1ab",
        "Code": "sample string 1",
        "Description": "sample string 2",
        "SourceSystemId": "sample string 3",
        "CompanyId": "725347d7-437e-4540-ae8a-6a679bc19897",
        "CreateDate": "2024-11-22T23:56:32.5964408-08:00",
        "CreateUser": "sample string 5",
        "LastModifiedDate": "2024-11-22T23:56:32.5964408-08:00",
        "LastModifiedUser": "sample string 6"
      },
      "DisplayOrder": 1,
      "MinValue": 1.0,
      "MaxValue": 1.0,
      "MinLength": 1,
      "MaxLength": 1,
      "HasValidValues": true,
      "ValidValues": [
        {
          "ValidValueId": "7f3921a0-fbae-419c-8596-83a0511def18",
          "FieldId": "cfd848a1-664a-4290-98e2-8d801779a3f1",
          "FieldName": "sample string 1",
          "FieldLabel": "sample string 2",
          "ValueText": "sample string 3",
          "LabelText": "sample string 4"
        },
        {
          "ValidValueId": "7f3921a0-fbae-419c-8596-83a0511def18",
          "FieldId": "cfd848a1-664a-4290-98e2-8d801779a3f1",
          "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": "c7415138-9be4-4d4a-8ef8-faa834b2646c",
      "Section": {
        "FormTypeSectionId": "edc3a0f0-8353-400f-9971-910ff63a84f2",
        "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": "ade26b00-0d60-42a0-a801-366e8d7d03df",
        "Name": "sample string 1"
      },
      "Unit": {
        "UnitId": "0064efc1-5e20-4438-9fcf-74ef51fcc1ab",
        "Code": "sample string 1",
        "Description": "sample string 2",
        "SourceSystemId": "sample string 3",
        "CompanyId": "725347d7-437e-4540-ae8a-6a679bc19897",
        "CreateDate": "2024-11-22T23:56:32.5964408-08:00",
        "CreateUser": "sample string 5",
        "LastModifiedDate": "2024-11-22T23:56:32.5964408-08:00",
        "LastModifiedUser": "sample string 6"
      },
      "DisplayOrder": 1,
      "MinValue": 1.0,
      "MaxValue": 1.0,
      "MinLength": 1,
      "MaxLength": 1,
      "HasValidValues": true,
      "ValidValues": [
        {
          "ValidValueId": "7f3921a0-fbae-419c-8596-83a0511def18",
          "FieldId": "cfd848a1-664a-4290-98e2-8d801779a3f1",
          "FieldName": "sample string 1",
          "FieldLabel": "sample string 2",
          "ValueText": "sample string 3",
          "LabelText": "sample string 4"
        },
        {
          "ValidValueId": "7f3921a0-fbae-419c-8596-83a0511def18",
          "FieldId": "cfd848a1-664a-4290-98e2-8d801779a3f1",
          "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 3",
  "CompanyId": "e45f7fd9-5179-41c4-a6fc-404d39c8c7e3",
  "CreateDate": "2024-11-22T23:56:32.5964408-08:00",
  "CreateUser": "sample string 5",
  "LastModifiedDate": "2024-11-22T23:56:32.5964408-08:00",
  "LastModifiedUser": "sample string 6"
}

Response Information

Resource Description

On success, the created form type.

NameDescriptionTypeAdditional information
Data

FormType

None.

Total

integer

None.

Message

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Data": {
    "FormTypeId": "9c36f51d-6300-4fc4-85e2-5c614d8c64d4",
    "Name": "sample string 1",
    "Description": "sample string 2",
    "AssetType": {
      "AssetTypeId": "3a39a5d8-cb21-49b4-9f8a-5627e116a514",
      "Name": "sample string 1",
      "Description": "sample string 2",
      "DisplayColor": "sample string 3",
      "SourceSystemId": "sample string 4",
      "CompanyId": "40cef023-aaaf-4cb5-9ad9-747649fde418",
      "CreateDate": "2024-11-22T23:56:32.5964408-08:00",
      "CreateUser": "sample string 6",
      "LastModifiedDate": "2024-11-22T23:56:32.5964408-08:00",
      "LastModifiedUser": "sample string 7"
    },
    "FrequencyNeeded": 1,
    "ValueNeededDate": "2024-11-22T23:56:32.5964408-08:00",
    "Fields": [
      {
        "FormTypeFieldId": "491f620a-7231-4688-ac36-f61fcbf9917f",
        "Section": {
          "FormTypeSectionId": "c9a9ba08-1c25-4983-a75d-18d12997dc9a",
          "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": "902a1f72-7e3e-4a84-9bdd-76bf650e5db1",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "8d4b0bc9-4f70-47a7-b8f2-ed62b032ed7c",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "6baa88a8-e059-480a-8078-597067fdd30d",
          "CreateDate": "2024-11-22T23:56:32.5964408-08:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2024-11-22T23:56:32.5964408-08:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          {
            "ValidValueId": "b0cdc54d-a6f5-41cb-a0fa-0bff6569f335",
            "FieldId": "3e69bc38-5fee-4a69-ba76-f9cad4ce679b",
            "FieldName": "sample string 1",
            "FieldLabel": "sample string 2",
            "ValueText": "sample string 3",
            "LabelText": "sample string 4"
          },
          {
            "ValidValueId": "b0cdc54d-a6f5-41cb-a0fa-0bff6569f335",
            "FieldId": "3e69bc38-5fee-4a69-ba76-f9cad4ce679b",
            "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": "491f620a-7231-4688-ac36-f61fcbf9917f",
        "Section": {
          "FormTypeSectionId": "c9a9ba08-1c25-4983-a75d-18d12997dc9a",
          "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": "902a1f72-7e3e-4a84-9bdd-76bf650e5db1",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "8d4b0bc9-4f70-47a7-b8f2-ed62b032ed7c",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "6baa88a8-e059-480a-8078-597067fdd30d",
          "CreateDate": "2024-11-22T23:56:32.5964408-08:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2024-11-22T23:56:32.5964408-08:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          {
            "ValidValueId": "b0cdc54d-a6f5-41cb-a0fa-0bff6569f335",
            "FieldId": "3e69bc38-5fee-4a69-ba76-f9cad4ce679b",
            "FieldName": "sample string 1",
            "FieldLabel": "sample string 2",
            "ValueText": "sample string 3",
            "LabelText": "sample string 4"
          },
          {
            "ValidValueId": "b0cdc54d-a6f5-41cb-a0fa-0bff6569f335",
            "FieldId": "3e69bc38-5fee-4a69-ba76-f9cad4ce679b",
            "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 3",
    "CompanyId": "e3e15164-5895-4f5b-a246-f64d07c5768d",
    "CreateDate": "2024-11-22T23:56:32.5964408-08:00",
    "CreateUser": "sample string 5",
    "LastModifiedDate": "2024-11-22T23:56:32.5964408-08:00",
    "LastModifiedUser": "sample string 6"
  },
  "Total": 1,
  "Message": "sample string 1"
}