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": "2be06f51-4cbe-4492-8b0c-f4639f25d9ba", "Name": "sample string 1", "Description": "sample string 2", "CustomStatuses": true, "Fields": [ { "TaskTypeFieldId": "4cd999fe-2a63-4958-a73b-e09612fc129f", "Section": { "TaskTypeSectionId": "cebca080-9d6a-44c4-9fc3-70a77e8db19e", "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": "56933567-1558-4f16-88ef-7afc83395ea3", "Name": "sample string 1" }, "Unit": { "UnitId": "c32629da-0bcb-4906-be72-880d67c56556", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "a12319a0-6e82-4c6f-acc9-3a3f4dac5da5", "CreateDate": "2025-04-24T13:31:28.3725147-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-04-24T13:31:28.3725147-07:00", "LastModifiedUser": "sample string 6" }, "DisplayOrder": 1, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "48c4dff5-5bf2-4883-aaa2-ffa55e4f0e5a", "FieldId": "dc038302-7ace-4a6b-a136-b23ff7271984", "FieldName": "sample string 1", "FieldLabel": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "48c4dff5-5bf2-4883-aaa2-ffa55e4f0e5a", "FieldId": "dc038302-7ace-4a6b-a136-b23ff7271984", "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": "4cd999fe-2a63-4958-a73b-e09612fc129f", "Section": { "TaskTypeSectionId": "cebca080-9d6a-44c4-9fc3-70a77e8db19e", "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": "56933567-1558-4f16-88ef-7afc83395ea3", "Name": "sample string 1" }, "Unit": { "UnitId": "c32629da-0bcb-4906-be72-880d67c56556", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "a12319a0-6e82-4c6f-acc9-3a3f4dac5da5", "CreateDate": "2025-04-24T13:31:28.3725147-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-04-24T13:31:28.3725147-07:00", "LastModifiedUser": "sample string 6" }, "DisplayOrder": 1, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "48c4dff5-5bf2-4883-aaa2-ffa55e4f0e5a", "FieldId": "dc038302-7ace-4a6b-a136-b23ff7271984", "FieldName": "sample string 1", "FieldLabel": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "48c4dff5-5bf2-4883-aaa2-ffa55e4f0e5a", "FieldId": "dc038302-7ace-4a6b-a136-b23ff7271984", "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": "7cbf2f52-d2e7-47a6-a94d-1433622f9217", "CreateDate": "2025-04-24T13:31:28.3725147-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-04-24T13:31:28.3725147-07:00", "LastModifiedUser": "sample string 7" }, "Associations": [ { "TaskStatusTypeTaskTypeId": "8522fef6-8050-4b1b-96ab-8752d67259f9", "CompanyId": "b33f10e8-7d97-4df2-b1b6-fc35612876c0", "TaskStatusTypeId": "baf066bb-d124-4f5f-b10b-00f20187dc74", "TaskStatusTypeName": "sample string 2", "SourceSystemId": "sample string 3", "TaskTypeId": "53ced25b-842d-41b7-9395-371b2b790d3a", "TaskTypeName": "sample string 4", "Description": "sample string 5" }, { "TaskStatusTypeTaskTypeId": "8522fef6-8050-4b1b-96ab-8752d67259f9", "CompanyId": "b33f10e8-7d97-4df2-b1b6-fc35612876c0", "TaskStatusTypeId": "baf066bb-d124-4f5f-b10b-00f20187dc74", "TaskStatusTypeName": "sample string 2", "SourceSystemId": "sample string 3", "TaskTypeId": "53ced25b-842d-41b7-9395-371b2b790d3a", "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": "88a61f11-0465-4666-b7b9-64847e26d5c1", "Name": "sample string 1", "Description": "sample string 2", "CustomStatuses": true, "Fields": [ { "TaskTypeFieldId": "479b778d-9f62-42ef-b0d6-e6362ed75875", "Section": { "TaskTypeSectionId": "5ed07326-1ef4-4f39-980e-e8acb26c8d59", "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": "e8c69160-279a-45ec-a618-b98e4385969c", "Name": "sample string 1" }, "Unit": { "UnitId": "f3d1700d-549e-4929-b84c-1935ec84b3b1", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "61ec620d-e5bf-4626-a6d4-7089e4bab86f", "CreateDate": "2025-04-24T13:31:28.3725147-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-04-24T13:31:28.3725147-07:00", "LastModifiedUser": "sample string 6" }, "DisplayOrder": 1, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "404feb8e-c2bf-4e25-8bf0-0473069f610f", "FieldId": "575cbc30-3c4b-4cbb-8e1f-7a83f65079d7", "FieldName": "sample string 1", "FieldLabel": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "404feb8e-c2bf-4e25-8bf0-0473069f610f", "FieldId": "575cbc30-3c4b-4cbb-8e1f-7a83f65079d7", "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": "479b778d-9f62-42ef-b0d6-e6362ed75875", "Section": { "TaskTypeSectionId": "5ed07326-1ef4-4f39-980e-e8acb26c8d59", "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": "e8c69160-279a-45ec-a618-b98e4385969c", "Name": "sample string 1" }, "Unit": { "UnitId": "f3d1700d-549e-4929-b84c-1935ec84b3b1", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "61ec620d-e5bf-4626-a6d4-7089e4bab86f", "CreateDate": "2025-04-24T13:31:28.3725147-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-04-24T13:31:28.3725147-07:00", "LastModifiedUser": "sample string 6" }, "DisplayOrder": 1, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "404feb8e-c2bf-4e25-8bf0-0473069f610f", "FieldId": "575cbc30-3c4b-4cbb-8e1f-7a83f65079d7", "FieldName": "sample string 1", "FieldLabel": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "404feb8e-c2bf-4e25-8bf0-0473069f610f", "FieldId": "575cbc30-3c4b-4cbb-8e1f-7a83f65079d7", "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": "abecb23c-6197-4434-87da-f623eb24ffc3", "CreateDate": "2025-04-24T13:31:28.3725147-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-04-24T13:31:28.3725147-07:00", "LastModifiedUser": "sample string 7" }, "Total": 1, "Message": "sample string 1" }