Add or Update Global Dictionary Key Values
post
/rest/v19/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:
objectTitle:
Show Source
Create/Update Global Dict Detail-
key:
string
Title:
keyName of the key. -
minTimeTolive:
integer
Title:
minTimeToliveThe minimum time, in minutes, the key-value pair is guaranteed to exist in the global dictionary. -
value:
string
Title:
valueValue associated with the key.
Response
Supported Media Types
- application/json
Default Response
Global Dict Details
Root Schema : Global Dict Detail
Type:
objectTitle:
Show Source
Global Dict Detail-
dateAdded:
string
Title:
Date CreatedCreation Date. -
dateModified:
string
Title:
Date Last ModifiedDate last modified. -
key:
string
Title:
KeyName of the key. -
links:
object reference links
Title:
reference linksReference links for the Parent, Self, Children and Related as applicable -
minTimeTolive:
integer
Title:
Minimum time to liveThe minimum time, in minutes, the key-value pair is guaranteed to exist in the global dictionary. -
value:
string
Title:
ValueValue associated with the key
Nested Schema : reference links
Type:
objectTitle:
reference linksReference links for the Parent, Self, Children and Related as applicable
Show Source
-
href:
string
Title:
URL to the related objectURL to the related object -
name:
string
-
rel:
string
Title:
Link Relationship to the current objectDefault Value:selfLink 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 -H "Authorization: Bearer <token>" -H "Content-type: application/json" -H "Accept: application/json" https://sitename.oracle.com/rest/v19/globalDict
Request Body Sample
{
"key": "key1",
"value": "1",
"minTimeToLive": 2500
}