Create terms
post
/appstore/publisher/v1/terms
Create a new term. The terms are displayed to end users during installation of the Application.
Request
Supported Media Types
- application/xml
- application/json
Provide the body with required information.
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 created terms of use by submitting a POST 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"
Request Header
X-Oracle-UserId: fname.lname@oracle.com Authorization: Bearer Access-token
Request Body
{ "versionName" : "Version 1", "contentDescription" : "Please read terms." }
HTTP Status Code:
200 OK
JSON Response:
{ "message": "Terms of Use was created successfully.", "entityId": "7934470" }Back to Top