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.
TaskTypeParamsName | Description | Type | Additional information |
---|---|---|---|
Task | TaskType |
None. |
|
Associations | Collection of TaskStatusTypeTaskType |
None. |
Request Formats
application/json, text/json
Sample:
{ "Task": { "TaskTypeId": "2bc1745b-b984-4b8e-8dba-a7416ce497e1", "Name": "sample string 1", "Description": "sample string 2", "CustomStatuses": true, "Fields": [ { "TaskTypeFieldId": "f8f266e3-2b4a-4c8f-bed5-75bfa66b7a61", "Section": { "TaskTypeSectionId": "01202352-2cdf-4146-ada1-e0ec0215b50d", "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": "a88c534b-9da5-421f-89fe-739f1146393d", "Name": "sample string 1" }, "Unit": { "UnitId": "03768ba7-fead-44a2-bb32-928f6354aeed", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "a75fccad-066d-46e8-9508-5764712e5e79", "CreateDate": "2024-10-10T15:24:00.0205296-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-10-10T15:24:00.0205296-07: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": "f8f266e3-2b4a-4c8f-bed5-75bfa66b7a61", "Section": { "TaskTypeSectionId": "01202352-2cdf-4146-ada1-e0ec0215b50d", "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": "a88c534b-9da5-421f-89fe-739f1146393d", "Name": "sample string 1" }, "Unit": { "UnitId": "03768ba7-fead-44a2-bb32-928f6354aeed", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "a75fccad-066d-46e8-9508-5764712e5e79", "CreateDate": "2024-10-10T15:24:00.0205296-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-10-10T15:24:00.0205296-07: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": "ab5dca34-73c9-48f4-bd46-afef817e67c2", "CreateDate": "2024-10-10T15:24:00.0205296-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-10-10T15:24:00.0205296-07:00", "LastModifiedUser": "sample string 7" }, "Associations": [ { "TaskStatusTypeTaskTypeId": "f6cc29d4-675f-4f74-86e4-d3486aec3254", "CompanyId": "378b2b89-7bb2-488b-80df-1a0368b9701c", "TaskStatusTypeId": "bbd88911-8336-494c-9b9c-f6a3a86a4a33", "TaskStatusTypeName": "sample string 2", "SourceSystemId": "sample string 3", "TaskTypeId": "c5b5fddd-7414-494b-ab3b-2cc55deef152", "TaskTypeName": "sample string 4", "Description": "sample string 5" }, { "TaskStatusTypeTaskTypeId": "f6cc29d4-675f-4f74-86e4-d3486aec3254", "CompanyId": "378b2b89-7bb2-488b-80df-1a0368b9701c", "TaskStatusTypeId": "bbd88911-8336-494c-9b9c-f6a3a86a4a33", "TaskStatusTypeName": "sample string 2", "SourceSystemId": "sample string 3", "TaskTypeId": "c5b5fddd-7414-494b-ab3b-2cc55deef152", "TaskTypeName": "sample string 4", "Description": "sample string 5" } ] }
Response Information
Resource Description
On success, the updated task type.
Name | Description | Type | Additional information |
---|---|---|---|
Data | TaskType |
None. |
|
Total | integer |
None. |
|
Message | string |
None. |
Response Formats
application/json, text/json
Sample:
{ "Data": { "TaskTypeId": "32e4879f-5c6b-48ef-acc6-b3a31164a5b0", "Name": "sample string 1", "Description": "sample string 2", "CustomStatuses": true, "Fields": [ { "TaskTypeFieldId": "228785a8-16ec-41e8-b99e-1e5e43868eca", "Section": { "TaskTypeSectionId": "39ace713-2982-4977-b199-daf1e2f58376", "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": "f9b8a63c-33ef-4f9e-9920-7e7a05afbd8e", "Name": "sample string 1" }, "Unit": { "UnitId": "e92c81f9-776a-4608-96fc-9135120d02c6", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "123bf80c-5ef2-4707-b97b-25e789c7a04a", "CreateDate": "2024-10-10T15:24:00.0205296-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-10-10T15:24:00.0205296-07: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": "228785a8-16ec-41e8-b99e-1e5e43868eca", "Section": { "TaskTypeSectionId": "39ace713-2982-4977-b199-daf1e2f58376", "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": "f9b8a63c-33ef-4f9e-9920-7e7a05afbd8e", "Name": "sample string 1" }, "Unit": { "UnitId": "e92c81f9-776a-4608-96fc-9135120d02c6", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "123bf80c-5ef2-4707-b97b-25e789c7a04a", "CreateDate": "2024-10-10T15:24:00.0205296-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-10-10T15:24:00.0205296-07: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": "6a8b5792-4697-409a-9034-69374b6f1ef8", "CreateDate": "2024-10-10T15:24:00.0205296-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-10-10T15:24:00.0205296-07:00", "LastModifiedUser": "sample string 7" }, "Total": 1, "Message": "sample string 1" }