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": "edadc872-b08c-4456-8d2f-fa4f8d070256",
    "Name": "sample string 1",
    "Description": "sample string 2",
    "CustomStatuses": true,
    "Fields": [
      {
        "TaskTypeFieldId": "9d032162-f011-42ec-b9d1-a36c0436dcb6",
        "Section": {
          "TaskTypeSectionId": "895b170a-d58a-42a3-af21-69f09fa8b00c",
          "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": "c9735b27-2b2e-4b5d-8255-8c1b67cdd3f7",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "3906880e-6c0d-419c-b128-7e11a79962a8",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "3041b4e1-8525-4b0c-b000-c992b739612b",
          "CreateDate": "2024-12-21T19:03:35.6792128-08:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2024-12-21T19:03:35.6792128-08:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          "sample string 1",
          "sample string 2"
        ],
        "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": "9d032162-f011-42ec-b9d1-a36c0436dcb6",
        "Section": {
          "TaskTypeSectionId": "895b170a-d58a-42a3-af21-69f09fa8b00c",
          "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": "c9735b27-2b2e-4b5d-8255-8c1b67cdd3f7",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "3906880e-6c0d-419c-b128-7e11a79962a8",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "3041b4e1-8525-4b0c-b000-c992b739612b",
          "CreateDate": "2024-12-21T19:03:35.6792128-08:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2024-12-21T19:03:35.6792128-08:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          "sample string 1",
          "sample string 2"
        ],
        "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": "3f5ef84f-371f-4e15-b335-6b25adbbf111",
    "CreateDate": "2024-12-21T19:03:35.6792128-08:00",
    "CreateUser": "sample string 6",
    "LastModifiedDate": "2024-12-21T19:03:35.6792128-08:00",
    "LastModifiedUser": "sample string 7"
  },
  "Associations": [
    {
      "TaskStatusTypeTaskTypeId": "34dfc5f0-5fbe-4386-bd8b-0cc2de9bcd8b",
      "CompanyId": "cbc119d6-4ea8-41f0-9cd4-b677e1e95226",
      "TaskStatusTypeId": "6b542cd8-7c4f-42d1-8c53-ac15bb87bedf",
      "TaskStatusTypeName": "sample string 2",
      "SourceSystemId": "sample string 3",
      "TaskTypeId": "e4e151f8-1095-44c7-832e-55d2daf8188a",
      "TaskTypeName": "sample string 4",
      "Description": "sample string 5"
    },
    {
      "TaskStatusTypeTaskTypeId": "34dfc5f0-5fbe-4386-bd8b-0cc2de9bcd8b",
      "CompanyId": "cbc119d6-4ea8-41f0-9cd4-b677e1e95226",
      "TaskStatusTypeId": "6b542cd8-7c4f-42d1-8c53-ac15bb87bedf",
      "TaskStatusTypeName": "sample string 2",
      "SourceSystemId": "sample string 3",
      "TaskTypeId": "e4e151f8-1095-44c7-832e-55d2daf8188a",
      "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": "f2b4b860-f26e-4632-803b-d295a9c5baa1",
    "Name": "sample string 1",
    "Description": "sample string 2",
    "CustomStatuses": true,
    "Fields": [
      {
        "TaskTypeFieldId": "cae12353-620d-4fcf-8f97-e73d962c3f70",
        "Section": {
          "TaskTypeSectionId": "fb7d8625-105a-495d-b04b-695a228f8229",
          "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": "f9552ce7-6141-422f-af68-a41526e54e09",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "28b58fd4-54ba-4b55-b608-d280cb8f2c0b",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "adfdd071-1089-4dba-ae84-7433637f7cd1",
          "CreateDate": "2024-12-21T19:03:35.6792128-08:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2024-12-21T19:03:35.6792128-08:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          "sample string 1",
          "sample string 2"
        ],
        "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": "cae12353-620d-4fcf-8f97-e73d962c3f70",
        "Section": {
          "TaskTypeSectionId": "fb7d8625-105a-495d-b04b-695a228f8229",
          "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": "f9552ce7-6141-422f-af68-a41526e54e09",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "28b58fd4-54ba-4b55-b608-d280cb8f2c0b",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "adfdd071-1089-4dba-ae84-7433637f7cd1",
          "CreateDate": "2024-12-21T19:03:35.6792128-08:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2024-12-21T19:03:35.6792128-08:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          "sample string 1",
          "sample string 2"
        ],
        "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": "c04273cd-02ba-4a61-b89c-2a175a92618c",
    "CreateDate": "2024-12-21T19:03:35.6792128-08:00",
    "CreateUser": "sample string 6",
    "LastModifiedDate": "2024-12-21T19:03:35.6792128-08:00",
    "LastModifiedUser": "sample string 7"
  },
  "Total": 1,
  "Message": "sample string 1"
}