Update Location
put
/appstore/publisher/v1/services/{listingVersionId}/locations/{id}
Update a location associated with the service.
Request
Supported Media Types
- application/xml
- application/json
Path Parameters
-
id: integer(int64)
ID of the screenshot to delete.
-
listingVersionId: integer(int64)
Listing ID for the screenshot to delete.
Root 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
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 updates an existing geo-graphic locations 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/locations/127808425"
Request Header
Authorization: Bearer Access-token X-Oracle-UserId: fname.lname@oracle.com
Request Body
{ "locationName":"Regional office Japan", "addressLocation":"Periyar st", "city":"Chennai", "country":{ "code":"india" }, "zipCode":"10899", "contactPhone":"87654332345", "contactEmail":"jenatara@oracle.com", "fax":"8762767", "websiteUrl":"https://www.oracle.com/index.html", "regions":[ { "code":"EUROPE", "name":"Europe" } ] }
HTTP Status Code:
200 OK
JSON Response:
{ "entityId": "127808425", "name": "Regional Office" }Back to Top