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
Path Parameters
Body ()
Upload the required resources and provide required information.
Root Schema : schema
Type: array
Show Source
Nested Schema : TrainedProfessional
Type: object
Show Source
Nested Schema : Item
Type: object
Show Source
Back to Top

Response

Supported Media Types

200 Response

Successful Operation
Body ()
Root Schema : acknowledgement
Type: object
Show Source

400 Response

Bad Request

401 Response

Not Authorized

404 Response

Entity Not Found

500 Response

System Error
Back to Top

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