Add or Update a Key Value entry
put
/api/kv/{key}
Updates the value assigned to the specified key. You identify the key using the key parameter. You specify the new value by passing the value in the body of the request.
Request
Supported Media Types
- application/json
Path Parameters
-
key: string
key
Body parameters
Root Schema : schema
Type:
string
Security
-
Authorization: apiKey
Type:
apiKey
Response
Supported Media Types
- text/plain; charset=utf-8
200 Response
200 Response
Default Response
Error Payload
Examples
The following example shows how to update the value of a specified key. You perform this task by submitting a PUT request to the REST resource using cURL. For more information about cURL, see Use cURL.
Note: The command in this example uses the URL structure https://rest_server_url/resource-path
, where rest_server_url
is the manager node for the Oracle Cloud Container instance. See Send Requests for the appropriate URL structure to use for Oracle Public Cloud.
cURL Command
curl -sk
-X "PUT"
-H "Authorization: Bearer b39f09c71c297f1d"
"https://rest_server_url/api/kv/Okey"
-d 'Oval'
Example of Response Body
true