Add or Update Global Dictionary Key Values
post
/rest/v16/globalDict
Use this endpoint to add or update the global dictionary key values defined for the site.
Request
Supported Media Types
- application/json
Header Parameters
-
Upsert-Mode: boolean
Contains true or false value. If true, the server performs an Upsert operation instead of a Create operation.
Root Schema : Create/Update Global Dict Detail
Type:
object
Title:
Show Source
Create/Update Global Dict Detail
-
key:
string
Title:
key
Name of the key. -
minTimeTolive:
integer
Title:
minTimeTolive
The minimum time, in minutes, the key-value pair is guaranteed to exist in the global dictionary. -
value:
string
Title:
value
Value associated with the key.
Response
Supported Media Types
- application/json
Default Response
Global Dict Details
Root Schema : Global Dict Detail
Type:
object
Title:
Show Source
Global Dict Detail
-
dateAdded:
string
Title:
Date Created
Creation Date. -
dateModified:
string
Title:
Date Last Modified
Date last modified. -
key:
string
Title:
Key
Name of the key. -
links:
object reference links
Title:
reference links
Reference links for the Parent, Self, Children and Related as applicable -
minTimeTolive:
integer
Title:
Minimum time to live
The minimum time, in minutes, the key-value pair is guaranteed to exist in the global dictionary. -
value:
string
Title:
Value
Value associated with the key
Nested Schema : reference links
Type:
object
Title:
reference links
Reference links for the Parent, Self, Children and Related as applicable
Show Source
-
href:
string
Title:
URL to the related object
URL to the related object -
name:
string
-
rel:
string
Title:
Link Relationship to the current object
Default Value:self
Link Relationship to the current object
Examples
The following example shows how to add or update the global dictionary key values defined for the site by submitting a POST request to the REST resource using cURL. For more information about cURL, see Use cURL.
curl -X POST -i -H "Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQg" -H "Content-type: application/json" -H "Accept: application/json" https://sitename.oracle.com/rest/v16/globalDict
Request Body Sample
{ "key": "key1", "value": "1", "minTimeToLive": 2500 }