POST TaskTypes
Request Information
URI Parameters
None.
Body Parameters
TaskTypeParamsName | Description | Type | Additional information |
---|---|---|---|
Task | TaskType |
None. |
|
Associations | Collection of TaskStatusTypeTaskType |
None. |
Request Formats
application/json, text/json
Sample:
{ "Task": { "TaskTypeId": "6a3eef7e-88d8-49d7-86fb-3ae100402c64", "Name": "sample string 1", "Description": "sample string 2", "CustomStatuses": true, "Fields": [ { "TaskTypeFieldId": "0ec34ca7-82cb-4cdb-9446-401bedb0df4d", "Section": { "TaskTypeSectionId": "1232d0ce-a383-4bab-82c0-532f4459119f", "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": "a54715b6-9bae-4e42-8322-310b6141f084", "Name": "sample string 1" }, "Unit": { "UnitId": "255a733c-e81d-46fc-a7f0-3096a9dffa54", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "278dba2d-1f49-48f8-890c-e28f1798ea02", "CreateDate": "2024-12-21T19:21:26.5580373-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-12-21T19:21:26.5580373-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": "0ec34ca7-82cb-4cdb-9446-401bedb0df4d", "Section": { "TaskTypeSectionId": "1232d0ce-a383-4bab-82c0-532f4459119f", "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": "a54715b6-9bae-4e42-8322-310b6141f084", "Name": "sample string 1" }, "Unit": { "UnitId": "255a733c-e81d-46fc-a7f0-3096a9dffa54", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "278dba2d-1f49-48f8-890c-e28f1798ea02", "CreateDate": "2024-12-21T19:21:26.5580373-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-12-21T19:21:26.5580373-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": "d18eda30-e0a7-4a23-89b6-02fd10541d4a", "CreateDate": "2024-12-21T19:21:26.5580373-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-12-21T19:21:26.5580373-08:00", "LastModifiedUser": "sample string 7" }, "Associations": [ { "TaskStatusTypeTaskTypeId": "270e1c41-64c8-4ba4-a0c1-bca215f5be8f", "CompanyId": "7452cabe-043c-4831-b433-c7d205afd76b", "TaskStatusTypeId": "0fc19da8-785d-4f6c-8664-131c7adadf59", "TaskStatusTypeName": "sample string 2", "SourceSystemId": "sample string 3", "TaskTypeId": "c0aa2503-550d-44cf-80b7-082dcec8fdae", "TaskTypeName": "sample string 4", "Description": "sample string 5" }, { "TaskStatusTypeTaskTypeId": "270e1c41-64c8-4ba4-a0c1-bca215f5be8f", "CompanyId": "7452cabe-043c-4831-b433-c7d205afd76b", "TaskStatusTypeId": "0fc19da8-785d-4f6c-8664-131c7adadf59", "TaskStatusTypeName": "sample string 2", "SourceSystemId": "sample string 3", "TaskTypeId": "c0aa2503-550d-44cf-80b7-082dcec8fdae", "TaskTypeName": "sample string 4", "Description": "sample string 5" } ] }
Response Information
Resource Description
Name | Description | Type | Additional information |
---|---|---|---|
Data | TaskType |
None. |
|
Total | integer |
None. |
|
Message | string |
None. |
Response Formats
application/json, text/json
Sample:
{ "Data": { "TaskTypeId": "f1131b23-4853-4a3c-a34b-ee8899a89c13", "Name": "sample string 1", "Description": "sample string 2", "CustomStatuses": true, "Fields": [ { "TaskTypeFieldId": "a1e6db0b-be25-4ffe-abdf-b0022e1bd55d", "Section": { "TaskTypeSectionId": "dfd0de15-78c9-4c16-a0c4-e078815551c8", "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": "96a2e0ce-ba74-4afa-9b26-e6a4b94d5a5d", "Name": "sample string 1" }, "Unit": { "UnitId": "5dbde1fd-f24c-4574-8912-f9e675a38f0b", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "8bd99217-da3e-4385-ba6b-9646b363a37a", "CreateDate": "2024-12-21T19:21:26.5736413-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-12-21T19:21:26.5736413-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": "a1e6db0b-be25-4ffe-abdf-b0022e1bd55d", "Section": { "TaskTypeSectionId": "dfd0de15-78c9-4c16-a0c4-e078815551c8", "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": "96a2e0ce-ba74-4afa-9b26-e6a4b94d5a5d", "Name": "sample string 1" }, "Unit": { "UnitId": "5dbde1fd-f24c-4574-8912-f9e675a38f0b", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "8bd99217-da3e-4385-ba6b-9646b363a37a", "CreateDate": "2024-12-21T19:21:26.5736413-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-12-21T19:21:26.5736413-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": "d55ead20-a7df-470f-af88-f23459ae2697", "CreateDate": "2024-12-21T19:21:26.5736413-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-12-21T19:21:26.5736413-08:00", "LastModifiedUser": "sample string 7" }, "Total": 1, "Message": "sample string 1" }