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": "01850894-e7ce-481b-9d32-28764966ab07",
    "Name": "sample string 1",
    "Description": "sample string 2",
    "CustomStatuses": true,
    "Fields": [
      {
        "TaskTypeFieldId": "acc3c568-2c34-472c-81da-e0bcbbdfef8f",
        "Section": {
          "TaskTypeSectionId": "8eecc1f9-b3d7-45d1-b2da-389ce2e990d9",
          "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": "24ecd99f-9436-4fcf-8b85-1e8833f734df",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "0ca0d2cf-96de-4620-937a-bc0fa29d3d47",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "97414657-6e4f-48bf-aa48-dc924282396b",
          "CreateDate": "2025-05-08T19:50:10.3697333-07:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2025-05-08T19:50:10.3697333-07:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          {
            "ValidValueId": "e30057cd-df35-470b-b6b9-758440e72407",
            "FieldId": "c9ed4efb-23ec-4528-afe3-5aea95097d56",
            "FieldName": "sample string 1",
            "FieldLable": "sample string 2",
            "ValueText": "sample string 3",
            "LabelText": "sample string 4"
          },
          {
            "ValidValueId": "e30057cd-df35-470b-b6b9-758440e72407",
            "FieldId": "c9ed4efb-23ec-4528-afe3-5aea95097d56",
            "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": "acc3c568-2c34-472c-81da-e0bcbbdfef8f",
        "Section": {
          "TaskTypeSectionId": "8eecc1f9-b3d7-45d1-b2da-389ce2e990d9",
          "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": "24ecd99f-9436-4fcf-8b85-1e8833f734df",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "0ca0d2cf-96de-4620-937a-bc0fa29d3d47",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "97414657-6e4f-48bf-aa48-dc924282396b",
          "CreateDate": "2025-05-08T19:50:10.3697333-07:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2025-05-08T19:50:10.3697333-07:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          {
            "ValidValueId": "e30057cd-df35-470b-b6b9-758440e72407",
            "FieldId": "c9ed4efb-23ec-4528-afe3-5aea95097d56",
            "FieldName": "sample string 1",
            "FieldLable": "sample string 2",
            "ValueText": "sample string 3",
            "LabelText": "sample string 4"
          },
          {
            "ValidValueId": "e30057cd-df35-470b-b6b9-758440e72407",
            "FieldId": "c9ed4efb-23ec-4528-afe3-5aea95097d56",
            "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": "200cee9b-a732-437c-a0d1-0f4f1176995a",
    "CreateDate": "2025-05-08T19:50:10.3697333-07:00",
    "CreateUser": "sample string 6",
    "LastModifiedDate": "2025-05-08T19:50:10.3697333-07:00",
    "LastModifiedUser": "sample string 7"
  },
  "Associations": [
    {
      "TaskStatusTypeTaskTypeId": "ca679ff8-4af0-4caa-b74b-f0403ed19917",
      "CompanyId": "84b4f976-c2c4-4061-a340-7d0d7ec8fdb4",
      "TaskStatusTypeId": "9d0d8ca8-6b83-49b5-8802-d69113632ce5",
      "TaskStatusTypeName": "sample string 2",
      "SourceSystemId": "sample string 3",
      "TaskTypeId": "23ae0c6e-ef24-44a9-8bdb-86e7a5cbb775",
      "TaskTypeName": "sample string 4",
      "Description": "sample string 5"
    },
    {
      "TaskStatusTypeTaskTypeId": "ca679ff8-4af0-4caa-b74b-f0403ed19917",
      "CompanyId": "84b4f976-c2c4-4061-a340-7d0d7ec8fdb4",
      "TaskStatusTypeId": "9d0d8ca8-6b83-49b5-8802-d69113632ce5",
      "TaskStatusTypeName": "sample string 2",
      "SourceSystemId": "sample string 3",
      "TaskTypeId": "23ae0c6e-ef24-44a9-8bdb-86e7a5cbb775",
      "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": "3d27517a-b77b-4c48-9fc0-7562d3e9c427",
    "Name": "sample string 1",
    "Description": "sample string 2",
    "CustomStatuses": true,
    "Fields": [
      {
        "TaskTypeFieldId": "ac5d6dcf-f3cd-4d9a-8801-be381f9e0418",
        "Section": {
          "TaskTypeSectionId": "26cf5c34-b1a9-4282-89d2-bf2f80ad2d37",
          "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": "cb35b69f-24cb-423d-9b71-b61d523e50a7",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "910cf23c-f597-44b1-a657-14b31d6f170b",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "0750b75e-093a-4797-9e6a-9122cd35c8e6",
          "CreateDate": "2025-05-08T19:50:10.3697333-07:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2025-05-08T19:50:10.3697333-07:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          {
            "ValidValueId": "7fbc1970-2324-4e67-b9e2-aabca93b5d9a",
            "FieldId": "32ef8d3b-d952-4e0f-ad7f-64dc001e1dfb",
            "FieldName": "sample string 1",
            "FieldLable": "sample string 2",
            "ValueText": "sample string 3",
            "LabelText": "sample string 4"
          },
          {
            "ValidValueId": "7fbc1970-2324-4e67-b9e2-aabca93b5d9a",
            "FieldId": "32ef8d3b-d952-4e0f-ad7f-64dc001e1dfb",
            "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": "ac5d6dcf-f3cd-4d9a-8801-be381f9e0418",
        "Section": {
          "TaskTypeSectionId": "26cf5c34-b1a9-4282-89d2-bf2f80ad2d37",
          "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": "cb35b69f-24cb-423d-9b71-b61d523e50a7",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "910cf23c-f597-44b1-a657-14b31d6f170b",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "0750b75e-093a-4797-9e6a-9122cd35c8e6",
          "CreateDate": "2025-05-08T19:50:10.3697333-07:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2025-05-08T19:50:10.3697333-07:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          {
            "ValidValueId": "7fbc1970-2324-4e67-b9e2-aabca93b5d9a",
            "FieldId": "32ef8d3b-d952-4e0f-ad7f-64dc001e1dfb",
            "FieldName": "sample string 1",
            "FieldLable": "sample string 2",
            "ValueText": "sample string 3",
            "LabelText": "sample string 4"
          },
          {
            "ValidValueId": "7fbc1970-2324-4e67-b9e2-aabca93b5d9a",
            "FieldId": "32ef8d3b-d952-4e0f-ad7f-64dc001e1dfb",
            "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": "48b28406-4911-4ed5-b3d6-dac9587b5a04",
    "CreateDate": "2025-05-08T19:50:10.3697333-07:00",
    "CreateUser": "sample string 6",
    "LastModifiedDate": "2025-05-08T19:50:10.3697333-07:00",
    "LastModifiedUser": "sample string 7"
  },
  "Total": 1,
  "Message": "sample string 1"
}