Company Profile Upgrade

patch

/appstore/publisher/v1/profile

Upgrade the profile from devloper to publisher.

Request

Supported Media Types
Body ()
Provide the body with required information.
Root Schema : CompanyProfile
Type: object
Show Source
Nested Schema : ContactDetails
Type: object
Show Source
Nested Schema : Item
Type: object
Show Source
Nested Schema : PackageConfigurations
Type: object
Show Source
Nested Schema : PartnerDetails
Type: object
Show Source
Nested Schema : PartnerPortalOptions
Type: object
Show Source
Nested Schema : products
Type: array
Show Source
Nested Schema : publisherType
Type: array
Show Source
Nested Schema : AdditionalContactInfo
Type: object
Show Source
Nested Schema : product
Type: object
Show Source
Nested Schema : categories
Type: array
Show Source
Nested Schema : filters
Type: array
Show Source
Nested Schema : ProductFilter
Type: object
Show Source
Nested Schema : values
Type: array
Show Source
Back to Top

Response

Supported Media Types

200 Response

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

400 Response

Invalid Parameter Value/Bad Request

401 Response

Not Authorized

500 Response

System Error
Back to Top

Examples

The following example upgrades company profile from developer to publisher by submitting a PATCH request on the REST resource using cURL.

cURL Example

curl -X PATCH -H "X-Oracle-UserId: partner-email" -H "Authorization: Bearer Access-token" "https://ocm-apis.cloud.oracle.com/appstore/publisher/v1/profile"

Request Header

X-Oracle-UserId: fname.lname@oracle.com 
Authorization: Bearer Access-token 

Request Body

{
  "name": "TEST Inc.",
  "opnNumber": "4-555003140938",
  "description": "Testing description from REST API",
  "size": {
    "code": "ONE_TO_FIFTY"
  },
  "founded": "2016",
  "city": "London",
  "state": "Westminster",
  "country": {
    "code": "United Kingdom"
  },
  "contactDetails": {
  "website": "https://www.test.com",
  "phone": "0044-744-040-8543",
  "contactEmail": "contact@test.com",
  "notificationEmail": "notification@test.com",
  "additionalDetails": {
      "twitterURL": "https://twitter.com/test",
      "facebookURL": "https://www.facebook.com/test",
      "linkedInURL": "https://www.linkedin.com/test"
   }
  },
  "action" : "UPGRADE"
}

HTTP Status Code:

200 OK

JSON Response:

{
  "message": "Company profile upgrade request successfully created"
}
Back to Top