Create a project opportunity

post

/fscmRestApi/resources/11.13.18.05/projects/{ProjectId}/child/ProjectOpportunities

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.
  • 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
Request Body - application/json ()
Root Schema : schema
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 : projects-ProjectOpportunities-item-response
Type: object
Show Source
Back to Top

Examples

The following example shows how to create a new project opportunity 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.0.0t/projects/300100093207556/child/ProjectOpportunities

Example of Request Body

The following example shows the request body to create a new project opportunity that is associated to the project with project ID 300100093207556.

{
  "OpportunityId" :  999997817603769,
  "OpportunityNumber" : "3-5R7RY1",
  "OpportunityName" : "TM BDO PeopleSoft Upgrade HCM 8.3 to 9.0",
  "OpportunityAmount" : 100000,
  "OpportunityCustomerName": "Professional Services_101408870",
  "OpportunityCustomerNumber" : "999997569489397",
  "OpportunityStatus" : "WON",
  "OpportunityWinConfPercent" : 90
}

Example of Response Body

The following example shows the contents of the response body in JSON format, including the details of the new project opportunity.

{
  "OpportunityAltNumber" : null,
  "OpportunityAmount" : 100000,
  "OpportunityCurrencyCode" : null,
  "OpportunityCustomerId" : null,
  "OpportunityCustomerName" : "Professional Services_101408870",
  "OpportunityCustomerNumber" : "999997569489397",
  "OpportunityDescription" : null,
  "OpportunityName" : "TM BDO PeopleSoft Upgrade HCM 8.3 to 9.0",
  "OpportunityNumber" : "3-5R7RY1",
  "OpportunityStatus" : "WON",
  "OpportunityWinConfPercent" : 90,
  "OpportunityId" : 999997817603769,
  "ProjectId" : 300100093207556,
  "links" : [{
    "rel" : "self",
    ...  
             }]
  ...
}
Back to Top