Create a project opportunity
post
/fscmRestApi/resources/11.13.18.05/projects/{ProjectId}/child/ProjectOpportunities
Request
Path Parameters
-
ProjectId(required): integer(int64)
Unique identifier of the project.
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-
OpportunityAltNumber: string
Title:
External Opportunity IDMaximum Length:240Unique identifier of the opportunity that is created in third-party application. -
OpportunityAmount: number
Title:
Opportunity Deal AmountTotal amount of a customer deal in the opportunity management application. -
OpportunityCurrencyCode: string
Title:
Opportunity Currency CodeMaximum Length:15Currency code of the deal amount for the opportunity. -
OpportunityCustomerId: integer
(int64)
Title:
Opportunity Customer IDUnique identifier of the customer with whom the deal is made for the project. -
OpportunityCustomerName: string
Title:
Opportunity Project Customer NameMaximum Length:900Name of the customer with whom the deal is made for the project. -
OpportunityCustomerNumber: string
Title:
Opportunity Project Customer NumberMaximum Length:240Customer number in the opportunity management application. -
OpportunityDescription: string
Title:
Opportunity DescriptionMaximum Length:1000Description of the opportunity that the project is associated with. -
OpportunityId: integer
(int64)
Title:
Opportunity IDUnique identifier of the opportunity associated with the project. -
OpportunityName: string
Title:
Opportunity NameMaximum Length:240Name of the opportunity that the project is associated with. -
OpportunityNumber: string
Title:
Opportunity NumberMaximum Length:240The public unique identifier for an opportunity in the opportunity management application. -
OpportunityStatus: string
Title:
Opportunity StatusMaximum Length:240Status of an opportunity in the opportunity management application. -
OpportunityWinConfPercent: number
Title:
Opportunity Win Probability PercentagePercentage probability of winning an opportunity in the opportunity management application. -
ProjectId: integer
(int64)
Title:
Project IDUnique identifier of the project.
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 : projects-ProjectOpportunities-item-response
Type:
Show Source
object-
links: array
Links
Title:
LinksThe link relations associated with the resource instance. -
OpportunityAltNumber: string
Title:
External Opportunity IDMaximum Length:240Unique identifier of the opportunity that is created in third-party application. -
OpportunityAmount: number
Title:
Opportunity Deal AmountTotal amount of a customer deal in the opportunity management application. -
OpportunityCurrencyCode: string
Title:
Opportunity Currency CodeMaximum Length:15Currency code of the deal amount for the opportunity. -
OpportunityCustomerId: integer
(int64)
Title:
Opportunity Customer IDUnique identifier of the customer with whom the deal is made for the project. -
OpportunityCustomerName: string
Title:
Opportunity Project Customer NameMaximum Length:900Name of the customer with whom the deal is made for the project. -
OpportunityCustomerNumber: string
Title:
Opportunity Project Customer NumberMaximum Length:240Customer number in the opportunity management application. -
OpportunityDescription: string
Title:
Opportunity DescriptionMaximum Length:1000Description of the opportunity that the project is associated with. -
OpportunityId: integer
(int64)
Title:
Opportunity IDUnique identifier of the opportunity associated with the project. -
OpportunityName: string
Title:
Opportunity NameMaximum Length:240Name of the opportunity that the project is associated with. -
OpportunityNumber: string
Title:
Opportunity NumberMaximum Length:240The public unique identifier for an opportunity in the opportunity management application. -
OpportunityStatus: string
Title:
Opportunity StatusMaximum Length:240Status of an opportunity in the opportunity management application. -
OpportunityWinConfPercent: number
Title:
Opportunity Win Probability PercentagePercentage probability of winning an opportunity in the opportunity management application. -
ProjectId: integer
(int64)
Title:
Project IDUnique identifier of the project.
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 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",
...
}]
...
}