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": "4f6039be-ccc9-4594-87b6-da7385009237",
    "Name": "sample string 1",
    "Description": "sample string 2",
    "CustomStatuses": true,
    "Fields": [
      {
        "TaskTypeFieldId": "dc798815-4d91-4e28-b0db-f6aad677a365",
        "Section": {
          "TaskTypeSectionId": "9fd35377-14d5-486b-8d6a-70418566878a",
          "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": "4b134184-3cd3-40f1-a969-76a6f4014e75",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "e9183677-c95a-40ce-a80e-d546ee2349f2",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "c676f2d8-28db-4d56-8aee-3321edfd4d43",
          "CreateDate": "2025-10-27T23:22:53.7691882-07:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2025-10-27T23:22:53.7691882-07:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          {
            "ValidValueId": "db57105f-b88f-43e3-9923-caf0cc42c063",
            "FieldId": "f84d6b60-c776-4742-8b93-761cbb456690",
            "FieldName": "sample string 1",
            "FieldLabel": "sample string 2",
            "ValueText": "sample string 3",
            "LabelText": "sample string 4"
          },
          {
            "ValidValueId": "db57105f-b88f-43e3-9923-caf0cc42c063",
            "FieldId": "f84d6b60-c776-4742-8b93-761cbb456690",
            "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",
        "IsMultiline": true,
        "IsRepeatable": true,
        "VisibleExpression": "sample string 11",
        "SourceSystemId": "sample string 12"
      },
      {
        "TaskTypeFieldId": "dc798815-4d91-4e28-b0db-f6aad677a365",
        "Section": {
          "TaskTypeSectionId": "9fd35377-14d5-486b-8d6a-70418566878a",
          "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": "4b134184-3cd3-40f1-a969-76a6f4014e75",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "e9183677-c95a-40ce-a80e-d546ee2349f2",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "c676f2d8-28db-4d56-8aee-3321edfd4d43",
          "CreateDate": "2025-10-27T23:22:53.7691882-07:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2025-10-27T23:22:53.7691882-07:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          {
            "ValidValueId": "db57105f-b88f-43e3-9923-caf0cc42c063",
            "FieldId": "f84d6b60-c776-4742-8b93-761cbb456690",
            "FieldName": "sample string 1",
            "FieldLabel": "sample string 2",
            "ValueText": "sample string 3",
            "LabelText": "sample string 4"
          },
          {
            "ValidValueId": "db57105f-b88f-43e3-9923-caf0cc42c063",
            "FieldId": "f84d6b60-c776-4742-8b93-761cbb456690",
            "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",
        "IsMultiline": true,
        "IsRepeatable": true,
        "VisibleExpression": "sample string 11",
        "SourceSystemId": "sample string 12"
      }
    ],
    "SourceSystemId": "sample string 4",
    "CompanyId": "04603fab-9077-457d-9f2c-14a4f8c992ea",
    "CreateDate": "2025-10-27T23:22:53.7691882-07:00",
    "CreateUser": "sample string 6",
    "LastModifiedDate": "2025-10-27T23:22:53.7691882-07:00",
    "LastModifiedUser": "sample string 7"
  },
  "Associations": [
    {
      "TaskStatusTypeTaskTypeId": "13ba205f-bd72-409d-b421-88343d78db5f",
      "CompanyId": "e8b75ca8-70d1-40dc-bf3a-75bb3cdb75bd",
      "TaskStatusTypeId": "cc7b8ad9-0bd1-4537-a3f5-e91a452bc011",
      "TaskStatusTypeName": "sample string 2",
      "SourceSystemId": "sample string 3",
      "TaskTypeId": "f13e7fbb-008b-4316-a3ed-08c3e951d45b",
      "TaskTypeName": "sample string 4",
      "Description": "sample string 5"
    },
    {
      "TaskStatusTypeTaskTypeId": "13ba205f-bd72-409d-b421-88343d78db5f",
      "CompanyId": "e8b75ca8-70d1-40dc-bf3a-75bb3cdb75bd",
      "TaskStatusTypeId": "cc7b8ad9-0bd1-4537-a3f5-e91a452bc011",
      "TaskStatusTypeName": "sample string 2",
      "SourceSystemId": "sample string 3",
      "TaskTypeId": "f13e7fbb-008b-4316-a3ed-08c3e951d45b",
      "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": "e73a8d66-b189-4ba1-9b19-86760c9da52c",
    "Name": "sample string 1",
    "Description": "sample string 2",
    "CustomStatuses": true,
    "Fields": [
      {
        "TaskTypeFieldId": "5e0daddd-7318-4555-8442-cd5e2a03d87f",
        "Section": {
          "TaskTypeSectionId": "6be868db-f0a6-430c-8e92-2c16b9248257",
          "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": "0745e40d-76d3-487e-9ce2-2cca02eb637f",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "a33d5e48-3580-453f-8c92-6480757a82da",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "2fd7172f-1a28-4a77-b35e-3addd487e01f",
          "CreateDate": "2025-10-27T23:22:53.7691882-07:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2025-10-27T23:22:53.7691882-07:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          {
            "ValidValueId": "25c6cd62-bd7b-4152-86e5-7fd3b10888d8",
            "FieldId": "177efc40-8e03-4c06-88d4-6f1465a14143",
            "FieldName": "sample string 1",
            "FieldLabel": "sample string 2",
            "ValueText": "sample string 3",
            "LabelText": "sample string 4"
          },
          {
            "ValidValueId": "25c6cd62-bd7b-4152-86e5-7fd3b10888d8",
            "FieldId": "177efc40-8e03-4c06-88d4-6f1465a14143",
            "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",
        "IsMultiline": true,
        "IsRepeatable": true,
        "VisibleExpression": "sample string 11",
        "SourceSystemId": "sample string 12"
      },
      {
        "TaskTypeFieldId": "5e0daddd-7318-4555-8442-cd5e2a03d87f",
        "Section": {
          "TaskTypeSectionId": "6be868db-f0a6-430c-8e92-2c16b9248257",
          "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": "0745e40d-76d3-487e-9ce2-2cca02eb637f",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "a33d5e48-3580-453f-8c92-6480757a82da",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "2fd7172f-1a28-4a77-b35e-3addd487e01f",
          "CreateDate": "2025-10-27T23:22:53.7691882-07:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2025-10-27T23:22:53.7691882-07:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          {
            "ValidValueId": "25c6cd62-bd7b-4152-86e5-7fd3b10888d8",
            "FieldId": "177efc40-8e03-4c06-88d4-6f1465a14143",
            "FieldName": "sample string 1",
            "FieldLabel": "sample string 2",
            "ValueText": "sample string 3",
            "LabelText": "sample string 4"
          },
          {
            "ValidValueId": "25c6cd62-bd7b-4152-86e5-7fd3b10888d8",
            "FieldId": "177efc40-8e03-4c06-88d4-6f1465a14143",
            "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",
        "IsMultiline": true,
        "IsRepeatable": true,
        "VisibleExpression": "sample string 11",
        "SourceSystemId": "sample string 12"
      }
    ],
    "SourceSystemId": "sample string 4",
    "CompanyId": "c784863e-9a93-40d0-8e57-cc9134fdd487",
    "CreateDate": "2025-10-27T23:22:53.7691882-07:00",
    "CreateUser": "sample string 6",
    "LastModifiedDate": "2025-10-27T23:22:53.7691882-07:00",
    "LastModifiedUser": "sample string 7"
  },
  "Total": 1,
  "Message": "sample string 1"
}