POST api/workplan/{id}/tasks

Add Task

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

Work Plan Id

globally unique identifier

Required

Body Parameters

TasksRequest
NameDescriptionTypeAdditional information
Name

string

None.

Fields

Dictionary of string [key] and Object [value]

None.

WorkTypeId

globally unique identifier

None.

ParentTaskId

globally unique identifier

None.

Integration

TaskIntegrationInfo

None.

Assignments

Dictionary of globally unique identifier [key] and decimal number [value]

None.

ProcessAssignments

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "Name": "sample string 1",
  "Fields": {
    "sample string 1": {},
    "sample string 3": {}
  },
  "WorkTypeId": "fbb317b1-18df-436d-a06f-580db95e7725",
  "ParentTaskId": "210eb383-723e-4558-8fc4-6cee802407d3",
  "Integration": {
    "IntegrationId": "0c478bd2-8beb-44ec-8d8b-1b719f2af7c1",
    "ExternalItemId": "sample string 2",
    "ExternalUrl": "sample string 3",
    "ReadOnlyFields": [
      "sample string 1",
      "sample string 2"
    ]
  },
  "Assignments": {
    "d007d764-212f-4b4e-ab6c-e0199d1a6646": 2.0,
    "8b887f76-1e35-4f92-aa4a-35a48a393b94": 4.0
  },
  "ProcessAssignments": true
}

Response Information

Resource Description

WorkPlanTask
NameDescriptionTypeAdditional information
WorkTypeId

globally unique identifier

None.

Name

string

None.

Created

date

None.

Modified

date

None.

Author

string

None.

Editor

string

None.

AssignedTo

Collection of globally unique identifier

None.

Assignments

Collection of TaskAssignment

None.

ParentId

globally unique identifier

None.

WorkTypeParentId

globally unique identifier

None.

WorkTypeIndex

integer

None.

Fields

Dictionary of string [key] and Object [value]

None.

Index

integer

None.

Complete

boolean

None.

Comments

Collection of TaskComment

None.

StartDate

date

None.

DueDate

date

None.

TaskScheduleType

TaskType

None.

StatusUpdate

StatusUpdateClass

None.

LastComment

date

None.

IsScheduled

boolean

None.

Integration

TaskIntegrationInfo

None.

WorkPlanId

globally unique identifier

None.

id

globally unique identifier

None.

ConfigId

globally unique identifier

None.

Response Formats

application/json, text/json

Sample:
{
  "WorkTypeId": "f5c56c0f-eed3-43fa-bd06-378987ac8b9b",
  "Name": "sample string 1",
  "Created": "2024-12-18T19:50:01.3967531+00:00",
  "Modified": "2024-12-18T19:50:01.3967531+00:00",
  "Author": "sample string 4",
  "Editor": "sample string 5",
  "AssignedTo": [
    "72c65d35-500f-47bb-9c05-7852b8ae418c",
    "c13c827e-a140-4094-aa67-6560759c77bc"
  ],
  "Assignments": [
    {
      "Id": "8df1a2d4-d03e-4452-89fb-c686ed58f9df",
      "Type": 0,
      "ResourceId": "b7807867-8f02-4b75-9881-aed792e3020a",
      "Units": 3.0
    },
    {
      "Id": "8df1a2d4-d03e-4452-89fb-c686ed58f9df",
      "Type": 0,
      "ResourceId": "b7807867-8f02-4b75-9881-aed792e3020a",
      "Units": 3.0
    }
  ],
  "ParentId": "b32aa7d2-5e3e-4f8e-be5e-3cc6206785f0",
  "WorkTypeParentId": "4535b869-9cc1-4ea9-ae9b-cea9e4091048",
  "WorkTypeIndex": 9,
  "Fields": {
    "sample string 1": {},
    "sample string 3": {}
  },
  "Index": 10,
  "Complete": true,
  "Comments": [
    {
      "Id": "f84f84f5-055e-48fa-a1bb-ad7c71b1238b",
      "UPN": "9bbd9a9c-890f-40c7-9fc3-0536db3957be",
      "PostDate": "2024-12-18T19:50:01.3967531+00:00",
      "Comment": "sample string 4",
      "CC": [
        "d303d29d-b87b-44da-83a7-fdfdceeefbdb",
        "e340ea54-598d-41ef-9af1-01699284679e"
      ],
      "Users": [
        "d135387e-f2e8-4718-8493-183c0ee2feb0",
        "6328ddfd-a876-4851-83cd-3966fd85c8ae"
      ]
    },
    {
      "Id": "f84f84f5-055e-48fa-a1bb-ad7c71b1238b",
      "UPN": "9bbd9a9c-890f-40c7-9fc3-0536db3957be",
      "PostDate": "2024-12-18T19:50:01.3967531+00:00",
      "Comment": "sample string 4",
      "CC": [
        "d303d29d-b87b-44da-83a7-fdfdceeefbdb",
        "e340ea54-598d-41ef-9af1-01699284679e"
      ],
      "Users": [
        "d135387e-f2e8-4718-8493-183c0ee2feb0",
        "6328ddfd-a876-4851-83cd-3966fd85c8ae"
      ]
    }
  ],
  "StartDate": "2024-12-18T19:50:01.3967531+00:00",
  "DueDate": "2024-12-18T19:50:01.3967531+00:00",
  "TaskScheduleType": 0,
  "StatusUpdate": {
    "ResourceReplacements": {
      "88b18d20-fa5d-46c9-989e-5f68a2d78208": "651ad5e7-c11b-4ec6-9727-c0c148b3e9b6",
      "d5dd598f-19f6-451e-a306-38a751848590": "d4d1c2ac-7504-4ff6-a738-0adc6ac302d1"
    },
    "HasUpdates": true,
    "Modified": "2024-12-18T19:50:01.3967531+00:00",
    "Editor": "sample string 3",
    "Fields": {
      "sample string 1": {},
      "sample string 3": {}
    },
    "CalcFields": {
      "sample string 1": {},
      "sample string 3": {}
    },
    "State": 0,
    "ApproveRejectBy": "sample string 4",
    "ApproveRejectDate": "2024-12-18T19:50:01.3967531+00:00"
  },
  "LastComment": "2024-12-18T19:50:01.3967531+00:00",
  "IsScheduled": true,
  "Integration": {
    "IntegrationId": "d845e95e-8046-4e17-a9ee-429fb1f53dcd",
    "ExternalItemId": "sample string 2",
    "ExternalUrl": "sample string 3",
    "ReadOnlyFields": [
      "sample string 1",
      "sample string 2"
    ]
  },
  "WorkPlanId": "af25e0e8-f11d-4282-83d6-765fc7d85c93",
  "id": "3f952474-3034-4561-908a-3c1dfb06872f",
  "ConfigId": "f7420a36-4b44-4eea-9c17-e8e3c8fb8682"
}