curl --request PUT \
--url https://api.qonversion.io/v4/remote-configurations/{config_id}/payload \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"data": {
"button_color": "#FF0000",
"max_items": 5
}
}
'import requests
url = "https://api.qonversion.io/v4/remote-configurations/{config_id}/payload"
payload = { "data": {
"button_color": "#FF0000",
"max_items": 5
} }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({data: {button_color: '#FF0000', max_items: 5}})
};
fetch('https://api.qonversion.io/v4/remote-configurations/{config_id}/payload', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.qonversion.io/v4/remote-configurations/{config_id}/payload",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'data' => [
'button_color' => '#FF0000',
'max_items' => 5
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}require 'uri'
require 'net/http'
url = URI("https://api.qonversion.io/v4/remote-configurations/{config_id}/payload")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"data\": {\n \"button_color\": \"#FF0000\",\n \"max_items\": 5\n }\n}"
response = http.request(request)
puts response.read_bodypackage main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.qonversion.io/v4/remote-configurations/{config_id}/payload"
payload := strings.NewReader("{\n \"data\": {\n \"button_color\": \"#FF0000\",\n \"max_items\": 5\n }\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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))
}HttpResponse<String> response = Unirest.put("https://api.qonversion.io/v4/remote-configurations/{config_id}/payload")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"data\": {\n \"button_color\": \"#FF0000\",\n \"max_items\": 5\n }\n}")
.asString();{
"object": "remote_config_payload",
"url": "/v4/remote-configurations/82a42dc2-76f6-46c2-b883-846acaf2070a/payload",
"config_id": "82a42dc2-76f6-46c2-b883-846acaf2070a",
"data": {
"button_color": "#FF0000",
"max_items": 5
}
}{
"error": {
"type": "request",
"code": "<string>",
"message": "<string>",
"details": [
{
"field": "<string>",
"message": "<string>"
}
]
}
}{
"error": {
"type": "request",
"code": "<string>",
"message": "<string>",
"details": [
{
"field": "<string>",
"message": "<string>"
}
]
}
}{
"error": {
"type": "request",
"code": "<string>",
"message": "<string>",
"details": [
{
"field": "<string>",
"message": "<string>"
}
]
}
}{
"error": {
"type": "request",
"code": "<string>",
"message": "<string>",
"details": [
{
"field": "<string>",
"message": "<string>"
}
]
}
}{
"error": {
"type": "request",
"code": "<string>",
"message": "<string>",
"details": [
{
"field": "<string>",
"message": "<string>"
}
]
}
}{
"error": {
"type": "request",
"code": "<string>",
"message": "<string>",
"details": [
{
"field": "<string>",
"message": "<string>"
}
]
}
}Replace the payload values
Replaces the payload values delivered to the SDK. Full replace: the supplied data object entirely overwrites the stored payload — to change one key, read the current payload, modify it, and send the whole object back. An empty object {} clears the payload. Requests are limited to 64 KiB.
curl --request PUT \
--url https://api.qonversion.io/v4/remote-configurations/{config_id}/payload \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"data": {
"button_color": "#FF0000",
"max_items": 5
}
}
'import requests
url = "https://api.qonversion.io/v4/remote-configurations/{config_id}/payload"
payload = { "data": {
"button_color": "#FF0000",
"max_items": 5
} }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({data: {button_color: '#FF0000', max_items: 5}})
};
fetch('https://api.qonversion.io/v4/remote-configurations/{config_id}/payload', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.qonversion.io/v4/remote-configurations/{config_id}/payload",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'data' => [
'button_color' => '#FF0000',
'max_items' => 5
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}require 'uri'
require 'net/http'
url = URI("https://api.qonversion.io/v4/remote-configurations/{config_id}/payload")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"data\": {\n \"button_color\": \"#FF0000\",\n \"max_items\": 5\n }\n}"
response = http.request(request)
puts response.read_bodypackage main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.qonversion.io/v4/remote-configurations/{config_id}/payload"
payload := strings.NewReader("{\n \"data\": {\n \"button_color\": \"#FF0000\",\n \"max_items\": 5\n }\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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))
}HttpResponse<String> response = Unirest.put("https://api.qonversion.io/v4/remote-configurations/{config_id}/payload")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"data\": {\n \"button_color\": \"#FF0000\",\n \"max_items\": 5\n }\n}")
.asString();{
"object": "remote_config_payload",
"url": "/v4/remote-configurations/82a42dc2-76f6-46c2-b883-846acaf2070a/payload",
"config_id": "82a42dc2-76f6-46c2-b883-846acaf2070a",
"data": {
"button_color": "#FF0000",
"max_items": 5
}
}{
"error": {
"type": "request",
"code": "<string>",
"message": "<string>",
"details": [
{
"field": "<string>",
"message": "<string>"
}
]
}
}{
"error": {
"type": "request",
"code": "<string>",
"message": "<string>",
"details": [
{
"field": "<string>",
"message": "<string>"
}
]
}
}{
"error": {
"type": "request",
"code": "<string>",
"message": "<string>",
"details": [
{
"field": "<string>",
"message": "<string>"
}
]
}
}{
"error": {
"type": "request",
"code": "<string>",
"message": "<string>",
"details": [
{
"field": "<string>",
"message": "<string>"
}
]
}
}{
"error": {
"type": "request",
"code": "<string>",
"message": "<string>",
"details": [
{
"field": "<string>",
"message": "<string>"
}
]
}
}{
"error": {
"type": "request",
"code": "<string>",
"message": "<string>",
"details": [
{
"field": "<string>",
"message": "<string>"
}
]
}
}Authorizations
Bearer authentication using the project Secret Key (prefixed with sk_, or test_sk_ for sandbox). All v4 public endpoints require the Secret Key — see Authentication. Never expose the Secret Key in client-side code.
Path Parameters
Remote configuration identifier.
Body
Full replacement of the payload values. Must be a JSON object. An empty
object {} clears the payload. Replaces the stored payload in full — to
change one key, read the current payload, modify it, and send the whole
object back. Limited to 64 KiB.
{ "button_color": "#FF0000", "max_items": 5 }
Response
Updated payload values
The payload values: the actual JSON object delivered to the SDK for this configuration. Distinct from the payload mapping, which is the key → type schema.
"remote_config_payload"
"/v4/remote-configurations/82a42dc2-76f6-46c2-b883-846acaf2070a/payload"
"82a42dc2-76f6-46c2-b883-846acaf2070a"
The JSON values served to the SDK. Always a JSON object — {} when
unset, never an array.
{ "button_color": "#FF0000", "max_items": 5 }