Update Memory Options
curl --request PUT \
--url https://api.example.com/admin/v1/config/memory-options \
--header 'Content-Type: application/json' \
--data '
{
"expectedVersion": 123,
"config": {}
}
'import requests
url = "https://api.example.com/admin/v1/config/memory-options"
payload = {
"expectedVersion": 123,
"config": {}
}
headers = {"Content-Type": "application/json"}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({expectedVersion: 123, config: {}})
};
fetch('https://api.example.com/admin/v1/config/memory-options', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/admin/v1/config/memory-options"
payload := strings.NewReader("{\n \"expectedVersion\": 123,\n \"config\": {}\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"data": {
"version": 123,
"config": {}
}
}Config
Update Memory Options
PUT
/
admin
/
v1
/
config
/
memory-options
Update Memory Options
curl --request PUT \
--url https://api.example.com/admin/v1/config/memory-options \
--header 'Content-Type: application/json' \
--data '
{
"expectedVersion": 123,
"config": {}
}
'import requests
url = "https://api.example.com/admin/v1/config/memory-options"
payload = {
"expectedVersion": 123,
"config": {}
}
headers = {"Content-Type": "application/json"}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({expectedVersion: 123, config: {}})
};
fetch('https://api.example.com/admin/v1/config/memory-options', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/admin/v1/config/memory-options"
payload := strings.NewReader("{\n \"expectedVersion\": 123,\n \"config\": {}\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"data": {
"version": 123,
"config": {}
}
}
