PUT TaskTypes

Updates the given task type.

Request Information

URI Parameters

None.

Body Parameters

Task - Task type to update. Associations - List of associations between task types and task status types.

TaskTypeParams
NameDescriptionTypeAdditional information
Task

TaskType

None.

Associations

Collection of TaskStatusTypeTaskType

None.

Request Formats

application/json, text/json

Sample:
{
  "Task": {
    "TaskTypeId": "d263134d-1b30-4041-9a3f-1e823f285ac6",
    "Name": "sample string 1",
    "Description": "sample string 2",
    "CustomStatuses": true,
    "Fields": [
      {
        "TaskTypeFieldId": "2890a1b8-4d2d-4f5c-b3a1-45e2de09f8a3",
        "Section": {
          "TaskTypeSectionId": "c8648e9d-bc23-48be-997e-d5a6da190f08",
          "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": "146d8522-b350-4a19-867a-f2d72b0f2a6a",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "6d3eb734-fdc8-49ea-bf39-e04773e6a15d",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "b753ad1a-8bbe-485f-8bb2-cb198e62fba6",
          "CreateDate": "2025-12-12T12:53:36.8532915-08:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2025-12-12T12:53:36.8532915-08:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          {
            "ValidValueId": "baf1fc27-d469-4e65-aa7c-827a939a2152",
            "FieldId": "a53f4522-bb57-4370-8905-511e85011886",
            "FieldName": "sample string 1",
            "FieldLable": "sample string 2",
            "ValueText": "sample string 3",
            "LabelText": "sample string 4"
          },
          {
            "ValidValueId": "baf1fc27-d469-4e65-aa7c-827a939a2152",
            "FieldId": "a53f4522-bb57-4370-8905-511e85011886",
            "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",
        "IsMultiline": true,
        "IsRepeatable": true,
        "VisibleExpression": "sample string 11",
        "SourceSystemId": "sample string 12"
      },
      {
        "TaskTypeFieldId": "2890a1b8-4d2d-4f5c-b3a1-45e2de09f8a3",
        "Section": {
          "TaskTypeSectionId": "c8648e9d-bc23-48be-997e-d5a6da190f08",
          "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": "146d8522-b350-4a19-867a-f2d72b0f2a6a",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "6d3eb734-fdc8-49ea-bf39-e04773e6a15d",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "b753ad1a-8bbe-485f-8bb2-cb198e62fba6",
          "CreateDate": "2025-12-12T12:53:36.8532915-08:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2025-12-12T12:53:36.8532915-08:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          {
            "ValidValueId": "baf1fc27-d469-4e65-aa7c-827a939a2152",
            "FieldId": "a53f4522-bb57-4370-8905-511e85011886",
            "FieldName": "sample string 1",
            "FieldLable": "sample string 2",
            "ValueText": "sample string 3",
            "LabelText": "sample string 4"
          },
          {
            "ValidValueId": "baf1fc27-d469-4e65-aa7c-827a939a2152",
            "FieldId": "a53f4522-bb57-4370-8905-511e85011886",
            "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",
        "IsMultiline": true,
        "IsRepeatable": true,
        "VisibleExpression": "sample string 11",
        "SourceSystemId": "sample string 12"
      }
    ],
    "SourceSystemId": "sample string 4",
    "CompanyId": "53287db8-d944-472a-b965-1135f9a670ac",
    "CreateDate": "2025-12-12T12:53:36.8532915-08:00",
    "CreateUser": "sample string 6",
    "LastModifiedDate": "2025-12-12T12:53:36.8532915-08:00",
    "LastModifiedUser": "sample string 7"
  },
  "Associations": [
    {
      "TaskStatusTypeTaskTypeId": "2c8c5589-8109-4ece-b2ea-8963ead8a197",
      "CompanyId": "8f4884d7-56b6-469b-b725-ba4670e5a8d2",
      "TaskStatusTypeId": "6067774a-366a-4993-9f56-069113c3f4ea",
      "TaskStatusTypeName": "sample string 2",
      "SourceSystemId": "sample string 3",
      "TaskTypeId": "6ba36db4-8969-4525-a627-8f86157a7c4f",
      "TaskTypeName": "sample string 4",
      "Description": "sample string 5"
    },
    {
      "TaskStatusTypeTaskTypeId": "2c8c5589-8109-4ece-b2ea-8963ead8a197",
      "CompanyId": "8f4884d7-56b6-469b-b725-ba4670e5a8d2",
      "TaskStatusTypeId": "6067774a-366a-4993-9f56-069113c3f4ea",
      "TaskStatusTypeName": "sample string 2",
      "SourceSystemId": "sample string 3",
      "TaskTypeId": "6ba36db4-8969-4525-a627-8f86157a7c4f",
      "TaskTypeName": "sample string 4",
      "Description": "sample string 5"
    }
  ]
}

Response Information

Resource Description

On success, the updated task type.

NameDescriptionTypeAdditional information
Data

TaskType

None.

Total

integer

None.

Message

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Data": {
    "TaskTypeId": "e14ccb34-fc3d-4ab0-93c1-4db81dce1a03",
    "Name": "sample string 1",
    "Description": "sample string 2",
    "CustomStatuses": true,
    "Fields": [
      {
        "TaskTypeFieldId": "5a0cc002-d6f0-4baf-9cc7-889a47cbbc19",
        "Section": {
          "TaskTypeSectionId": "bc236170-07af-4a89-b2b7-8ec6c62193de",
          "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": "28b99501-a258-48ba-bc99-d1f82a2f863a",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "759fef50-d81e-4112-964e-58e9b0f26d41",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "a4ae5d40-7705-4736-be76-b79bd2882d23",
          "CreateDate": "2025-12-12T12:53:36.8689411-08:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2025-12-12T12:53:36.8689411-08:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          {
            "ValidValueId": "17e56ffc-be49-40df-be91-71ce0341b098",
            "FieldId": "e0ce3e61-25b0-4ed0-ad48-ba0c2cbd1bb2",
            "FieldName": "sample string 1",
            "FieldLable": "sample string 2",
            "ValueText": "sample string 3",
            "LabelText": "sample string 4"
          },
          {
            "ValidValueId": "17e56ffc-be49-40df-be91-71ce0341b098",
            "FieldId": "e0ce3e61-25b0-4ed0-ad48-ba0c2cbd1bb2",
            "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",
        "IsMultiline": true,
        "IsRepeatable": true,
        "VisibleExpression": "sample string 11",
        "SourceSystemId": "sample string 12"
      },
      {
        "TaskTypeFieldId": "5a0cc002-d6f0-4baf-9cc7-889a47cbbc19",
        "Section": {
          "TaskTypeSectionId": "bc236170-07af-4a89-b2b7-8ec6c62193de",
          "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": "28b99501-a258-48ba-bc99-d1f82a2f863a",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "759fef50-d81e-4112-964e-58e9b0f26d41",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "a4ae5d40-7705-4736-be76-b79bd2882d23",
          "CreateDate": "2025-12-12T12:53:36.8689411-08:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2025-12-12T12:53:36.8689411-08:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          {
            "ValidValueId": "17e56ffc-be49-40df-be91-71ce0341b098",
            "FieldId": "e0ce3e61-25b0-4ed0-ad48-ba0c2cbd1bb2",
            "FieldName": "sample string 1",
            "FieldLable": "sample string 2",
            "ValueText": "sample string 3",
            "LabelText": "sample string 4"
          },
          {
            "ValidValueId": "17e56ffc-be49-40df-be91-71ce0341b098",
            "FieldId": "e0ce3e61-25b0-4ed0-ad48-ba0c2cbd1bb2",
            "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",
        "IsMultiline": true,
        "IsRepeatable": true,
        "VisibleExpression": "sample string 11",
        "SourceSystemId": "sample string 12"
      }
    ],
    "SourceSystemId": "sample string 4",
    "CompanyId": "058d13e4-d88e-4e5e-adf5-a17c1ba0ad65",
    "CreateDate": "2025-12-12T12:53:36.8689411-08:00",
    "CreateUser": "sample string 6",
    "LastModifiedDate": "2025-12-12T12:53:36.8689411-08:00",
    "LastModifiedUser": "sample string 7"
  },
  "Total": 1,
  "Message": "sample string 1"
}