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": "0cd72d07-b31a-4c99-87e0-0ff5beb1aa62",
    "Name": "sample string 1",
    "Description": "sample string 2",
    "CustomStatuses": true,
    "Fields": [
      {
        "TaskTypeFieldId": "c5a82584-a134-4c62-847e-d0107eb8d7c5",
        "Section": {
          "TaskTypeSectionId": "f4ef0556-a493-46aa-b9c4-df5b57252271",
          "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": "bf7900a5-4f78-43cf-83f6-a5e2f14fe678",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "4a16c12f-be82-479a-bdcc-8bd0bb86e3ef",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "56c8a673-881e-42af-9c4d-5ba10051cfef",
          "CreateDate": "2024-12-22T02:58:12.2683734-08:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2024-12-22T02:58:12.2683734-08:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          {
            "ValidValueId": "65b9b7a1-fd89-4e70-890b-439c5e9aad12",
            "FieldId": "11fa3114-3d97-4732-aae7-5a84f408fb46",
            "FieldName": "sample string 1",
            "FieldLabel": "sample string 2",
            "ValueText": "sample string 3",
            "LabelText": "sample string 4"
          },
          {
            "ValidValueId": "65b9b7a1-fd89-4e70-890b-439c5e9aad12",
            "FieldId": "11fa3114-3d97-4732-aae7-5a84f408fb46",
            "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": "c5a82584-a134-4c62-847e-d0107eb8d7c5",
        "Section": {
          "TaskTypeSectionId": "f4ef0556-a493-46aa-b9c4-df5b57252271",
          "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": "bf7900a5-4f78-43cf-83f6-a5e2f14fe678",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "4a16c12f-be82-479a-bdcc-8bd0bb86e3ef",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "56c8a673-881e-42af-9c4d-5ba10051cfef",
          "CreateDate": "2024-12-22T02:58:12.2683734-08:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2024-12-22T02:58:12.2683734-08:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          {
            "ValidValueId": "65b9b7a1-fd89-4e70-890b-439c5e9aad12",
            "FieldId": "11fa3114-3d97-4732-aae7-5a84f408fb46",
            "FieldName": "sample string 1",
            "FieldLabel": "sample string 2",
            "ValueText": "sample string 3",
            "LabelText": "sample string 4"
          },
          {
            "ValidValueId": "65b9b7a1-fd89-4e70-890b-439c5e9aad12",
            "FieldId": "11fa3114-3d97-4732-aae7-5a84f408fb46",
            "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": "e34d1da2-424c-4eb7-9d5d-9fc6cb18124c",
    "CreateDate": "2024-12-22T02:58:12.2683734-08:00",
    "CreateUser": "sample string 6",
    "LastModifiedDate": "2024-12-22T02:58:12.2683734-08:00",
    "LastModifiedUser": "sample string 7"
  },
  "Associations": [
    {
      "TaskStatusTypeTaskTypeId": "adff0888-e11e-48c8-b721-5e67048845ec",
      "CompanyId": "35e47068-15ba-4dce-90e2-1ddc8e9d811e",
      "TaskStatusTypeId": "15daaa1c-caaf-4f9d-b43f-a3396aab59dd",
      "TaskStatusTypeName": "sample string 2",
      "SourceSystemId": "sample string 3",
      "TaskTypeId": "804fc70d-096d-4eff-b8ee-aa0442f0f8de",
      "TaskTypeName": "sample string 4",
      "Description": "sample string 5"
    },
    {
      "TaskStatusTypeTaskTypeId": "adff0888-e11e-48c8-b721-5e67048845ec",
      "CompanyId": "35e47068-15ba-4dce-90e2-1ddc8e9d811e",
      "TaskStatusTypeId": "15daaa1c-caaf-4f9d-b43f-a3396aab59dd",
      "TaskStatusTypeName": "sample string 2",
      "SourceSystemId": "sample string 3",
      "TaskTypeId": "804fc70d-096d-4eff-b8ee-aa0442f0f8de",
      "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": "ac992fba-d4bf-4194-8deb-9e9ab7f5dfa5",
    "Name": "sample string 1",
    "Description": "sample string 2",
    "CustomStatuses": true,
    "Fields": [
      {
        "TaskTypeFieldId": "c2034038-b937-4200-8998-8c41f609b8c7",
        "Section": {
          "TaskTypeSectionId": "09003546-e567-4455-b45a-0f935eeb5d53",
          "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": "e5430474-66b1-4aea-af76-c9f05bf7d1b0",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "1b37fc2b-427b-4540-9971-594da94a584b",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "47232a7c-6402-4f34-8021-239e46372406",
          "CreateDate": "2024-12-22T02:58:12.2683734-08:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2024-12-22T02:58:12.2683734-08:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          {
            "ValidValueId": "8a26707e-8c1a-45c1-a345-9f06fb6ad014",
            "FieldId": "d586a106-9126-474e-9f84-041e9469560a",
            "FieldName": "sample string 1",
            "FieldLabel": "sample string 2",
            "ValueText": "sample string 3",
            "LabelText": "sample string 4"
          },
          {
            "ValidValueId": "8a26707e-8c1a-45c1-a345-9f06fb6ad014",
            "FieldId": "d586a106-9126-474e-9f84-041e9469560a",
            "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": "c2034038-b937-4200-8998-8c41f609b8c7",
        "Section": {
          "TaskTypeSectionId": "09003546-e567-4455-b45a-0f935eeb5d53",
          "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": "e5430474-66b1-4aea-af76-c9f05bf7d1b0",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "1b37fc2b-427b-4540-9971-594da94a584b",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "47232a7c-6402-4f34-8021-239e46372406",
          "CreateDate": "2024-12-22T02:58:12.2683734-08:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2024-12-22T02:58:12.2683734-08:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          {
            "ValidValueId": "8a26707e-8c1a-45c1-a345-9f06fb6ad014",
            "FieldId": "d586a106-9126-474e-9f84-041e9469560a",
            "FieldName": "sample string 1",
            "FieldLabel": "sample string 2",
            "ValueText": "sample string 3",
            "LabelText": "sample string 4"
          },
          {
            "ValidValueId": "8a26707e-8c1a-45c1-a345-9f06fb6ad014",
            "FieldId": "d586a106-9126-474e-9f84-041e9469560a",
            "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": "e53d2938-99a2-4d81-a2fd-bff07ad00da7",
    "CreateDate": "2024-12-22T02:58:12.2683734-08:00",
    "CreateUser": "sample string 6",
    "LastModifiedDate": "2024-12-22T02:58:12.2683734-08:00",
    "LastModifiedUser": "sample string 7"
  },
  "Total": 1,
  "Message": "sample string 1"
}