Assign or remove a task from a work package.
Supported HTTPS Methods: GET, PUT, PATCH, POST
Request URLs:
-
Assign a task to a work package - <HOSTNAME>/sc/datalake/v1/Instances(2)/Projects(313)/WorkPackages(1024)/WorkPackageTasks
-
Remove a task from a work package - <HOSTNAME>/sc/datalake/v1/Instances(2)/Projects(313)/Workpackages(1024)/WorkPackageTasks(9999)
Header parameters:
Header Parameter |
Description |
---|---|
Authorization |
A token required for authenticating a request. The bearer token is a string, usually generated by the server in response to a login request. You must include this header in every request. |
Content-Type |
The request format or the original media type of the resource. |
Sample request payload to add a task to a work package (POST only):
{
"WPId": 1024,
"TaskId": 11077
}
Sample request payload to remove a task from a work package (PUT or PATCH only):
{
"dtRemoved": "2023-07-14T16:09:13-06:00"
}
Request payload parameters:
|
|
Required, Optional, |
|
---|---|---|---|
WPId |
Integer |
GET - Optional PUT - Required PATCH - Required POST - Required |
ID of the work package that the task is being assigned to or removed from. Options are chosen from the WorkPackageItem select list. |
TaskId |
Integer |
GET - Optional PUT - Required PATCH - Required POST - Required |
ID of the task to assign to or remove from the work package. Options are chosen from the CCMSTask select list. |
dtRemoved |
String (Date) |
GET - Optional PUT - Optional PATCH - Optional POST - Unused |
Date on which the task was removed from the work package. |
Response:
POST returns the newly-created record. PATCH and PUT return the confirmation update status 204.