Adjust project resource assignment schedule
/fscmRestApi/resources/11.13.18.05/projectResourceAssignments/{AssignmentId}/action/adjustAssignmentSchedule
Request
-
AssignmentId(required): integer
Unique identifier of the project resource assignment.
-
Metadata-Context:
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".
-
REST-Framework-Version:
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.
- application/vnd.oracle.adf.action+json
object
-
adjustmentReason: string
Reason for adjusting the project resouce assignment schedule.
-
approveFlag: boolean
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.
-
callingFlowCode: string
The code of the flow performing the project resource assignment schedule change.
-
fridayHours: number
Hours for Friday of every week for the assignment time period. Applicable only if Use Variable Hours Indicator is true.
-
mondayHours: number
Hours for Monday of every week for the assignment time period. Applicable only if Use Variable Hours Indicator value is true.
-
newAssignmentEndDate: string
(date)
The new end date for the project resource assignment. If no value is passed, the assignments original end date is retained.
-
newAssignmentHoursPerDay: number
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.
-
newAssignmentHoursPerWeek: number
The new hours for every week of the assignment duration. Applicable only if Use Weekly Hours Indicator value is true.
-
newAssignmentStartDate: string
(date)
The new start date for the project resource assignment. If no value is passed, the assignments original start date is retained.
-
projectManagementFlowFlag: boolean
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.
-
saturdayHours: number
Hours for Saturday of every week for the assignment time period. Applicable only if Use Variable Hours Indicator is true.
-
sundayHours: number
Hours for Sunday of every week for the assignment time period. Applicable only if Use Variable Hours Indicator is true.
-
thursdayHours: number
Hours for Thursday of every week for the assignment time period. Applicable only if Use Variable Hours Indicator is true.
-
tuesdayHours: number
Hours for Tuesday of every week for the assignment time period. Applicable only if Use Variable Hours Indicator is true.
-
useProjectCalendarFlag: boolean
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.
-
useVariableHoursFlag: boolean
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.
-
useWeeklyHoursFlag: boolean
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.
-
wednesdayHours: number
Hours for Wednesday of every week for the assignment time period. Applicable only if Use Variable Hours Indicator is true.
Response
- application/json
- application/vnd.oracle.adf.actionresult+json
Default Response
object
-
result(required): string
The adjustAssignmentSchedule action returns SUCCESS if the operation completes successfully and it will return FAILURE if the operation is not successful.
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" }