Update terms

put

/appstore/publisher/v1/terms/{termsid}

Update the terms version in new status.

Request

Supported Media Types
Path Parameters
Body ()
Provide the body with required information.
Root Schema : TermsVersion
Type: object
Show Source
Back to Top

Response

Supported Media Types

200 Response

Successful Operation
Body ()
Root Schema : acknowledgement
Type: object
Show Source

400 Response

Invalid Parameter Value/Bad Request

401 Response

Not Authorized

500 Response

System Error
Back to Top

Examples

The following example update the version in new status of passed terms id by submitting a PUT request on the REST resource using cURL.

cURL Example

curl -X POST -H "X-Oracle-UserId: partner-email" -H "Authorization: Bearer Access-token" "https://ocm-apis.cloud.oracle.com/appstore/publisher/v1/terms/7934470"

Request Header

X-Oracle-UserId: fname.lname@oracle.com 
Authorization: Bearer Access-token 

Request Body

{
  "versionName" : "Version 2",
  "contentDescription" : "Please read terms."
}

HTTP Status Code:

200 OK

JSON Response:

{
  "message": "Terms of Use was update successfully.",
  "entityId": "7934470"
}
Back to Top