Company Profile Upgrade
patch
/appstore/publisher/v1/profile
Upgrade the profile from devloper to publisher.
Request
Supported Media Types
- application/xml
- application/json
Provide the body with required information.
Root Schema : CompanyProfile
Type:
Show Source
object
-
action(optional):
string
-
city(optional):
string
-
contactDetails(optional):
object ContactDetails
-
country(optional):
object Item
-
description(optional):
string
-
domicile(optional):
string
-
founded(optional):
string
-
isMspEnabled(optional):
boolean
-
logoURL(optional):
string
-
name(optional):
string
-
opnLevel(optional):
object Item
-
opnNumber(optional):
string
-
packageConfigurations(optional):
object PackageConfigurations
-
partnerDetails(optional):
object PartnerDetails
-
partnerMode(optional):
object Item
-
partnerPortalOptions(optional):
object PartnerPortalOptions
-
products(optional):
array products
-
publisherType(optional):
array publisherType
-
size(optional):
object Item
-
state(optional):
string
Nested Schema : PackageConfigurations
Type:
Show Source
object
-
enableDownloadablePackage(optional):
boolean
Default Value:
false
-
enablePackageCreation(optional):
boolean
Default Value:
false
-
pkgTestInstallMandatory(optional):
boolean
Default Value:
false
Nested Schema : PartnerPortalOptions
Type:
Show Source
object
-
enableAutoApproval(optional):
boolean
Default Value:
false
-
enableAutoPublish(optional):
boolean
Default Value:
false
-
enableDevInstanceRequest(optional):
boolean
Default Value:
false
-
enablePrivateListing(optional):
boolean
Default Value:
false
-
enableReport(optional):
boolean
Default Value:
false
Response
Supported Media Types
- application/json;qs=1
- application/xml;qs=.5
200 Response
Successful Operation
400 Response
Invalid Parameter Value/Bad Request
401 Response
Not Authorized
500 Response
System Error
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