Create one or more nominated resources for a project resource request
post
/fscmRestApi/resources/11.13.18.05/projectResourceRequests/{ResourceRequestId}/child/ProjectResourceRequestLines
Request
Path Parameters
-
ResourceRequestId(required): integer(int64)
Identifier of the project resource request.
Header Parameters
-
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.
-
Upsert-Mode:
Contains one of the following values: true or false. If true, the server performs an Upsert operation instead of a Create operation. During an Upsert operation, the server attempts to find an existing resource that matches the payload. If a match is found, the server updates the existing resource instead of creating a new one. If not found or false (default), the server performs a Create operation. Note that the Upsert operation isn't supported for date-effective REST resources.
Supported Media Types
- application/json
Root Schema : schema
Type:
Show Source
object-
AssignedHours: number
Title:
Assigned HoursAssigned hours per day when the specify hours per day is selected for use project calendar flag. -
AssignmentFinishDate: string
(date)
Title:
Assignment Finish DateAssignment finish date for the resource. -
AssignmentId: integer
Title:
Assignment IDIdentifier of the assignment created for the resource, if an assignment is created for the resource on the request line. -
AssignmentStartDate: string
(date)
Title:
Assignment Start DateAssignment start date for the resource. -
AssignmentStatus: string
Title:
Resource Staffing StatusMaximum Length:80Status of the assignment created for the resource to fulfill the request. -
AssignmentStatusCode: string
Title:
Assignment Status CodeMaximum Length:30Code of the assignment created for the resource to fulfill the request. -
ProjectRole: string
Title:
Project RoleResource role for the project assignment. -
RejectionReason: string
Maximum Length:
80Reason the nominated resource is rejected for the project resource assignment. -
RejectionReasonCode: string
Title:
Rejection Reason CodeMaximum Length:30Code to indicate the reason the nominated resource is rejected for the project resource assigment. -
RequestLineId: integer
(int64)
Title:
Request Line IDUnique identifier of the request line under the project resource request. -
ReservationExpirationDate: string
(date)
Title:
Reservation Expiration DateSelect reservation expiration date for the resource if the assignment status is reserved. -
ReservationReason: string
Title:
Reservation ReasonSelect reservation reason for the resource if the assignment status is reserved. -
ResourceEmail: string
Title:
Resource EmailMaximum Length:240Email of the project enterprise resource associated to the project resource request. -
ResourceFulfilledDate: string
(date)
Title:
Request Fulfilled DateThe date the resource on the request line is approved to fulfill the project resource request. -
ResourceId: integer
(int64)
Title:
Resource IDIdentifier of the project enterprise resource associated to the project resource request. -
ResourceProposedDate: string
(date)
Title:
Resource Proposed DateThe date when the resource is proposed or nominated to fulfill the project resource request. -
ResourceStatus: string
Title:
Resource Staffing StatusMaximum Length:80Status of the resource associated to the project resource request. -
ResourceStatusCode: string
Title:
Resource Status CodeMaximum Length:20Default Value:NEW_LINEStatus code for the resource associated to the project resource request. -
UseProjectCalendarFlag: boolean
Title:
Use Project Calendar IndicatorMaximum Length:255Select whether to use project calendar hours or specific hours per day.
Response
Supported Media Types
- application/json
Default Response
The following table describes the default response for this task.
Headers
-
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.
Root Schema : projectResourceRequests-ProjectResourceRequestLines-item-response
Type:
Show Source
object-
AssignedHours: number
Title:
Assigned HoursAssigned hours per day when the specify hours per day is selected for use project calendar flag. -
AssignmentFinishDate: string
(date)
Title:
Assignment Finish DateAssignment finish date for the resource. -
AssignmentId: integer
Title:
Assignment IDIdentifier of the assignment created for the resource, if an assignment is created for the resource on the request line. -
AssignmentStartDate: string
(date)
Title:
Assignment Start DateAssignment start date for the resource. -
AssignmentStatus: string
Title:
Resource Staffing StatusMaximum Length:80Status of the assignment created for the resource to fulfill the request. -
AssignmentStatusCode: string
Title:
Assignment Status CodeMaximum Length:30Code of the assignment created for the resource to fulfill the request. -
CurrentFlag: boolean
Title:
Current IndicatorRead Only:trueMaximum Length:1Indicates whether the project resource request is the most recent request for the assignment. -
links: array
Links
Title:
LinksThe link relations associated with the resource instance. -
ProjectRole: string
Title:
Project RoleResource role for the project assignment. -
RejectionReason: string
Maximum Length:
80Reason the nominated resource is rejected for the project resource assignment. -
RejectionReasonCode: string
Title:
Rejection Reason CodeMaximum Length:30Code to indicate the reason the nominated resource is rejected for the project resource assigment. -
RequestLineId: integer
(int64)
Title:
Request Line IDUnique identifier of the request line under the project resource request. -
ReservationExpirationDate: string
(date)
Title:
Reservation Expiration DateSelect reservation expiration date for the resource if the assignment status is reserved. -
ReservationReason: string
Title:
Reservation ReasonSelect reservation reason for the resource if the assignment status is reserved. -
ResourceEmail: string
Title:
Resource EmailMaximum Length:240Email of the project enterprise resource associated to the project resource request. -
ResourceFulfilledDate: string
(date)
Title:
Request Fulfilled DateThe date the resource on the request line is approved to fulfill the project resource request. -
ResourceId: integer
(int64)
Title:
Resource IDIdentifier of the project enterprise resource associated to the project resource request. -
ResourceName: string
Title:
Resource NameRead Only:trueMaximum Length:240Name of the project enterprise resource associated to the project resource request. -
ResourcePersonId: integer
(int64)
Title:
Resource HCM Person IDRead Only:trueHCM person identifier of the project enterprise resource associated to the project resource request. -
ResourceProposedDate: string
(date)
Title:
Resource Proposed DateThe date when the resource is proposed or nominated to fulfill the project resource request. -
ResourceStatus: string
Title:
Resource Staffing StatusMaximum Length:80Status of the resource associated to the project resource request. -
ResourceStatusCode: string
Title:
Resource Status CodeMaximum Length:20Default Value:NEW_LINEStatus code for the resource associated to the project resource request. -
ResourceSystemStatus: string
Title:
Resource System StatusRead Only:trueResource system status based on the seeded values. -
UseProjectCalendarFlag: boolean
Title:
Use Project Calendar IndicatorMaximum Length:255Select whether to use project calendar hours or specific hours per day.
Nested Schema : Links
Type:
arrayTitle:
LinksThe link relations associated with the resource instance.
Show Source
Nested Schema : link
Type:
Show Source
object-
href: string
Title:
hyperlink referenceThe URI to the related resource. -
kind: string
Title:
kindAllowed Values:[ "collection", "item", "describe", "other" ]The kind of the related resource. -
name: string
Title:
nameThe name of the link to the related resource. -
properties: object
properties
-
rel: string
Title:
relationAllowed Values:[ "self", "lov", "parent", "canonical", "child", "enclosure", "action", "custom" ]The name of the relation to the resource instance. Example: self.
Nested Schema : properties
Type:
Show Source
object-
changeIndicator: string
Change indicator or the ETag value of the resource instance.
Examples
The following example shows how to create a nominated resource for a project resource request 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/projectResourceRequests/300100084131577/child/ProjectResourceRequestLines
Request Body Example
The following shows an example of the request body in JSON format.
{
"ResourceId" : 300100081800169,
"ResourceStatus" : "Nominated"
}
Response Body Example
The following shows an example of the response body in JSON format.
{
"RequestLineId": 300100185589536,
"ResourceId": 300100081800169,
"ResourceName": "Martin Sims",
"ResourceEmail": "martin.sims_dummy@oracle.com",
"ResourcePersonId": 100010032551052,
"ResourceStatusCode": "NOMINATED",
"ResourceStatus": "Nominated",
"AssignmentId": 300100185589537,
"AssignmentStatusCode": null,
"AssignmentStatus": null,
"ResourceProposedDate": "2020-09-11",
"ResourceFulfilledDate": null,
"RejectionReasonCode": null,
"RejectionReason": null
}