Create Recommended Services
put
/appstore/publisher/v1/applications/{listingVersionId}/recommendedservices
Creates a list of recommended service integrators for an application with specified id. If the call is made with an empty list, it clears the entire existing list of recommended services associated with this application, if any.
Request
Path Parameters
-
listingVersionId: integer(int64)
Unique identifier of the application for which recommended services are to be added.
List of recommended services to be integrated with the application.
Response
Supported Media Types
- application/json;qs=1
- application/xml;qs=.5
200 Response
Successful Operation
400 Response
Bad Request/Invalid Parameter/Invalid Parameter Value
401 Response
Not Authorized
500 Response
System Error
Examples
The following example adds the recommended services for an application, by submitting a PUT request on the REST resource using cURL.
cURL Example
curl -X PUT -H "X-Oracle-UserId: partner-email" -H "Content-Type: application/json" -H "Authorization: Bearer Access-token" -d 'JSON-data-as-shown-in-below-example' "https://ocm-apis.cloud.oracle.com/appstore/publisher/v1/applications/2601750/recommendedservices"
Request Header
Authorization: Bearer Access-token X-Oracle-UserId: fname.lname@oracle.com
Request Body
[ "1509852", "816708" ]HTTP Status Code:
200 OK
JSON Response:
{ "message": "Recommended services for application with id 2908689 were created.", "entityId": "2908689" }Back to Top