Create Services
post
/appstore/publisher/v1/services
Create a new Service listing. Service goes through a state lifecycle.A newly created Service starts off in the "New" state. Service edits are allowed in this state.To publish the listing to the Marketplace, the service listing needs to be submitted for Approval.
Request
Supported Media Types
- application/xml
- application/json
Root Schema : Listing
Type:
Show Source
object
-
additionalInfo(optional):
object AdditionalInfo
-
banner(optional):
object Banner
-
contactUs(optional):
string
-
customerStories(optional):
array customerStories
-
hasTemplate(optional):
boolean
-
icon(optional):
object Icon
-
industries(optional):
array industries
-
languages(optional):
array languages
-
lastUpdateDate(optional):
string
-
links(optional):
array link
-
listingContentLanguage(optional):
object Item
-
listingId(optional):
integer(int64)
-
listingVersionId(optional):
integer(int64)
-
locations(optional):
array locations
-
longDescription(optional):
string
-
name(optional):
string
-
numberOfTrainedProfessionals(optional):
object numberOfTrainedProfessionals
Additional Properties Allowed: additionalProperties
-
opnLevel(optional):
string
-
opnTypeMembershipServiceDetailsLink(optional):
string
-
products(optional):
array products
-
progress(optional):
object Progress
- relatedDocuments(optional): array relatedDocuments
-
screenShots(optional):
array screenShots
-
serviceProviders(optional):
array serviceProviders
-
shortDescription(optional):
string
-
status(optional):
string
-
tagLine(optional):
string
-
tags(optional):
string
-
versionedListing(optional):
string
Nested Schema : SuccessStory
Type:
Show Source
object
-
contentId(optional):
integer(int64)
-
contentType(optional):
string
-
contentURL(optional):
string
-
description(optional):
string
-
file(optional):
object UploadFile
-
fileExtension(optional):
string
-
fileName(optional):
string
-
listingContentId(optional):
integer(int64)
-
listingVersionId(optional):
integer(int64)
-
mimeType(optional):
string
-
name(optional):
string
-
resourceURL(optional):
string
-
sourceType(optional):
string
-
sourceURL(optional):
string
Nested Schema : InputStream
Type:
object
Nested Schema : Link
Type:
Show Source
object
-
href(optional):
string
-
rel(optional):
string
Allowed Values:
[ "SELF", "CANONICAL", "NEXT", "TEMPLATE", "PREV" ]
Nested Schema : Location
Type:
Show Source
object
-
addressLocation(optional):
string
-
city(optional):
string
-
contactEmail(optional):
string
-
contactPhone(optional):
string
-
country(optional):
object Item
-
fax(optional):
string
-
id(optional):
integer(int64)
-
latitude(optional):
string
-
locationName(optional):
string
-
longitude(optional):
string
-
region(optional):
object Item
-
state(optional):
string
-
street(optional):
string
-
websiteUrl(optional):
string
-
zipCode(optional):
string
Nested Schema : RelatedDocs
Type:
Show Source
object
-
contentId(optional):
integer(int64)
-
contentType(optional):
string
-
contentURL(optional):
string
-
description(optional):
string
-
file(optional):
object UploadFile
-
fileExtension(optional):
string
-
fileName(optional):
string
-
forOracleUsersOnly(optional):
boolean
-
mimeType(optional):
string
-
name(optional):
string
-
resourceURL(optional):
string
-
sourceType(optional):
string
-
sourceURL(optional):
string
Nested Schema : ServiceProvider
Type:
Show Source
object
-
contentId(optional):
integer(int64)
-
contentType(optional):
string
-
contentURL(optional):
string
-
description(optional):
string
-
file(optional):
object UploadFile
-
fileExtension(optional):
string
-
fileName(optional):
string
-
listingVersionId(optional):
integer(int64)
-
mimeType(optional):
string
-
name(optional):
string
-
resourceURL(optional):
string
-
sourceType(optional):
string
-
sourceURL(optional):
string
Response
Supported Media Types
- application/json;qs=1
- application/xml;qs=.5
400 Response
Invalid Parameter Value
401 Response
Not Authorized
404 Response
Entity Not Found
500 Response
System Error
Examples
The following example creates the service, by submitting a POST request on the REST resource using cURL.
cURL Example
curl -X POST -H "Authorization: Bearer Access-token" -H "X-Oracle-UserId: partner-email" "https://ocm-apis.cloud.oracle.com/appstore/publisher/v1/services"
Request Header
Authorization: Bearer Access-token X-Oracle-UserId: fname.lname@oracle.com
Request Body
{ "name": "Myservice", "industries": [ { "code": "HEALTHCARE" } ], "tagLine": "My sample Tag line", "tags" : "myservice,test", "products": [ { "code": "compute" } ], "shortDescription": "really really short description", "longDescription": "really really long description", "languages": [ { "code": "cs_CZ" }, { "code": "en_US" } ], "listingContentLanguage":{ "code":"fr_FR", "name":"French" }, "additionalInfo": { "vanityURL": "https://cloudmarketplace.oracle.com/marketplace/service/123456", "vanityURLSuffix": "123456" }, "contactUs": "Contact Us Info
" } }
HTTP Status Code:
200 OK
JSON Response:
{ "message": "Listing was created successfully.", "entityId": "9483951", "name": "Myservice" }Back to Top