Update terms status
patch
/appstore/publisher/v1/terms/{termsid}
Update the terms version status.
Request
Supported Media Types
- application/xml
- application/json
Path Parameters
-
termsid: integer(int64)
Unique identifier of terms.
Provide the body with the status to be updated. Acceptable values are ACTIVE and INACTIVE.
Response
Supported Media Types
- application/json;qs=1
- application/xml;qs=.5
200 Response
Successful Operation
400 Response
Invalid Parameter Value/Bad Request
401 Response
Not Authorized
500 Response
System Error
Examples
The following example update the version status of passed terms id by submitting a PATCH 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
{ "status" : "ACTIVE" }
HTTP Status Code:
200 OK
JSON Response:
{ "message": "Terms of Use latest version was activated successfully.", "entityId": "7934470" }Back to Top