Create/Update TrainedProfessional
put
/appstore/publisher/v1/services/{listingVersionId}/trainedprofessionals
Creates/Update TrainedProfessional for a service with the specified ID. When new set of TrainedProfessional as pushed, the old one will be replaced.
Request
Supported Media Types
- application/xml
- application/json
Path Parameters
-
listingVersionId: integer(int64)
Listing ID for which to create TrainedProfessional.
Upload the required resources and provide required information.
Response
Supported Media Types
- application/json;qs=1
- application/xml;qs=.5
200 Response
Successful Operation
400 Response
Bad Request
401 Response
Not Authorized
404 Response
Entity Not Found
500 Response
System Error
Examples
The following example creates or updates a trainedprofessional for a service, by submitting a PUT request on the REST resource using cURL.
cURL Example
curl -X PUT -H "Authorization: Bearer Access-token" -H "X-Oracle-UserId: partner-email" "https://ocm-apis.cloud.oracle.com/appstore/publisher/v1/services/9483951/trainedprofessionals"
Request Header
Authorization: Bearer Access-token X-Oracle-UserId: fname.lname@oracle.com
Request Body
[ { "count":10, "product":{ "code":"compute" } }, { "count":10, "product":{ "code":"sales" } } ]HTTP Status Code:
200 OK
JSON Response:
{ "message": "TrainedProfessionals details updated successfully." }Back to Top