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": "04a4ed7f-5441-46ab-8664-3380606a7997", "Name": "sample string 1", "Description": "sample string 2", "CustomStatuses": true, "Fields": [ { "TaskTypeFieldId": "318cb417-0f75-404e-ae29-45bd9d0d6127", "Section": { "TaskTypeSectionId": "0d964914-bc01-4a05-a4c4-7e4739c3d4f7", "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": "dc4435a4-6e15-4a04-bc14-0329d2fd7d12", "Name": "sample string 1" }, "Unit": { "UnitId": "6cacaf71-1a9d-4ffe-9653-5a77e12cfd42", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "83f6496d-0aea-4dbc-ab0e-daf7eed4d5f1", "CreateDate": "2025-04-17T03:47:59.0747701-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-04-17T03:47:59.0747701-07:00", "LastModifiedUser": "sample string 6" }, "DisplayOrder": 1, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "7654a67c-eb0f-4104-8a9e-c983ad35fdb1", "FieldId": "ccbf40ae-736c-47d2-a43a-67a1dec14ea0", "FieldName": "sample string 1", "FieldLable": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "7654a67c-eb0f-4104-8a9e-c983ad35fdb1", "FieldId": "ccbf40ae-736c-47d2-a43a-67a1dec14ea0", "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": "318cb417-0f75-404e-ae29-45bd9d0d6127", "Section": { "TaskTypeSectionId": "0d964914-bc01-4a05-a4c4-7e4739c3d4f7", "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": "dc4435a4-6e15-4a04-bc14-0329d2fd7d12", "Name": "sample string 1" }, "Unit": { "UnitId": "6cacaf71-1a9d-4ffe-9653-5a77e12cfd42", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "83f6496d-0aea-4dbc-ab0e-daf7eed4d5f1", "CreateDate": "2025-04-17T03:47:59.0747701-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-04-17T03:47:59.0747701-07:00", "LastModifiedUser": "sample string 6" }, "DisplayOrder": 1, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "7654a67c-eb0f-4104-8a9e-c983ad35fdb1", "FieldId": "ccbf40ae-736c-47d2-a43a-67a1dec14ea0", "FieldName": "sample string 1", "FieldLable": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "7654a67c-eb0f-4104-8a9e-c983ad35fdb1", "FieldId": "ccbf40ae-736c-47d2-a43a-67a1dec14ea0", "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": "475e513c-d130-4578-996a-935aca805a87", "CreateDate": "2025-04-17T03:47:59.0747701-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-04-17T03:47:59.0747701-07:00", "LastModifiedUser": "sample string 7" }, "Associations": [ { "TaskStatusTypeTaskTypeId": "d4d6fc37-2ee8-46e9-8cc9-b922c35018f0", "CompanyId": "3c3aacce-6830-4f59-a6dd-dce64cae8b7e", "TaskStatusTypeId": "9c4112e2-77f3-4cab-a61b-9ab3d9663142", "TaskStatusTypeName": "sample string 2", "SourceSystemId": "sample string 3", "TaskTypeId": "b300dff1-f430-4b73-97b0-c7d444ab764d", "TaskTypeName": "sample string 4", "Description": "sample string 5" }, { "TaskStatusTypeTaskTypeId": "d4d6fc37-2ee8-46e9-8cc9-b922c35018f0", "CompanyId": "3c3aacce-6830-4f59-a6dd-dce64cae8b7e", "TaskStatusTypeId": "9c4112e2-77f3-4cab-a61b-9ab3d9663142", "TaskStatusTypeName": "sample string 2", "SourceSystemId": "sample string 3", "TaskTypeId": "b300dff1-f430-4b73-97b0-c7d444ab764d", "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": "0cae08f2-21f9-4219-8fa9-6d8770ba5090", "Name": "sample string 1", "Description": "sample string 2", "CustomStatuses": true, "Fields": [ { "TaskTypeFieldId": "6eb41fb0-fbbc-4cca-814d-75127cc88bda", "Section": { "TaskTypeSectionId": "81668804-938c-4817-8306-6142ffcfc01e", "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": "3afaa899-1bc4-468d-959d-a84941c6eae6", "Name": "sample string 1" }, "Unit": { "UnitId": "4651d2e8-af41-459e-9eee-356d556d4687", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "4966d7f8-4865-4e9c-8e53-ddf12b92db7f", "CreateDate": "2025-04-17T03:47:59.0747701-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-04-17T03:47:59.0747701-07:00", "LastModifiedUser": "sample string 6" }, "DisplayOrder": 1, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "6bf8a35b-59c6-4480-936c-8f28aa812873", "FieldId": "67968b17-3e06-45be-9212-0380388d0277", "FieldName": "sample string 1", "FieldLable": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "6bf8a35b-59c6-4480-936c-8f28aa812873", "FieldId": "67968b17-3e06-45be-9212-0380388d0277", "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": "6eb41fb0-fbbc-4cca-814d-75127cc88bda", "Section": { "TaskTypeSectionId": "81668804-938c-4817-8306-6142ffcfc01e", "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": "3afaa899-1bc4-468d-959d-a84941c6eae6", "Name": "sample string 1" }, "Unit": { "UnitId": "4651d2e8-af41-459e-9eee-356d556d4687", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "4966d7f8-4865-4e9c-8e53-ddf12b92db7f", "CreateDate": "2025-04-17T03:47:59.0747701-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-04-17T03:47:59.0747701-07:00", "LastModifiedUser": "sample string 6" }, "DisplayOrder": 1, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "6bf8a35b-59c6-4480-936c-8f28aa812873", "FieldId": "67968b17-3e06-45be-9212-0380388d0277", "FieldName": "sample string 1", "FieldLable": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "6bf8a35b-59c6-4480-936c-8f28aa812873", "FieldId": "67968b17-3e06-45be-9212-0380388d0277", "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": "9108ee80-5613-4c04-b9b8-4203fed65092", "CreateDate": "2025-04-17T03:47:59.0747701-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-04-17T03:47:59.0747701-07:00", "LastModifiedUser": "sample string 7" }, "Total": 1, "Message": "sample string 1" }