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": "d9fb8299-c280-41f2-b2fa-2c400ca78a7b",
    "Name": "sample string 1",
    "Description": "sample string 2",
    "CustomStatuses": true,
    "Fields": [
      {
        "TaskTypeFieldId": "1058a8b3-df31-4a92-b968-e6d13b4e9b3c",
        "Section": {
          "TaskTypeSectionId": "68931f98-6c4f-4ebf-ae2b-ac8dd5f33723",
          "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": "10bb95b3-59f6-41dd-8337-125f75a3eda1",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "8e8eb2cc-fe1c-4e3a-8c23-4a1f9298d298",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "f784ef0e-a893-4f15-83e9-08e8d129e99b",
          "CreateDate": "2025-07-06T14:12:13.0525326-07:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2025-07-06T14:12:13.0525326-07:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          {
            "ValidValueId": "1a5eac52-a00a-4c22-9aae-c9bee5d53c32",
            "FieldId": "14ef394b-6471-4569-848e-26f574db6a7c",
            "FieldName": "sample string 1",
            "FieldLable": "sample string 2",
            "ValueText": "sample string 3",
            "LabelText": "sample string 4"
          },
          {
            "ValidValueId": "1a5eac52-a00a-4c22-9aae-c9bee5d53c32",
            "FieldId": "14ef394b-6471-4569-848e-26f574db6a7c",
            "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": "1058a8b3-df31-4a92-b968-e6d13b4e9b3c",
        "Section": {
          "TaskTypeSectionId": "68931f98-6c4f-4ebf-ae2b-ac8dd5f33723",
          "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": "10bb95b3-59f6-41dd-8337-125f75a3eda1",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "8e8eb2cc-fe1c-4e3a-8c23-4a1f9298d298",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "f784ef0e-a893-4f15-83e9-08e8d129e99b",
          "CreateDate": "2025-07-06T14:12:13.0525326-07:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2025-07-06T14:12:13.0525326-07:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          {
            "ValidValueId": "1a5eac52-a00a-4c22-9aae-c9bee5d53c32",
            "FieldId": "14ef394b-6471-4569-848e-26f574db6a7c",
            "FieldName": "sample string 1",
            "FieldLable": "sample string 2",
            "ValueText": "sample string 3",
            "LabelText": "sample string 4"
          },
          {
            "ValidValueId": "1a5eac52-a00a-4c22-9aae-c9bee5d53c32",
            "FieldId": "14ef394b-6471-4569-848e-26f574db6a7c",
            "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": "2f5ada33-095d-4ca4-8d30-79d76e6e93d8",
    "CreateDate": "2025-07-06T14:12:13.0525326-07:00",
    "CreateUser": "sample string 6",
    "LastModifiedDate": "2025-07-06T14:12:13.0525326-07:00",
    "LastModifiedUser": "sample string 7"
  },
  "Associations": [
    {
      "TaskStatusTypeTaskTypeId": "163115b6-e00e-42bd-abee-7541981a8c6c",
      "CompanyId": "6166b2b3-bac8-4f9f-884b-f961865063b1",
      "TaskStatusTypeId": "cc97ebac-0d07-43d6-b561-98d35c062ffd",
      "TaskStatusTypeName": "sample string 2",
      "SourceSystemId": "sample string 3",
      "TaskTypeId": "0c1b384b-a58b-41db-a48b-610a20e97d13",
      "TaskTypeName": "sample string 4",
      "Description": "sample string 5"
    },
    {
      "TaskStatusTypeTaskTypeId": "163115b6-e00e-42bd-abee-7541981a8c6c",
      "CompanyId": "6166b2b3-bac8-4f9f-884b-f961865063b1",
      "TaskStatusTypeId": "cc97ebac-0d07-43d6-b561-98d35c062ffd",
      "TaskStatusTypeName": "sample string 2",
      "SourceSystemId": "sample string 3",
      "TaskTypeId": "0c1b384b-a58b-41db-a48b-610a20e97d13",
      "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": "9f815b7b-4514-48e9-aec0-b85716a691fd",
    "Name": "sample string 1",
    "Description": "sample string 2",
    "CustomStatuses": true,
    "Fields": [
      {
        "TaskTypeFieldId": "6dfa1661-60e1-435d-a4bd-5305a1c4e6d8",
        "Section": {
          "TaskTypeSectionId": "bace7b42-be7d-49cf-a465-71e20911dfe9",
          "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": "3a54d559-1372-471f-9e5a-dc91aa8a8753",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "f484aed6-c535-4725-ad36-a2d8871d4676",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "795f353e-2d8a-4375-9960-08dc60297096",
          "CreateDate": "2025-07-06T14:12:13.0525326-07:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2025-07-06T14:12:13.0525326-07:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          {
            "ValidValueId": "d4fa93f5-300c-4d75-ad76-d11f13576fed",
            "FieldId": "af1ec061-3c36-4c4b-857e-b5ff88c92ee5",
            "FieldName": "sample string 1",
            "FieldLable": "sample string 2",
            "ValueText": "sample string 3",
            "LabelText": "sample string 4"
          },
          {
            "ValidValueId": "d4fa93f5-300c-4d75-ad76-d11f13576fed",
            "FieldId": "af1ec061-3c36-4c4b-857e-b5ff88c92ee5",
            "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": "6dfa1661-60e1-435d-a4bd-5305a1c4e6d8",
        "Section": {
          "TaskTypeSectionId": "bace7b42-be7d-49cf-a465-71e20911dfe9",
          "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": "3a54d559-1372-471f-9e5a-dc91aa8a8753",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "f484aed6-c535-4725-ad36-a2d8871d4676",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "795f353e-2d8a-4375-9960-08dc60297096",
          "CreateDate": "2025-07-06T14:12:13.0525326-07:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2025-07-06T14:12:13.0525326-07:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          {
            "ValidValueId": "d4fa93f5-300c-4d75-ad76-d11f13576fed",
            "FieldId": "af1ec061-3c36-4c4b-857e-b5ff88c92ee5",
            "FieldName": "sample string 1",
            "FieldLable": "sample string 2",
            "ValueText": "sample string 3",
            "LabelText": "sample string 4"
          },
          {
            "ValidValueId": "d4fa93f5-300c-4d75-ad76-d11f13576fed",
            "FieldId": "af1ec061-3c36-4c4b-857e-b5ff88c92ee5",
            "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": "a59deb9a-bfe9-4cac-ad2d-32895610de85",
    "CreateDate": "2025-07-06T14:12:13.0525326-07:00",
    "CreateUser": "sample string 6",
    "LastModifiedDate": "2025-07-06T14:12:13.0525326-07:00",
    "LastModifiedUser": "sample string 7"
  },
  "Total": 1,
  "Message": "sample string 1"
}