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 Hours
Assigned hours per day when the specify hours per day is selected for use project calendar flag. -
AssignmentFinishDate: string
(date)
Title:
Assignment Finish Date
Assignment finish date for the resource. -
AssignmentId: integer
Title:
Assignment ID
Identifier 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 Date
Assignment start date for the resource. -
AssignmentStatus: string
Title:
Resource Staffing Status
Maximum Length:80
Status of the assignment created for the resource to fulfill the request. -
AssignmentStatusCode: string
Title:
Assignment Status Code
Maximum Length:30
Code of the assignment created for the resource to fulfill the request. -
ProjectRole: string
Title:
Project Role
Resource role for the project assignment. -
RejectionReason: string
Maximum Length:
80
Reason the nominated resource is rejected for the project resource assignment. -
RejectionReasonCode: string
Title:
Rejection Reason Code
Maximum Length:30
Code to indicate the reason the nominated resource is rejected for the project resource assigment. -
RequestLineId: integer
(int64)
Title:
Request Line ID
Unique identifier of the request line under the project resource request. -
ReservationExpirationDate: string
(date)
Title:
Reservation Expiration Date
Select reservation expiration date for the resource if the assignment status is reserved. -
ReservationReason: string
Title:
Reservation Reason
Select reservation reason for the resource if the assignment status is reserved. -
ResourceEmail: string
Title:
Resource Email
Maximum Length:240
Email of the project enterprise resource associated to the project resource request. -
ResourceFulfilledDate: string
(date)
Title:
Request Fulfilled Date
The date the resource on the request line is approved to fulfill the project resource request. -
ResourceId: integer
(int64)
Title:
Resource ID
Identifier of the project enterprise resource associated to the project resource request. -
ResourceProposedDate: string
(date)
Title:
Resource Proposed Date
The date when the resource is proposed or nominated to fulfill the project resource request. -
ResourceStatus: string
Title:
Resource Staffing Status
Maximum Length:80
Status of the resource associated to the project resource request. -
ResourceStatusCode: string
Title:
Resource Status Code
Maximum Length:20
Default Value:NEW_LINE
Status code for the resource associated to the project resource request. -
UseProjectCalendarFlag: boolean
Title:
Use Project Calendar Indicator
Maximum Length:255
Select 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(required):
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(required):
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 Hours
Assigned hours per day when the specify hours per day is selected for use project calendar flag. -
AssignmentFinishDate: string
(date)
Title:
Assignment Finish Date
Assignment finish date for the resource. -
AssignmentId: integer
Title:
Assignment ID
Identifier 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 Date
Assignment start date for the resource. -
AssignmentStatus: string
Title:
Resource Staffing Status
Maximum Length:80
Status of the assignment created for the resource to fulfill the request. -
AssignmentStatusCode: string
Title:
Assignment Status Code
Maximum Length:30
Code of the assignment created for the resource to fulfill the request. -
CurrentFlag: boolean
Title:
Current Indicator
Read Only:true
Maximum Length:1
Indicates whether the project resource request is the most recent request for the assignment. -
links: array
Links
Title:
Links
The link relations associated with the resource instance. -
ProjectRole: string
Title:
Project Role
Resource role for the project assignment. -
RejectionReason: string
Maximum Length:
80
Reason the nominated resource is rejected for the project resource assignment. -
RejectionReasonCode: string
Title:
Rejection Reason Code
Maximum Length:30
Code to indicate the reason the nominated resource is rejected for the project resource assigment. -
RequestLineId: integer
(int64)
Title:
Request Line ID
Unique identifier of the request line under the project resource request. -
ReservationExpirationDate: string
(date)
Title:
Reservation Expiration Date
Select reservation expiration date for the resource if the assignment status is reserved. -
ReservationReason: string
Title:
Reservation Reason
Select reservation reason for the resource if the assignment status is reserved. -
ResourceEmail: string
Title:
Resource Email
Maximum Length:240
Email of the project enterprise resource associated to the project resource request. -
ResourceFulfilledDate: string
(date)
Title:
Request Fulfilled Date
The date the resource on the request line is approved to fulfill the project resource request. -
ResourceId: integer
(int64)
Title:
Resource ID
Identifier of the project enterprise resource associated to the project resource request. -
ResourceName: string
Title:
Resource Name
Read Only:true
Maximum Length:240
Name of the project enterprise resource associated to the project resource request. -
ResourcePersonId: integer
(int64)
Title:
Resource HCM Person ID
Read Only:true
HCM person identifier of the project enterprise resource associated to the project resource request. -
ResourceProposedDate: string
(date)
Title:
Resource Proposed Date
The date when the resource is proposed or nominated to fulfill the project resource request. -
ResourceStatus: string
Title:
Resource Staffing Status
Maximum Length:80
Status of the resource associated to the project resource request. -
ResourceStatusCode: string
Title:
Resource Status Code
Maximum Length:20
Default Value:NEW_LINE
Status code for the resource associated to the project resource request. -
ResourceSystemStatus: string
Title:
Resource System Status
Read Only:true
Resource system status based on the seeded values. -
UseProjectCalendarFlag: boolean
Title:
Use Project Calendar Indicator
Maximum Length:255
Select whether to use project calendar hours or specific hours per day.
Nested Schema : Links
Type:
array
Title:
Links
The link relations associated with the resource instance.
Show Source
Nested Schema : link
Type:
Show Source
object
-
href: string
Title:
hyperlink reference
The URI to the related resource. -
kind: string
Title:
kind
Allowed Values:[ "collection", "item", "describe", "other" ]
The kind of the related resource. -
name: string
Title:
name
The name of the link to the related resource. -
properties: object
properties
-
rel: string
Title:
relation
Allowed 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 }