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": "5e2eabfc-369f-4fa6-b1d6-1d4cd4eb8a35",
    "Name": "sample string 1",
    "Description": "sample string 2",
    "CustomStatuses": true,
    "Fields": [
      {
        "TaskTypeFieldId": "5341dd06-6c90-4a2d-b8a8-0334081b3736",
        "Section": {
          "TaskTypeSectionId": "3794b3db-187e-499b-8bf7-d34c5e4e5195",
          "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": "4df0150a-b837-4dcf-96a3-2b237591d074",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "f43d8594-0ad1-4bc6-82c9-a700d7d3da54",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "95f4dd14-bb3a-4e07-900e-b9157bf3d7b3",
          "CreateDate": "2025-11-17T22:38:25.5503084-08:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2025-11-17T22:38:25.5503084-08:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          {
            "ValidValueId": "643c4672-9bc8-4479-be2c-973e8fa2e841",
            "FieldId": "9d3fc7a1-818c-4c49-b181-27f6c2d6da9c",
            "FieldName": "sample string 1",
            "FieldLabel": "sample string 2",
            "ValueText": "sample string 3",
            "LabelText": "sample string 4"
          },
          {
            "ValidValueId": "643c4672-9bc8-4479-be2c-973e8fa2e841",
            "FieldId": "9d3fc7a1-818c-4c49-b181-27f6c2d6da9c",
            "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": "5341dd06-6c90-4a2d-b8a8-0334081b3736",
        "Section": {
          "TaskTypeSectionId": "3794b3db-187e-499b-8bf7-d34c5e4e5195",
          "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": "4df0150a-b837-4dcf-96a3-2b237591d074",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "f43d8594-0ad1-4bc6-82c9-a700d7d3da54",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "95f4dd14-bb3a-4e07-900e-b9157bf3d7b3",
          "CreateDate": "2025-11-17T22:38:25.5503084-08:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2025-11-17T22:38:25.5503084-08:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          {
            "ValidValueId": "643c4672-9bc8-4479-be2c-973e8fa2e841",
            "FieldId": "9d3fc7a1-818c-4c49-b181-27f6c2d6da9c",
            "FieldName": "sample string 1",
            "FieldLabel": "sample string 2",
            "ValueText": "sample string 3",
            "LabelText": "sample string 4"
          },
          {
            "ValidValueId": "643c4672-9bc8-4479-be2c-973e8fa2e841",
            "FieldId": "9d3fc7a1-818c-4c49-b181-27f6c2d6da9c",
            "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": "9700321f-9688-4874-852c-ebf5aaa1d57f",
    "CreateDate": "2025-11-17T22:38:25.5503084-08:00",
    "CreateUser": "sample string 6",
    "LastModifiedDate": "2025-11-17T22:38:25.5503084-08:00",
    "LastModifiedUser": "sample string 7"
  },
  "Associations": [
    {
      "TaskStatusTypeTaskTypeId": "dec6e4d3-cb1e-4ec9-9952-77e32041ca38",
      "CompanyId": "43b71df0-fe0c-4c46-be89-824429b3de3a",
      "TaskStatusTypeId": "10a29757-334e-49a8-b579-078ef66a6629",
      "TaskStatusTypeName": "sample string 2",
      "SourceSystemId": "sample string 3",
      "TaskTypeId": "35dea986-4dff-423a-aa79-270594d9b66c",
      "TaskTypeName": "sample string 4",
      "Description": "sample string 5"
    },
    {
      "TaskStatusTypeTaskTypeId": "dec6e4d3-cb1e-4ec9-9952-77e32041ca38",
      "CompanyId": "43b71df0-fe0c-4c46-be89-824429b3de3a",
      "TaskStatusTypeId": "10a29757-334e-49a8-b579-078ef66a6629",
      "TaskStatusTypeName": "sample string 2",
      "SourceSystemId": "sample string 3",
      "TaskTypeId": "35dea986-4dff-423a-aa79-270594d9b66c",
      "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": "4ff52f45-61a7-4307-a033-86949121f980",
    "Name": "sample string 1",
    "Description": "sample string 2",
    "CustomStatuses": true,
    "Fields": [
      {
        "TaskTypeFieldId": "82d09507-aa9a-42f1-a5a4-b65e1a398927",
        "Section": {
          "TaskTypeSectionId": "eeb7e5fa-631b-4716-b18b-cf9f468b2d1b",
          "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": "50658ef2-cb51-4ace-8c79-b52bfdeebd4f",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "4c2c87db-60cf-4efd-9120-100a36e82ef4",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "73177477-9a11-40ea-9cdc-54bcb262b9a6",
          "CreateDate": "2025-11-17T22:38:25.56593-08:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2025-11-17T22:38:25.56593-08:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          {
            "ValidValueId": "a410ab94-8ff2-4f09-9911-8f891d8c357b",
            "FieldId": "60c26c97-be9f-4d66-ba1e-3bd9e67fcbc9",
            "FieldName": "sample string 1",
            "FieldLabel": "sample string 2",
            "ValueText": "sample string 3",
            "LabelText": "sample string 4"
          },
          {
            "ValidValueId": "a410ab94-8ff2-4f09-9911-8f891d8c357b",
            "FieldId": "60c26c97-be9f-4d66-ba1e-3bd9e67fcbc9",
            "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": "82d09507-aa9a-42f1-a5a4-b65e1a398927",
        "Section": {
          "TaskTypeSectionId": "eeb7e5fa-631b-4716-b18b-cf9f468b2d1b",
          "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": "50658ef2-cb51-4ace-8c79-b52bfdeebd4f",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "4c2c87db-60cf-4efd-9120-100a36e82ef4",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "73177477-9a11-40ea-9cdc-54bcb262b9a6",
          "CreateDate": "2025-11-17T22:38:25.56593-08:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2025-11-17T22:38:25.56593-08:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          {
            "ValidValueId": "a410ab94-8ff2-4f09-9911-8f891d8c357b",
            "FieldId": "60c26c97-be9f-4d66-ba1e-3bd9e67fcbc9",
            "FieldName": "sample string 1",
            "FieldLabel": "sample string 2",
            "ValueText": "sample string 3",
            "LabelText": "sample string 4"
          },
          {
            "ValidValueId": "a410ab94-8ff2-4f09-9911-8f891d8c357b",
            "FieldId": "60c26c97-be9f-4d66-ba1e-3bd9e67fcbc9",
            "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": "bfdcde28-9520-4478-8a3f-668803ca4bae",
    "CreateDate": "2025-11-17T22:38:25.56593-08:00",
    "CreateUser": "sample string 6",
    "LastModifiedDate": "2025-11-17T22:38:25.56593-08:00",
    "LastModifiedUser": "sample string 7"
  },
  "Total": 1,
  "Message": "sample string 1"
}