PUT FormTypes

Updates the given form type.

Request Information

URI Parameters

None.

Body Parameters

Form type to update

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": "39996abb-5c47-4702-8641-09f6a574f67b",
  "Name": "sample string 1",
  "Description": "sample string 2",
  "AssetType": {
    "AssetTypeId": "2efb84ac-8a25-447b-8e62-e5c41552b74e",
    "Name": "sample string 1",
    "Description": "sample string 2",
    "IsWell": true,
    "DisplayColor": "sample string 4",
    "SourceSystemId": "sample string 5",
    "CompanyId": "2e9e783c-b71d-425c-ace2-7f97b558ed88",
    "CreateDate": "2024-11-21T05:29:45.7235058-08:00",
    "CreateUser": "sample string 7",
    "LastModifiedDate": "2024-11-21T05:29:45.7235058-08:00",
    "LastModifiedUser": "sample string 8"
  },
  "FrequencyNeeded": 1,
  "ValueNeededDate": "2024-11-21T05:29:45.7235058-08:00",
  "Fields": [
    {
      "FormTypeFieldId": "c804d5cb-c8b4-428a-a6c3-4c14603e827f",
      "Section": {
        "FormTypeSectionId": "9c30d35a-fd03-41b4-91ff-b56a89ab61e0",
        "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": "7a80fb8d-e945-4d75-a461-8a0b5ad99037",
        "Name": "sample string 1"
      },
      "Unit": {
        "UnitId": "391283ba-9a86-4f4e-8995-d24e650e1933",
        "Code": "sample string 1",
        "Description": "sample string 2",
        "SourceSystemId": "sample string 3",
        "CompanyId": "331b8cd5-0e68-4bc5-b29c-23e73e9433b3",
        "CreateDate": "2024-11-21T05:29:45.7235058-08:00",
        "CreateUser": "sample string 5",
        "LastModifiedDate": "2024-11-21T05:29:45.7235058-08:00",
        "LastModifiedUser": "sample string 6"
      },
      "DisplayOrder": 1,
      "MinValue": 1.0,
      "MaxValue": 1.0,
      "MinLength": 1,
      "MaxLength": 1,
      "HasValidValues": true,
      "ValidValues": [
        {
          "ValidValueId": "65a0a090-21dc-45fa-ab6d-f017e6a9f866",
          "FieldId": "1b1c1b59-862d-475f-b64a-d445cef03c2c",
          "FieldName": "sample string 1",
          "FieldLable": "sample string 2",
          "ValueText": "sample string 3",
          "LabelText": "sample string 4"
        },
        {
          "ValidValueId": "65a0a090-21dc-45fa-ab6d-f017e6a9f866",
          "FieldId": "1b1c1b59-862d-475f-b64a-d445cef03c2c",
          "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": "c804d5cb-c8b4-428a-a6c3-4c14603e827f",
      "Section": {
        "FormTypeSectionId": "9c30d35a-fd03-41b4-91ff-b56a89ab61e0",
        "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": "7a80fb8d-e945-4d75-a461-8a0b5ad99037",
        "Name": "sample string 1"
      },
      "Unit": {
        "UnitId": "391283ba-9a86-4f4e-8995-d24e650e1933",
        "Code": "sample string 1",
        "Description": "sample string 2",
        "SourceSystemId": "sample string 3",
        "CompanyId": "331b8cd5-0e68-4bc5-b29c-23e73e9433b3",
        "CreateDate": "2024-11-21T05:29:45.7235058-08:00",
        "CreateUser": "sample string 5",
        "LastModifiedDate": "2024-11-21T05:29:45.7235058-08:00",
        "LastModifiedUser": "sample string 6"
      },
      "DisplayOrder": 1,
      "MinValue": 1.0,
      "MaxValue": 1.0,
      "MinLength": 1,
      "MaxLength": 1,
      "HasValidValues": true,
      "ValidValues": [
        {
          "ValidValueId": "65a0a090-21dc-45fa-ab6d-f017e6a9f866",
          "FieldId": "1b1c1b59-862d-475f-b64a-d445cef03c2c",
          "FieldName": "sample string 1",
          "FieldLable": "sample string 2",
          "ValueText": "sample string 3",
          "LabelText": "sample string 4"
        },
        {
          "ValidValueId": "65a0a090-21dc-45fa-ab6d-f017e6a9f866",
          "FieldId": "1b1c1b59-862d-475f-b64a-d445cef03c2c",
          "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": "7810a323-e6cf-4713-915c-5ebdb3ccb0e3",
  "CreateDate": "2024-11-21T05:29:45.7235058-08:00",
  "CreateUser": "sample string 5",
  "LastModifiedDate": "2024-11-21T05:29:45.7235058-08:00",
  "LastModifiedUser": "sample string 6"
}

Response Information

Resource Description

On success, the updated form type.

NameDescriptionTypeAdditional information
Data

FormType

None.

Total

integer

None.

Message

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Data": {
    "FormTypeId": "3e0abae6-e8cf-41fd-8842-ff5d642ca097",
    "Name": "sample string 1",
    "Description": "sample string 2",
    "AssetType": {
      "AssetTypeId": "c31c1012-ea84-4c6b-9915-e73f794ef3b1",
      "Name": "sample string 1",
      "Description": "sample string 2",
      "IsWell": true,
      "DisplayColor": "sample string 4",
      "SourceSystemId": "sample string 5",
      "CompanyId": "141b6da1-be22-48f2-bce1-3a550b0ad580",
      "CreateDate": "2024-11-21T05:29:45.7235058-08:00",
      "CreateUser": "sample string 7",
      "LastModifiedDate": "2024-11-21T05:29:45.7235058-08:00",
      "LastModifiedUser": "sample string 8"
    },
    "FrequencyNeeded": 1,
    "ValueNeededDate": "2024-11-21T05:29:45.7235058-08:00",
    "Fields": [
      {
        "FormTypeFieldId": "c8befa95-32bb-499e-8ab5-29f787252bd6",
        "Section": {
          "FormTypeSectionId": "5f4415b4-b7d5-4cf7-8e88-8a0a3ec0671e",
          "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": "e7d7900e-13ee-4d6d-82f3-c41e4125a908",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "92ed29f9-0385-4f96-b479-8a04ea4d1fd5",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "82ba31b9-7ce3-457e-9551-6eafc72503c3",
          "CreateDate": "2024-11-21T05:29:45.7235058-08:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2024-11-21T05:29:45.7235058-08:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          {
            "ValidValueId": "cc645145-1ea1-4fcf-8c79-21da92df4639",
            "FieldId": "173663c2-65bb-4671-95f0-e748c5d76938",
            "FieldName": "sample string 1",
            "FieldLable": "sample string 2",
            "ValueText": "sample string 3",
            "LabelText": "sample string 4"
          },
          {
            "ValidValueId": "cc645145-1ea1-4fcf-8c79-21da92df4639",
            "FieldId": "173663c2-65bb-4671-95f0-e748c5d76938",
            "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": "c8befa95-32bb-499e-8ab5-29f787252bd6",
        "Section": {
          "FormTypeSectionId": "5f4415b4-b7d5-4cf7-8e88-8a0a3ec0671e",
          "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": "e7d7900e-13ee-4d6d-82f3-c41e4125a908",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "92ed29f9-0385-4f96-b479-8a04ea4d1fd5",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "82ba31b9-7ce3-457e-9551-6eafc72503c3",
          "CreateDate": "2024-11-21T05:29:45.7235058-08:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2024-11-21T05:29:45.7235058-08:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          {
            "ValidValueId": "cc645145-1ea1-4fcf-8c79-21da92df4639",
            "FieldId": "173663c2-65bb-4671-95f0-e748c5d76938",
            "FieldName": "sample string 1",
            "FieldLable": "sample string 2",
            "ValueText": "sample string 3",
            "LabelText": "sample string 4"
          },
          {
            "ValidValueId": "cc645145-1ea1-4fcf-8c79-21da92df4639",
            "FieldId": "173663c2-65bb-4671-95f0-e748c5d76938",
            "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": "a187042f-9b54-47a2-9564-a9fc72e8c1d1",
    "CreateDate": "2024-11-21T05:29:45.7235058-08:00",
    "CreateUser": "sample string 5",
    "LastModifiedDate": "2024-11-21T05:29:45.7235058-08:00",
    "LastModifiedUser": "sample string 6"
  },
  "Total": 1,
  "Message": "sample string 1"
}