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": "b71ccc5d-3cb9-4ddd-ac28-5f7803464bea",
    "Name": "sample string 1",
    "Description": "sample string 2",
    "CustomStatuses": true,
    "Fields": [
      {
        "TaskTypeFieldId": "ecbfe9a0-ba95-4be6-b2a7-cb4899f4c068",
        "Section": {
          "TaskTypeSectionId": "d31630cb-4314-432a-8f00-867570c03187",
          "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": "1da75829-39eb-46c4-8160-83c1e49fcdb6",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "cc3165ff-8b04-4654-bccb-397742142a78",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "e6ba2d26-8be3-492c-a941-0534afc8c467",
          "CreateDate": "2025-06-02T06:23:13.4793715-07:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2025-06-02T06:23:13.4793715-07:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          {
            "ValidValueId": "c8c8befc-9fae-4e59-a1aa-38178d1e3902",
            "FieldId": "a45804c6-1f54-46b3-9d77-ddf0e8b3adc2",
            "FieldName": "sample string 1",
            "FieldLabel": "sample string 2",
            "ValueText": "sample string 3",
            "LabelText": "sample string 4"
          },
          {
            "ValidValueId": "c8c8befc-9fae-4e59-a1aa-38178d1e3902",
            "FieldId": "a45804c6-1f54-46b3-9d77-ddf0e8b3adc2",
            "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": "ecbfe9a0-ba95-4be6-b2a7-cb4899f4c068",
        "Section": {
          "TaskTypeSectionId": "d31630cb-4314-432a-8f00-867570c03187",
          "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": "1da75829-39eb-46c4-8160-83c1e49fcdb6",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "cc3165ff-8b04-4654-bccb-397742142a78",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "e6ba2d26-8be3-492c-a941-0534afc8c467",
          "CreateDate": "2025-06-02T06:23:13.4793715-07:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2025-06-02T06:23:13.4793715-07:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          {
            "ValidValueId": "c8c8befc-9fae-4e59-a1aa-38178d1e3902",
            "FieldId": "a45804c6-1f54-46b3-9d77-ddf0e8b3adc2",
            "FieldName": "sample string 1",
            "FieldLabel": "sample string 2",
            "ValueText": "sample string 3",
            "LabelText": "sample string 4"
          },
          {
            "ValidValueId": "c8c8befc-9fae-4e59-a1aa-38178d1e3902",
            "FieldId": "a45804c6-1f54-46b3-9d77-ddf0e8b3adc2",
            "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": "6d7f5e0b-6fb4-4f9d-aa23-beafd0c5584f",
    "CreateDate": "2025-06-02T06:23:13.4793715-07:00",
    "CreateUser": "sample string 6",
    "LastModifiedDate": "2025-06-02T06:23:13.4793715-07:00",
    "LastModifiedUser": "sample string 7"
  },
  "Associations": [
    {
      "TaskStatusTypeTaskTypeId": "3916f2b6-f860-41fd-9b9f-a3a2be34913e",
      "CompanyId": "7d5a8374-e831-44e2-984e-d8b78e48eabe",
      "TaskStatusTypeId": "762119c8-da92-4b60-8396-02cacc59d9af",
      "TaskStatusTypeName": "sample string 2",
      "SourceSystemId": "sample string 3",
      "TaskTypeId": "dacdf7c7-9c0d-448c-9539-692bc579f532",
      "TaskTypeName": "sample string 4",
      "Description": "sample string 5"
    },
    {
      "TaskStatusTypeTaskTypeId": "3916f2b6-f860-41fd-9b9f-a3a2be34913e",
      "CompanyId": "7d5a8374-e831-44e2-984e-d8b78e48eabe",
      "TaskStatusTypeId": "762119c8-da92-4b60-8396-02cacc59d9af",
      "TaskStatusTypeName": "sample string 2",
      "SourceSystemId": "sample string 3",
      "TaskTypeId": "dacdf7c7-9c0d-448c-9539-692bc579f532",
      "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": "6abbf023-6735-4786-a5e6-ec7ebb706675",
    "Name": "sample string 1",
    "Description": "sample string 2",
    "CustomStatuses": true,
    "Fields": [
      {
        "TaskTypeFieldId": "45081854-fee5-4067-a9f0-4b87fa243fbe",
        "Section": {
          "TaskTypeSectionId": "d55f49c7-9fe8-4692-9d95-9be29f5c4843",
          "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": "9c844c77-15be-4455-bc79-717f963193a1",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "2c2878d8-e2fe-471e-8461-de53335ddaae",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "4cdf9d98-70f7-4e38-906f-17f032023844",
          "CreateDate": "2025-06-02T06:23:13.4793715-07:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2025-06-02T06:23:13.4793715-07:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          {
            "ValidValueId": "8daa4115-c2c6-46a1-916b-8d6254cb8e95",
            "FieldId": "cbf45881-5c6d-463c-8b7a-b72c85c36650",
            "FieldName": "sample string 1",
            "FieldLabel": "sample string 2",
            "ValueText": "sample string 3",
            "LabelText": "sample string 4"
          },
          {
            "ValidValueId": "8daa4115-c2c6-46a1-916b-8d6254cb8e95",
            "FieldId": "cbf45881-5c6d-463c-8b7a-b72c85c36650",
            "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": "45081854-fee5-4067-a9f0-4b87fa243fbe",
        "Section": {
          "TaskTypeSectionId": "d55f49c7-9fe8-4692-9d95-9be29f5c4843",
          "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": "9c844c77-15be-4455-bc79-717f963193a1",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "2c2878d8-e2fe-471e-8461-de53335ddaae",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "4cdf9d98-70f7-4e38-906f-17f032023844",
          "CreateDate": "2025-06-02T06:23:13.4793715-07:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2025-06-02T06:23:13.4793715-07:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          {
            "ValidValueId": "8daa4115-c2c6-46a1-916b-8d6254cb8e95",
            "FieldId": "cbf45881-5c6d-463c-8b7a-b72c85c36650",
            "FieldName": "sample string 1",
            "FieldLabel": "sample string 2",
            "ValueText": "sample string 3",
            "LabelText": "sample string 4"
          },
          {
            "ValidValueId": "8daa4115-c2c6-46a1-916b-8d6254cb8e95",
            "FieldId": "cbf45881-5c6d-463c-8b7a-b72c85c36650",
            "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": "27de2cfa-bdd5-42ee-8d89-394510c6f13a",
    "CreateDate": "2025-06-02T06:23:13.4793715-07:00",
    "CreateUser": "sample string 6",
    "LastModifiedDate": "2025-06-02T06:23:13.4793715-07:00",
    "LastModifiedUser": "sample string 7"
  },
  "Total": 1,
  "Message": "sample string 1"
}