Update Location

put

/appstore/publisher/v1/services/{listingVersionId}/locations/{id}

Update a location associated with the service.

Request

Supported Media Types
Path Parameters
Body ()
Root Schema : Location
Type: object
Show Source
Nested Schema : Item
Type: object
Show Source
Back to Top

Response

Supported Media Types

400 Response

Invalid Parameter Value

401 Response

Not Authorized

404 Response

Entity Not Found

500 Response

System Error
Back to Top

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