Update Service
put
/appstore/publisher/v1/services/{listingVersionId}
Update the service listing. Only sevices in a NEW or REJECTED state can be updated. To update a listing that is published, a new version of the listing must be created.
Request
Supported Media Types
- application/xml
- application/json
Path Parameters
-
listingVersionId: integer(int64)
Unique identifier of a service for which information is to be updated.
Service Listing Information to be updated.
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
200 Response
Successful Operation
400 Response
Bad Request
401 Response
Not Authorized
500 Response
System Error
Examples
The following example updates the existing 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/132361440"
Request Header
Authorization: Bearer Access-token X-Oracle-UserId: fname.lname@oracle.com
Request Body
{ "name": "myservice Updated", "industries": [ { "code": "HEALTHCARE" } ], "tagLine": "My sample Tag line", "tags" : "myservice,test", "products": [ { "code": "compute" }, { "code" :"social" } ], "additionalInfo": { "vanityURL": "https://cloudmarketplace-stage.oracle.com/marketplace/app/vanityurlsample1testjan112", "vanityURLSuffix": "vanityurlsample1testjan112" }, "contactUs": "Contact Us Info
", "shortDescription": "really really short description", "longDescription": "really really long description", "languages": [ { "code": "cs_CZ" }, { "code": "en_US" } ] }
HTTP Status Code:
200 OK
JSON Response:
{ "message": "Listing was updated successfully.", "entityId": "132361440", "name": "myservice updated" }Back to Top