PUT FormTypes
Updates the given form type.
Request Information
URI Parameters
None.
Body Parameters
Form type to update
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. |
|
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": "c0ad552a-d4c7-45cb-be44-9d87e1698899", "Name": "sample string 1", "Description": "sample string 2", "AssetType": { "AssetTypeId": "2ae025dc-3dcf-4afb-a90f-e4aeaec1a3fc", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "4220e28b-6cc7-4381-bf2c-260c347bf6b7", "CreateDate": "2024-12-21T19:14:48.9147883-08:00", "CreateUser": "sample string 7", "LastModifiedDate": "2024-12-21T19:14:48.9147883-08:00", "LastModifiedUser": "sample string 8" }, "FrequencyNeeded": 1, "ValueNeededDate": "2024-12-21T19:14:48.9147883-08:00", "Fields": [ { "FormTypeFieldId": "78ac9fa6-cb4f-4f2d-accf-38b53fccef5c", "Section": { "FormTypeSectionId": "a92fc1bb-bc49-464c-948e-aef0b814c453", "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": "6d97ff85-4fa1-43b4-8270-d9a9740d46b4", "Name": "sample string 1" }, "Unit": { "UnitId": "f7044d0d-2725-41fa-a309-4cd9282fc96b", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "10b8f78c-7bc1-4415-afb6-c5ece4b905f8", "CreateDate": "2024-12-21T19:14:48.9147883-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-12-21T19:14:48.9147883-08:00", "LastModifiedUser": "sample string 6" }, "DisplayOrder": 1, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "07bad75e-1cbc-4645-89db-03dedfd2e25e", "FieldId": "74525aa0-a3d6-4061-b9f0-b29180507ae6", "FieldName": "sample string 1", "FieldLable": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "07bad75e-1cbc-4645-89db-03dedfd2e25e", "FieldId": "74525aa0-a3d6-4061-b9f0-b29180507ae6", "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": "78ac9fa6-cb4f-4f2d-accf-38b53fccef5c", "Section": { "FormTypeSectionId": "a92fc1bb-bc49-464c-948e-aef0b814c453", "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": "6d97ff85-4fa1-43b4-8270-d9a9740d46b4", "Name": "sample string 1" }, "Unit": { "UnitId": "f7044d0d-2725-41fa-a309-4cd9282fc96b", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "10b8f78c-7bc1-4415-afb6-c5ece4b905f8", "CreateDate": "2024-12-21T19:14:48.9147883-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-12-21T19:14:48.9147883-08:00", "LastModifiedUser": "sample string 6" }, "DisplayOrder": 1, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "07bad75e-1cbc-4645-89db-03dedfd2e25e", "FieldId": "74525aa0-a3d6-4061-b9f0-b29180507ae6", "FieldName": "sample string 1", "FieldLable": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "07bad75e-1cbc-4645-89db-03dedfd2e25e", "FieldId": "74525aa0-a3d6-4061-b9f0-b29180507ae6", "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": "b27f57f0-42d7-47fe-b804-67adde0abc4f", "CreateDate": "2024-12-21T19:14:48.9147883-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-12-21T19:14:48.9147883-08:00", "LastModifiedUser": "sample string 6" }
Response Information
Resource Description
On success, the updated 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": "0680515c-ec59-4734-b2e9-1d1e53b17998", "Name": "sample string 1", "Description": "sample string 2", "AssetType": { "AssetTypeId": "7ccef9df-23c7-41ba-aff6-668405a275d7", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "7d5a3e87-8727-4367-a559-5b1fdd68ebe2", "CreateDate": "2024-12-21T19:14:48.9147883-08:00", "CreateUser": "sample string 7", "LastModifiedDate": "2024-12-21T19:14:48.9147883-08:00", "LastModifiedUser": "sample string 8" }, "FrequencyNeeded": 1, "ValueNeededDate": "2024-12-21T19:14:48.9147883-08:00", "Fields": [ { "FormTypeFieldId": "2e1de0dd-f80d-431a-a280-2b2bee857026", "Section": { "FormTypeSectionId": "fd1d4f4c-851a-418c-af1d-d138361a8c0e", "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": "f7cc411f-3b3a-47a8-ab26-070af9b84e5c", "Name": "sample string 1" }, "Unit": { "UnitId": "b522e61f-2f8b-4538-a337-397b52de12d8", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "af4df393-7743-4663-8728-ee06cd84c6e5", "CreateDate": "2024-12-21T19:14:48.9147883-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-12-21T19:14:48.9147883-08:00", "LastModifiedUser": "sample string 6" }, "DisplayOrder": 1, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "97197ac6-92d3-41d4-b5e5-7206d2df42ec", "FieldId": "a936c569-35b8-47f3-83e0-1906e8415fd0", "FieldName": "sample string 1", "FieldLable": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "97197ac6-92d3-41d4-b5e5-7206d2df42ec", "FieldId": "a936c569-35b8-47f3-83e0-1906e8415fd0", "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": "2e1de0dd-f80d-431a-a280-2b2bee857026", "Section": { "FormTypeSectionId": "fd1d4f4c-851a-418c-af1d-d138361a8c0e", "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": "f7cc411f-3b3a-47a8-ab26-070af9b84e5c", "Name": "sample string 1" }, "Unit": { "UnitId": "b522e61f-2f8b-4538-a337-397b52de12d8", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "af4df393-7743-4663-8728-ee06cd84c6e5", "CreateDate": "2024-12-21T19:14:48.9147883-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-12-21T19:14:48.9147883-08:00", "LastModifiedUser": "sample string 6" }, "DisplayOrder": 1, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "97197ac6-92d3-41d4-b5e5-7206d2df42ec", "FieldId": "a936c569-35b8-47f3-83e0-1906e8415fd0", "FieldName": "sample string 1", "FieldLable": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "97197ac6-92d3-41d4-b5e5-7206d2df42ec", "FieldId": "a936c569-35b8-47f3-83e0-1906e8415fd0", "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": "6bdca809-d2a5-4c47-8676-4b82b6fad182", "CreateDate": "2024-12-21T19:14:48.9147883-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-12-21T19:14:48.9147883-08:00", "LastModifiedUser": "sample string 6" }, "Total": 1, "Message": "sample string 1" }