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": "c6d6aeda-e5f2-41bd-bb11-4e94f3c5a91a",
    "Name": "sample string 1",
    "Description": "sample string 2",
    "CustomStatuses": true,
    "Fields": [
      {
        "TaskTypeFieldId": "209d67e6-aa30-46da-b340-f3bd32e580fc",
        "Section": {
          "TaskTypeSectionId": "07eeb40f-984b-4f59-bc32-84e845c2617b",
          "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": "95bf7bfc-fa43-4139-b96f-fc75a473f088",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "ec81be49-7372-444b-912e-dd3f0efe5d8e",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "cc4d2a25-d56c-49a0-b4fd-c1b7e409ac84",
          "CreateDate": "2025-07-09T17:31:39.8434235-07:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2025-07-09T17:31:39.8434235-07:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          {
            "ValidValueId": "709ee257-ff15-41e0-b324-d59927cf5abc",
            "FieldId": "116be604-c679-464f-b561-7ab49fdd2d1b",
            "FieldName": "sample string 1",
            "FieldLable": "sample string 2",
            "ValueText": "sample string 3",
            "LabelText": "sample string 4"
          },
          {
            "ValidValueId": "709ee257-ff15-41e0-b324-d59927cf5abc",
            "FieldId": "116be604-c679-464f-b561-7ab49fdd2d1b",
            "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": "209d67e6-aa30-46da-b340-f3bd32e580fc",
        "Section": {
          "TaskTypeSectionId": "07eeb40f-984b-4f59-bc32-84e845c2617b",
          "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": "95bf7bfc-fa43-4139-b96f-fc75a473f088",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "ec81be49-7372-444b-912e-dd3f0efe5d8e",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "cc4d2a25-d56c-49a0-b4fd-c1b7e409ac84",
          "CreateDate": "2025-07-09T17:31:39.8434235-07:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2025-07-09T17:31:39.8434235-07:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          {
            "ValidValueId": "709ee257-ff15-41e0-b324-d59927cf5abc",
            "FieldId": "116be604-c679-464f-b561-7ab49fdd2d1b",
            "FieldName": "sample string 1",
            "FieldLable": "sample string 2",
            "ValueText": "sample string 3",
            "LabelText": "sample string 4"
          },
          {
            "ValidValueId": "709ee257-ff15-41e0-b324-d59927cf5abc",
            "FieldId": "116be604-c679-464f-b561-7ab49fdd2d1b",
            "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": "5e469772-f57c-405f-bf17-c3552a3a08bb",
    "CreateDate": "2025-07-09T17:31:39.8434235-07:00",
    "CreateUser": "sample string 6",
    "LastModifiedDate": "2025-07-09T17:31:39.8434235-07:00",
    "LastModifiedUser": "sample string 7"
  },
  "Associations": [
    {
      "TaskStatusTypeTaskTypeId": "5e0aa100-3c85-4d78-9f5d-7a801ff15fb1",
      "CompanyId": "5577b9a7-2ea5-45b9-84de-67d2b4aedc8f",
      "TaskStatusTypeId": "963a7f1a-d295-436a-852d-c8fd0cb21b35",
      "TaskStatusTypeName": "sample string 2",
      "SourceSystemId": "sample string 3",
      "TaskTypeId": "e01ef79d-57d4-48be-a5a1-daba22565f63",
      "TaskTypeName": "sample string 4",
      "Description": "sample string 5"
    },
    {
      "TaskStatusTypeTaskTypeId": "5e0aa100-3c85-4d78-9f5d-7a801ff15fb1",
      "CompanyId": "5577b9a7-2ea5-45b9-84de-67d2b4aedc8f",
      "TaskStatusTypeId": "963a7f1a-d295-436a-852d-c8fd0cb21b35",
      "TaskStatusTypeName": "sample string 2",
      "SourceSystemId": "sample string 3",
      "TaskTypeId": "e01ef79d-57d4-48be-a5a1-daba22565f63",
      "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": "27d7c07e-7d55-4509-89aa-19959c6a20b4",
    "Name": "sample string 1",
    "Description": "sample string 2",
    "CustomStatuses": true,
    "Fields": [
      {
        "TaskTypeFieldId": "171a87d7-912a-4f27-a1c9-2062d409af3c",
        "Section": {
          "TaskTypeSectionId": "70a1183a-eb9a-4232-b9c1-b79deccea660",
          "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": "3a203ca0-5a8c-4326-b1da-fd2394210b51",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "966d2226-5ed0-40d2-a792-7a38e7e70d9f",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "65adfb57-8d8d-464c-a454-c965206f4b13",
          "CreateDate": "2025-07-09T17:31:39.8590413-07:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2025-07-09T17:31:39.8590413-07:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          {
            "ValidValueId": "5d8a37c8-177c-4cf1-8d36-59b5b0909fc8",
            "FieldId": "f0aa7062-cb94-4170-85b9-5c35e606dfbc",
            "FieldName": "sample string 1",
            "FieldLable": "sample string 2",
            "ValueText": "sample string 3",
            "LabelText": "sample string 4"
          },
          {
            "ValidValueId": "5d8a37c8-177c-4cf1-8d36-59b5b0909fc8",
            "FieldId": "f0aa7062-cb94-4170-85b9-5c35e606dfbc",
            "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": "171a87d7-912a-4f27-a1c9-2062d409af3c",
        "Section": {
          "TaskTypeSectionId": "70a1183a-eb9a-4232-b9c1-b79deccea660",
          "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": "3a203ca0-5a8c-4326-b1da-fd2394210b51",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "966d2226-5ed0-40d2-a792-7a38e7e70d9f",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "65adfb57-8d8d-464c-a454-c965206f4b13",
          "CreateDate": "2025-07-09T17:31:39.8590413-07:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2025-07-09T17:31:39.8590413-07:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          {
            "ValidValueId": "5d8a37c8-177c-4cf1-8d36-59b5b0909fc8",
            "FieldId": "f0aa7062-cb94-4170-85b9-5c35e606dfbc",
            "FieldName": "sample string 1",
            "FieldLable": "sample string 2",
            "ValueText": "sample string 3",
            "LabelText": "sample string 4"
          },
          {
            "ValidValueId": "5d8a37c8-177c-4cf1-8d36-59b5b0909fc8",
            "FieldId": "f0aa7062-cb94-4170-85b9-5c35e606dfbc",
            "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": "a5e26dea-c5fa-4368-a96a-ae40b8cf4055",
    "CreateDate": "2025-07-09T17:31:39.8590413-07:00",
    "CreateUser": "sample string 6",
    "LastModifiedDate": "2025-07-09T17:31:39.8590413-07:00",
    "LastModifiedUser": "sample string 7"
  },
  "Total": 1,
  "Message": "sample string 1"
}