Manage views for program analysis
/fscmRestApi/resources/11.13.18.05/projectProgramUsers/{PersonId}/action/manageView
Request
-
PersonId(required): number
The value of this parameter could be a hash of the key that is used to uniquely identify the resource item. The client should not generate the hash key value. Instead, the client should query on the collection resource with a filter to navigate to a specific resource item. For example: products?q=InventoryItemId=
-
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
-
action: string
The action you want to perform. Values can be CREATE, UPDATE, or DELETE.
-
existingViewName: string
The name of the existing view that needs to be updated or deleted.
-
newViewName: string
The new name for the view, if you're performing an update operation.
-
viewName: string
The name of the custom view
Response
- application/json
- application/vnd.oracle.adf.actionresult+json
Default Response
object
-
result(required): string
The status of the custom action, indicating whether the operation was successful. Values can be SUCCESS or FAILURE.
Examples
Example 1
The following example shows how to create a custom view by submitting a POST request on the REST resource using cURL.
curl -H "Content-Type: application/vnd.oracle.adf.action+json" --user ppm_cloud_user -X POST -d @example_request_payload.json "https://your_organization.com:port/fscmRestApi/resources/11.13.18.05/projectProgramUsers/<PersonId>/action/manageView"
Example 1 Request Body
The following shows an example of the request body in JSON format.
{ "action": "create", "viewName":"<custom view name>" }
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 rename an existing custom view to a new name by submitting a POST request on the REST resource using cURL.
curl -H "Content-Type: application/vnd.oracle.adf.action+json" --user ppm_cloud_user -X POST -d @example_request_payload.json "https://your_organization.com:port/fscmRestApi/resources/11.13.18.05/projectProgramUsers/<PersonId>/action/manageView"
Example 2 Request Body
The following shows an example of the request body in JSON format.
{ "action": "update", "existingViewName":"<Existing view name>", "newViewName": "<New view name>" }
Example 2 Response Body
The following shows an example of the response body in JSON format.
{ "result": "SUCCESS" }
Example 3
The following example shows how to delete an existing custom view by submitting a POST request on the REST resource using cURL.
curl -H "Content-Type: application/vnd.oracle.adf.action+json" --user ppm_cloud_user -X POST -d @example_request_payload.json "https://your_organization.com:port/fscmRestApi/resources/11.13.18.05/projectProgramUsers/<PersonId>/action/manageView"
Example 3 Request Body
The following shows an example of the request body in JSON format.
{ "action": "delete", "viewName":"<view name to be deleted>" }
Example 3 Response Body
The following shows an example of the response body in JSON format.
{ "result": "SUCCESS" }