Update a project task

patch

/fscmRestApi/resources/11.13.18.05/projectsUsers/{ResourceId}/child/ProjectTasks/{ProjectTasksUniqID}

Request

Path Parameters
  • This is the hash key of the attributes which make up the composite key for the Project Tasks resource and used to uniquely identify an instance of Project Tasks. The client should not generate the hash key value. Instead, the client should query on the Project Tasks collection resource in order to navigate to a specific instance of Project Tasks to get the hash key.
  • The unique identifier of the resource assigned to the task.
Header Parameters
  • If the REST API supports runtime customizations, the shape of the service may change during runtime. The REST client may isolate itself from these changes or choose to interact with the latest version of the API by specifying this header. For example: Metadata-Context:sandbox="TrackEmployeeFeature".
  • The protocol version between a REST client and service. If the client does not specify this header in the request the server will pick a default version for the API.
Supported Media Types
Request Body - application/json ()
Root Schema : schema
Type: object
Show Source
Nested Schema : Labor Resource Assignments
Type: array
Title: Labor Resource Assignments
The labor resource assignment includes attributes used to store values while creating or updating labor resource assignments for a project task. For example, a DBA may be assigned as a labor resource for a project task.
Show Source
Nested Schema : Project Task Followers
Type: array
Title: Project Task Followers
The task follower resource is used to store values while adding or removing followers on project tasks. A project user can be assigned as a follower on a project task for viewing task details and tracking its completion.
Show Source
Nested Schema : projectsUsers-ProjectTasks-LaborResourceAssignments-item-patch-request
Type: object
Show Source
Nested Schema : projectsUsers-ProjectTasks-TaskFollowers-item-patch-request
Type: object
Show Source
Back to Top

Response

Supported Media Types

Default Response

The following table describes the default response for this task.
Headers
  • If the REST API supports runtime customizations, the shape of the service may change during runtime. The REST client may isolate itself from these changes or choose to interact with the latest version of the API by specifying this header. For example: Metadata-Context:sandbox="TrackEmployeeFeature".
  • The protocol version between a REST client and service. If the client does not specify this header in the request the server will pick a default version for the API.
Body ()
Root Schema : projectsUsers-ProjectTasks-item-response
Type: object
Show Source
Nested Schema : Labor Resource Assignments
Type: array
Title: Labor Resource Assignments
The labor resource assignment includes attributes used to store values while creating or updating labor resource assignments for a project task. For example, a DBA may be assigned as a labor resource for a project task.
Show Source
Nested Schema : Project Task Followers
Type: array
Title: Project Task Followers
The task follower resource is used to store values while adding or removing followers on project tasks. A project user can be assigned as a follower on a project task for viewing task details and tracking its completion.
Show Source
Nested Schema : projectsUsers-ProjectTasks-LaborResourceAssignments-item-response
Type: object
Show Source
Nested Schema : projectsUsers-ProjectTasks-TaskFollowers-item-response
Type: object
Show Source
Back to Top

Examples

The following example shows how to update a project task by submitting a PATCH request on the REST resource using cURL.

curl -i -u "<username>:<password>" -X PATCH https://<host>:<port>/fscmRestApi/resources/latest/projectsUsers/<ResourceId>/child/ProjectTasks/<ProjElementId>

Example of Request Header

The following shows an example of the request header.

{
"TaskRemainingQuantity" : 60,
"ObjectType" : "PJF_TASKS",
"ElementType" : "EXECUTION"
}

Example of Response Body

The following example shows the contents of the response body in JSON format.

{
  "TaskName" : "Task  4",
  "ProjElementId" : 300100090030088,
  "ObjectType" : "PJF_TASKS",
  "ElementType" : "EXECUTION",
  "ExecutionDisplaySequence" : 400000,
  "ElementVersionId" : 300100090030086,
  "ProjectId" : 300100090030066,
  "TaskActualFinishDate" : null,
  "TaskActualStartDate" : null,
  "TaskPlannedFinishDate" : null,
  "TaskPlannedStartDate" : null,
  "TaskPriority" : null,
  "TaskPercentComplete" : 0,
  "ProjectName" : "Tet schedule mode",
  "TaskDescription" : "Manual in both",
  "TaskProposedFinishDate" : null,
  "TaskProposedStartDate" : null,
  "TaskProgressStatus" : "Not started",
  "TaskQuantity" : 8,
  "TaskProposedQuantity" : 8,
  "TaskRemainingQuantity" : 8,
  "TaskResourceAllocationPercent" : 100,
  "ProjectStatusName" : "Active_1",
  "ProjectStatusCode" : "ACTIVE",
  "ProjectSystemStatusCode" : "ACTIVE",
  "PlanVersionId" : 300100090030071,
  "TaskPrimaryResourceId" : 300100024326655,
  "TaskProgressStatusCode" : "NOT_STARTED",
  "TaskProgressEnteredDate" : null,
  "ParentTaskName" : "Tet schedule mode",
  "MilestoneFlag" : false,
  "TaskExceptions" : null,
  "TaskId" : 300100090030088,
  "TaskActualQuantity" : 0,
  "TaskCurrentActualQuantity" : 8,
  "TaskCurrentFinishDate" : null,
  "TaskCurrentStartDate" : null,
  "LastUpdatedBy" : "ABRAHAM.MASON",
  "LastUpdateDate" : "2017-01-03T21:16:30-08:00",
  "CreatedBy" : "ABRAHAM.MASON",
  "CreationDate" : "2017-01-03T21:16:30-08:00",
  "links" : [ 
...
     {
    "rel" : "child",
    "href" : "https://slc11iiy.dev.oraclecorp.com:10606/projectsManagementApi/resources/11.1.13/projectsUsers/300100024326655/child/ProjectTasks/00030000000EACED00057708000110F07F4368080000000EACED00057708000110F07F4368070000000EACED00057708000110F07F43683B/child/LaborResourceAssignments",
    "name" : "LaborResourceAssignments",
    "kind" : "collection"
  }, 
		...
]
}
Back to Top