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": "be8dc484-adc1-4109-a9a4-6fbaa5d23af5",
    "Name": "sample string 1",
    "Description": "sample string 2",
    "CustomStatuses": true,
    "Fields": [
      {
        "TaskTypeFieldId": "d805f9d8-a121-484e-9974-d0c0f78621aa",
        "Section": {
          "TaskTypeSectionId": "e9ebb927-8f38-48e3-bc7b-e15a76badee6",
          "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": "d8abc112-b5c4-4dee-b9e4-d22fbbc2156c",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "7537c6be-53e2-44aa-a4a1-ea020a0c7e64",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "162fe295-b5b3-4c30-8852-f3f5e8aace71",
          "CreateDate": "2025-06-02T14:45:51.9831547-07:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2025-06-02T14:45:51.9831547-07:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          {
            "ValidValueId": "eca46cab-d5d9-40d8-99e3-ab8034d9110d",
            "FieldId": "6ceaca68-e208-4e3f-acd7-74038787878f",
            "FieldName": "sample string 1",
            "FieldLable": "sample string 2",
            "ValueText": "sample string 3",
            "LabelText": "sample string 4"
          },
          {
            "ValidValueId": "eca46cab-d5d9-40d8-99e3-ab8034d9110d",
            "FieldId": "6ceaca68-e208-4e3f-acd7-74038787878f",
            "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": "d805f9d8-a121-484e-9974-d0c0f78621aa",
        "Section": {
          "TaskTypeSectionId": "e9ebb927-8f38-48e3-bc7b-e15a76badee6",
          "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": "d8abc112-b5c4-4dee-b9e4-d22fbbc2156c",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "7537c6be-53e2-44aa-a4a1-ea020a0c7e64",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "162fe295-b5b3-4c30-8852-f3f5e8aace71",
          "CreateDate": "2025-06-02T14:45:51.9831547-07:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2025-06-02T14:45:51.9831547-07:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          {
            "ValidValueId": "eca46cab-d5d9-40d8-99e3-ab8034d9110d",
            "FieldId": "6ceaca68-e208-4e3f-acd7-74038787878f",
            "FieldName": "sample string 1",
            "FieldLable": "sample string 2",
            "ValueText": "sample string 3",
            "LabelText": "sample string 4"
          },
          {
            "ValidValueId": "eca46cab-d5d9-40d8-99e3-ab8034d9110d",
            "FieldId": "6ceaca68-e208-4e3f-acd7-74038787878f",
            "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": "38fe3188-58b5-4edd-884d-7decfdca000e",
    "CreateDate": "2025-06-02T14:45:51.9831547-07:00",
    "CreateUser": "sample string 6",
    "LastModifiedDate": "2025-06-02T14:45:51.9831547-07:00",
    "LastModifiedUser": "sample string 7"
  },
  "Associations": [
    {
      "TaskStatusTypeTaskTypeId": "b2380d8d-1046-4ba1-b2f0-c3c3fe4d3d3c",
      "CompanyId": "90b82112-5234-4dda-9411-1c830e3a87db",
      "TaskStatusTypeId": "1e2a742d-8b34-4565-a970-953b9ba363a7",
      "TaskStatusTypeName": "sample string 2",
      "SourceSystemId": "sample string 3",
      "TaskTypeId": "dec4751e-ba59-4065-8022-4cc6b99ac348",
      "TaskTypeName": "sample string 4",
      "Description": "sample string 5"
    },
    {
      "TaskStatusTypeTaskTypeId": "b2380d8d-1046-4ba1-b2f0-c3c3fe4d3d3c",
      "CompanyId": "90b82112-5234-4dda-9411-1c830e3a87db",
      "TaskStatusTypeId": "1e2a742d-8b34-4565-a970-953b9ba363a7",
      "TaskStatusTypeName": "sample string 2",
      "SourceSystemId": "sample string 3",
      "TaskTypeId": "dec4751e-ba59-4065-8022-4cc6b99ac348",
      "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": "26a0419a-522c-4ca7-b824-3887ccebe965",
    "Name": "sample string 1",
    "Description": "sample string 2",
    "CustomStatuses": true,
    "Fields": [
      {
        "TaskTypeFieldId": "8492e661-0f3f-4b91-ae49-4b0c198d55a6",
        "Section": {
          "TaskTypeSectionId": "6b363836-9e25-4ea4-aa3f-580de9a0be81",
          "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": "6286552b-70a2-4889-aef3-58b9fa879ef9",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "9078f52d-0c29-4221-b694-b658c062af3f",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "65225cbf-becf-49b3-89d5-19aa61daaa1c",
          "CreateDate": "2025-06-02T14:45:51.9831547-07:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2025-06-02T14:45:51.9831547-07:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          {
            "ValidValueId": "1adda4bb-ce03-41e6-9ba4-edd0d49e3f69",
            "FieldId": "6a4614b9-9836-4d80-bae7-f4839d918234",
            "FieldName": "sample string 1",
            "FieldLable": "sample string 2",
            "ValueText": "sample string 3",
            "LabelText": "sample string 4"
          },
          {
            "ValidValueId": "1adda4bb-ce03-41e6-9ba4-edd0d49e3f69",
            "FieldId": "6a4614b9-9836-4d80-bae7-f4839d918234",
            "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": "8492e661-0f3f-4b91-ae49-4b0c198d55a6",
        "Section": {
          "TaskTypeSectionId": "6b363836-9e25-4ea4-aa3f-580de9a0be81",
          "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": "6286552b-70a2-4889-aef3-58b9fa879ef9",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "9078f52d-0c29-4221-b694-b658c062af3f",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "65225cbf-becf-49b3-89d5-19aa61daaa1c",
          "CreateDate": "2025-06-02T14:45:51.9831547-07:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2025-06-02T14:45:51.9831547-07:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          {
            "ValidValueId": "1adda4bb-ce03-41e6-9ba4-edd0d49e3f69",
            "FieldId": "6a4614b9-9836-4d80-bae7-f4839d918234",
            "FieldName": "sample string 1",
            "FieldLable": "sample string 2",
            "ValueText": "sample string 3",
            "LabelText": "sample string 4"
          },
          {
            "ValidValueId": "1adda4bb-ce03-41e6-9ba4-edd0d49e3f69",
            "FieldId": "6a4614b9-9836-4d80-bae7-f4839d918234",
            "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": "5de46dfa-1948-41ac-a7b0-51c74b76716c",
    "CreateDate": "2025-06-02T14:45:51.9831547-07:00",
    "CreateUser": "sample string 6",
    "LastModifiedDate": "2025-06-02T14:45:51.9831547-07:00",
    "LastModifiedUser": "sample string 7"
  },
  "Total": 1,
  "Message": "sample string 1"
}