Adjust project resource assignment schedule

post

/fscmRestApi/resources/11.13.18.05/projectResourceAssignments/{AssignmentId}/action/adjustAssignmentSchedule

Perform project resource assignment schedule change via this action. The schedule change can happen due to assignment date changes and/or changes in assignment hours per day. The assignment must be in Confirmed or Reserved status to perform this action.

Request

Path Parameters
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/vnd.oracle.adf.action+json ()
Root Schema : schema
Type: object
Show Source
  • Reason for adjusting the project resouce assignment schedule.
  • Indicates if the adjustment should be approved via this call to the adjustAssignmentSchedule action. A resource manager can approve the adjustment when creating it, but a project manager cannot.
  • The code of the flow performing the project resource assignment schedule change.
  • Hours for Friday of every week for the assignment time period. Applicable only if Use Variable Hours Indicator is true.
  • Hours for Monday of every week for the assignment time period. Applicable only if Use Variable Hours Indicator value is true.
  • The new end date for the project resource assignment. If no value is passed, the assignments original end date is retained.
  • A period of time measured in hours for each day for the project resource assignment. Mandatory if you are passing useProjectCalendarFlag attribute value as N.
  • The new hours for every week of the assignment duration. Applicable only if Use Weekly Hours Indicator value is true.
  • The new start date for the project resource assignment. If no value is passed, the assignments original start date is retained.
  • Indicates if the adjustment is done on the project resource assignment in the project management flow. In the project management flow, the project manager security will be honored.
  • Hours for Saturday of every week for the assignment time period. Applicable only if Use Variable Hours Indicator is true.
  • Hours for Sunday of every week for the assignment time period. Applicable only if Use Variable Hours Indicator is true.
  • Hours for Thursday of every week for the assignment time period. Applicable only if Use Variable Hours Indicator is true.
  • Hours for Tuesday of every week for the assignment time period. Applicable only if Use Variable Hours Indicator is true.
  • Indicates if the hours for the assignment are provided in newAssignmentHoursPerDay attribute or if it should be derived from the project calendar. Valid values are Y and N. If the value is Y, the assignment hours are derived from the project calendar.
  • Indicates if the hours for the assignment are variable for every day of the week or not. Valid values are True and False. If the value is True, the requested hours are derived from the attributes Monday Hours through Sunday Hours.
  • Indicates if the hours for the assignment are for every week or not. Valid values are True and False. If the value is True, the assignment hours are derived from the attribute newAssignmentHoursPerWeek.
  • Hours for Wednesday of every week for the assignment time period. Applicable only if Use Variable Hours Indicator is true.
Back to Top

Response

Supported Media Types

Default Response

The following table describes the default response for this task.
Body ()
Root Schema : schema
Type: object
Show Source
  • The adjustAssignmentSchedule action returns SUCCESS if the operation completes successfully and it will return FAILURE if the operation is not successful.
Back to Top

Examples

Example 1

The following example shows how to adjust project resource assignment schedule by submitting a POST request on the REST resource using cURL.

curl --user ppm_cloud_user -X POST -d @example_request_payload.json --header "Content-Type: application/json" https://your_organization.com:port/fscmRestApi/resources/11.13.18.05/projectResourceAssignments/300100176473562

Example 1 Request Body

The following shows an example of the request body in JSON format.

{
"name" : "adjustAssignmentSchedule",
"parameters" : [
            {"newAssignmentStartDate": "2013-09-20"},
            {"newAssignmentEndDate": "2013-09-20"},
            {"adjustmentReason": "Test-5:44 pm"},
            {"approveFlag": true},
            {"projectManagementFlowFlag": false},
            {"useProjectCalendarFlag": false},
            {"useVariableHoursFlag": true},
            {"sundayHours": 1},
            {"mondayHours": 2},
            {"tuesdayHours": 3},
            {"wednesdayHours": 4},
            {"thursdayHours": 5},
            {"fridayHours": 6},
            {"saturdayHours": 7}
            ]
}

Example 1 Response Body

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

{
    "result": "SUCCESS"
}

Example 2

The following example shows how to adjust project resource assignment schedule by submitting a POST request on the REST resource using cURL.

curl --user ppm_cloud_user -X POST -d @example_request_payload.json --header "Content-Type: application/json" https://your_organization.com:port/fscmRestApi/resources/11.13.18.05/projectResourceAssignments/300100176473562

Example 2 Request Body

The following shows an example of the request body in JSON format.

	

{

"name" : "adjustAssignmentSchedule",

"parameters" : [

            {"newAssignmentStartDate": "2020-10-07"},

            {"newAssignmentEndDate": "2020-10-17"},

            {"adjustmentReason": "Test adjust"},

            {"approveFlag": true},

            {"projectManagementFlowFlag": false},

            {"useWeeklyHoursFlag": true},

            {"newAssignmentHoursPerWeek": 10}

            ]

}

Example 2 Response Body

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

{
"result": "SUCCESS"
}
Back to Top