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": "1a9a1519-f719-4a31-822a-20e273a97834",
    "Name": "sample string 1",
    "Description": "sample string 2",
    "CustomStatuses": true,
    "Fields": [
      {
        "TaskTypeFieldId": "b07d0b1c-3a74-4069-863b-27eeef417d85",
        "Section": {
          "TaskTypeSectionId": "e53f90b2-c60a-46c7-9319-b24ec4902bfb",
          "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": "1d932bf7-1230-48c2-b8bb-aef28678d6bc",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "b25d609c-c765-4e79-ace3-95df3864bb22",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "aedf972e-7249-4ef8-8e23-6f8f072ec4ff",
          "CreateDate": "2025-02-05T06:08:50.1879609-08:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2025-02-05T06:08:50.1879609-08:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          {
            "ValidValueId": "d343fa5d-6c15-41a6-87cc-086d3809d99b",
            "FieldId": "7398d1a0-d0d8-47b2-8843-05d891e9ebad",
            "FieldName": "sample string 1",
            "FieldLabel": "sample string 2",
            "ValueText": "sample string 3",
            "LabelText": "sample string 4"
          },
          {
            "ValidValueId": "d343fa5d-6c15-41a6-87cc-086d3809d99b",
            "FieldId": "7398d1a0-d0d8-47b2-8843-05d891e9ebad",
            "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": "b07d0b1c-3a74-4069-863b-27eeef417d85",
        "Section": {
          "TaskTypeSectionId": "e53f90b2-c60a-46c7-9319-b24ec4902bfb",
          "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": "1d932bf7-1230-48c2-b8bb-aef28678d6bc",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "b25d609c-c765-4e79-ace3-95df3864bb22",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "aedf972e-7249-4ef8-8e23-6f8f072ec4ff",
          "CreateDate": "2025-02-05T06:08:50.1879609-08:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2025-02-05T06:08:50.1879609-08:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          {
            "ValidValueId": "d343fa5d-6c15-41a6-87cc-086d3809d99b",
            "FieldId": "7398d1a0-d0d8-47b2-8843-05d891e9ebad",
            "FieldName": "sample string 1",
            "FieldLabel": "sample string 2",
            "ValueText": "sample string 3",
            "LabelText": "sample string 4"
          },
          {
            "ValidValueId": "d343fa5d-6c15-41a6-87cc-086d3809d99b",
            "FieldId": "7398d1a0-d0d8-47b2-8843-05d891e9ebad",
            "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": "be0e3b58-98de-4227-b7a3-3280841a02f1",
    "CreateDate": "2025-02-05T06:08:50.1879609-08:00",
    "CreateUser": "sample string 6",
    "LastModifiedDate": "2025-02-05T06:08:50.1879609-08:00",
    "LastModifiedUser": "sample string 7"
  },
  "Associations": [
    {
      "TaskStatusTypeTaskTypeId": "ace0dc85-86da-4fd1-87fd-10ef4d2fef70",
      "CompanyId": "1619fed4-7bdb-46ab-8353-e68012415fa2",
      "TaskStatusTypeId": "557f87d4-2186-47ed-a4f8-d92b7d908e90",
      "TaskStatusTypeName": "sample string 2",
      "SourceSystemId": "sample string 3",
      "TaskTypeId": "c0068fa5-b50c-47e5-b337-90151a154e00",
      "TaskTypeName": "sample string 4",
      "Description": "sample string 5"
    },
    {
      "TaskStatusTypeTaskTypeId": "ace0dc85-86da-4fd1-87fd-10ef4d2fef70",
      "CompanyId": "1619fed4-7bdb-46ab-8353-e68012415fa2",
      "TaskStatusTypeId": "557f87d4-2186-47ed-a4f8-d92b7d908e90",
      "TaskStatusTypeName": "sample string 2",
      "SourceSystemId": "sample string 3",
      "TaskTypeId": "c0068fa5-b50c-47e5-b337-90151a154e00",
      "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": "59747f45-eb30-452e-a0b7-b743310aa30f",
    "Name": "sample string 1",
    "Description": "sample string 2",
    "CustomStatuses": true,
    "Fields": [
      {
        "TaskTypeFieldId": "cca33e12-e38f-4d7c-9503-c318cb2d4ad2",
        "Section": {
          "TaskTypeSectionId": "0bb36e57-6007-48a8-9e7c-bf8884a5c13a",
          "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": "e7ed14eb-1fb9-4281-99de-df7b88376f0c",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "d465ad22-eb89-42dd-92eb-bc2568e0ae14",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "0bc842a8-c584-44e1-97d9-c5f2bf6385be",
          "CreateDate": "2025-02-05T06:08:50.2035535-08:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2025-02-05T06:08:50.2035535-08:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          {
            "ValidValueId": "8c49595b-861b-4ac3-9869-a1dcf963aa14",
            "FieldId": "e7b9dd4e-0a2d-4726-ad48-cefa88303bc2",
            "FieldName": "sample string 1",
            "FieldLabel": "sample string 2",
            "ValueText": "sample string 3",
            "LabelText": "sample string 4"
          },
          {
            "ValidValueId": "8c49595b-861b-4ac3-9869-a1dcf963aa14",
            "FieldId": "e7b9dd4e-0a2d-4726-ad48-cefa88303bc2",
            "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": "cca33e12-e38f-4d7c-9503-c318cb2d4ad2",
        "Section": {
          "TaskTypeSectionId": "0bb36e57-6007-48a8-9e7c-bf8884a5c13a",
          "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": "e7ed14eb-1fb9-4281-99de-df7b88376f0c",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "d465ad22-eb89-42dd-92eb-bc2568e0ae14",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "0bc842a8-c584-44e1-97d9-c5f2bf6385be",
          "CreateDate": "2025-02-05T06:08:50.2035535-08:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2025-02-05T06:08:50.2035535-08:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          {
            "ValidValueId": "8c49595b-861b-4ac3-9869-a1dcf963aa14",
            "FieldId": "e7b9dd4e-0a2d-4726-ad48-cefa88303bc2",
            "FieldName": "sample string 1",
            "FieldLabel": "sample string 2",
            "ValueText": "sample string 3",
            "LabelText": "sample string 4"
          },
          {
            "ValidValueId": "8c49595b-861b-4ac3-9869-a1dcf963aa14",
            "FieldId": "e7b9dd4e-0a2d-4726-ad48-cefa88303bc2",
            "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": "593472d7-2a45-404a-9960-bd3d7e6b2b5c",
    "CreateDate": "2025-02-05T06:08:50.2035535-08:00",
    "CreateUser": "sample string 6",
    "LastModifiedDate": "2025-02-05T06:08:50.2035535-08:00",
    "LastModifiedUser": "sample string 7"
  },
  "Total": 1,
  "Message": "sample string 1"
}