400
invalid_requestThe request did not satisfy the documented contract.
Beladed Embeds API
Update through the reviewed Beladed Embeds contract.
/api/vote/embed/updatecurl --request PUT 'https://api.beladed.dev/api/vote/embed/update' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header 'X-Beladed-API-Key: BELADED_SECRET_KEY' \
--data '{
"embedId": "id_demo_001",
"name": "Updated Website Audience Pulse",
"title": "Updated Website Audience Pulse",
"description": "Updated embed configuration.",
"domain": "example_domain",
"targetUrl": "https://merchant.example.invalid",
"selector": "#beladed-vote-widget-updated",
"placement": "floating",
"brandName": "Beladed",
"primaryColor": "#4F46E5",
"secondaryColor": "#0F172A",
"revShareEnabled": true,
"allowAnonymous": false,
"showBranding": true,
"status": "active",
"options": [
{
"id": "id_demo_001",
"text": "Absolutely",
"color": "#16A34A"
},
{
"id": "id_demo_001",
"text": "Not Yet",
"color": "#DC2626"
}
],
"config": {
"placement": "floating",
"selector": "#beladed-vote-widget-updated"
}
}'const response = await fetch("https://api.beladed.dev/api/vote/embed/update", {
method: "PUT",
headers: {
"Accept": "application/json",
"Content-Type": "application/json",
"X-Beladed-API-Key": "BELADED_SECRET_KEY"
},
body: JSON.stringify({
"embedId": "id_demo_001",
"name": "Updated Website Audience Pulse",
"title": "Updated Website Audience Pulse",
"description": "Updated embed configuration.",
"domain": "example_domain",
"targetUrl": "https://merchant.example.invalid",
"selector": "#beladed-vote-widget-updated",
"placement": "floating",
"brandName": "Beladed",
"primaryColor": "#4F46E5",
"secondaryColor": "#0F172A",
"revShareEnabled": true,
"allowAnonymous": false,
"showBranding": true,
"status": "active",
"options": [
{
"id": "id_demo_001",
"text": "Absolutely",
"color": "#16A34A"
},
{
"id": "id_demo_001",
"text": "Not Yet",
"color": "#DC2626"
}
],
"config": {
"placement": "floating",
"selector": "#beladed-vote-widget-updated"
}
})
});
const data = await response.json();import requests
response = requests.request(
"PUT",
"https://api.beladed.dev/api/vote/embed/update",
headers={"Accept":"application/json","Content-Type":"application/json","X-Beladed-API-Key":"BELADED_SECRET_KEY"},
json={
"embedId": "id_demo_001",
"name": "Updated Website Audience Pulse",
"title": "Updated Website Audience Pulse",
"description": "Updated embed configuration.",
"domain": "example_domain",
"targetUrl": "https://merchant.example.invalid",
"selector": "#beladed-vote-widget-updated",
"placement": "floating",
"brandName": "Beladed",
"primaryColor": "#4F46E5",
"secondaryColor": "#0F172A",
"revShareEnabled": true,
"allowAnonymous": false,
"showBranding": true,
"status": "active",
"options": [
{
"id": "id_demo_001",
"text": "Absolutely",
"color": "#16A34A"
},
{
"id": "id_demo_001",
"text": "Not Yet",
"color": "#DC2626"
}
],
"config": {
"placement": "floating",
"selector": "#beladed-vote-widget-updated"
}
},
timeout=30,
)
response.raise_for_status()
data = response.json()<?php
$client = curl_init("https://api.beladed.dev/api/vote/embed/update");
curl_setopt_array($client, [
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_HTTPHEADER => ["Accept: application/json","Content-Type: application/json","X-Beladed-API-Key: BELADED_SECRET_KEY"],
CURLOPT_RETURNTRANSFER => true,
CURLOPT_POSTFIELDS => json_encode({
"embedId": "id_demo_001",
"name": "Updated Website Audience Pulse",
"title": "Updated Website Audience Pulse",
"description": "Updated embed configuration.",
"domain": "example_domain",
"targetUrl": "https://merchant.example.invalid",
"selector": "#beladed-vote-widget-updated",
"placement": "floating",
"brandName": "Beladed",
"primaryColor": "#4F46E5",
"secondaryColor": "#0F172A",
"revShareEnabled": true,
"allowAnonymous": false,
"showBranding": true,
"status": "active",
"options": [
{
"id": "id_demo_001",
"text": "Absolutely",
"color": "#16A34A"
},
{
"id": "id_demo_001",
"text": "Not Yet",
"color": "#DC2626"
}
],
"config": {
"placement": "floating",
"selector": "#beladed-vote-widget-updated"
}
}),
]);
$response = curl_exec($client);require "net/http"
require "json"
uri = URI("https://api.beladed.dev/api/vote/embed/update")
request = Net::HTTP::Put.new(uri)
request["Accept"] = "application/json"
request["Content-Type"] = "application/json"
request["X-Beladed-API-Key"] = "BELADED_SECRET_KEY"
request.body = "{\n \"embedId\": \"id_demo_001\",\n \"name\": \"Updated Website Audience Pulse\",\n \"title\": \"Updated Website Audience Pulse\",\n \"description\": \"Updated embed configuration.\",\n \"domain\": \"example_domain\",\n \"targetUrl\": \"https://merchant.example.invalid\",\n \"selector\": \"#beladed-vote-widget-updated\",\n \"placement\": \"floating\",\n \"brandName\": \"Beladed\",\n \"primaryColor\": \"#4F46E5\",\n \"secondaryColor\": \"#0F172A\",\n \"revShareEnabled\": true,\n \"allowAnonymous\": false,\n \"showBranding\": true,\n \"status\": \"active\",\n \"options\": [\n {\n \"id\": \"id_demo_001\",\n \"text\": \"Absolutely\",\n \"color\": \"#16A34A\"\n },\n {\n \"id\": \"id_demo_001\",\n \"text\": \"Not Yet\",\n \"color\": \"#DC2626\"\n }\n ],\n \"config\": {\n \"placement\": \"floating\",\n \"selector\": \"#beladed-vote-widget-updated\"\n }\n}"
response = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) { |http| http.request(request) }var request = java.net.http.HttpRequest.newBuilder()
.uri(java.net.URI.create("https://api.beladed.dev/api/vote/embed/update"))
.header("Accept", "application/json")
.header("Content-Type", "application/json")
.header("X-Beladed-API-Key", "BELADED_SECRET_KEY")
.method("PUT", java.net.http.HttpRequest.BodyPublishers.ofString("{\n \"embedId\": \"id_demo_001\",\n \"name\": \"Updated Website Audience Pulse\",\n \"title\": \"Updated Website Audience Pulse\",\n \"description\": \"Updated embed configuration.\",\n \"domain\": \"example_domain\",\n \"targetUrl\": \"https://merchant.example.invalid\",\n \"selector\": \"#beladed-vote-widget-updated\",\n \"placement\": \"floating\",\n \"brandName\": \"Beladed\",\n \"primaryColor\": \"#4F46E5\",\n \"secondaryColor\": \"#0F172A\",\n \"revShareEnabled\": true,\n \"allowAnonymous\": false,\n \"showBranding\": true,\n \"status\": \"active\",\n \"options\": [\n {\n \"id\": \"id_demo_001\",\n \"text\": \"Absolutely\",\n \"color\": \"#16A34A\"\n },\n {\n \"id\": \"id_demo_001\",\n \"text\": \"Not Yet\",\n \"color\": \"#DC2626\"\n }\n ],\n \"config\": {\n \"placement\": \"floating\",\n \"selector\": \"#beladed-vote-widget-updated\"\n }\n}"))
.build();
var response = java.net.http.HttpClient.newHttpClient().send(request, java.net.http.HttpResponse.BodyHandlers.ofString());package main
import (
"bytes"
"net/http"
)
func callBeladed() (*http.Response, error) {
body := []byte("{\n \"embedId\": \"id_demo_001\",\n \"name\": \"Updated Website Audience Pulse\",\n \"title\": \"Updated Website Audience Pulse\",\n \"description\": \"Updated embed configuration.\",\n \"domain\": \"example_domain\",\n \"targetUrl\": \"https://merchant.example.invalid\",\n \"selector\": \"#beladed-vote-widget-updated\",\n \"placement\": \"floating\",\n \"brandName\": \"Beladed\",\n \"primaryColor\": \"#4F46E5\",\n \"secondaryColor\": \"#0F172A\",\n \"revShareEnabled\": true,\n \"allowAnonymous\": false,\n \"showBranding\": true,\n \"status\": \"active\",\n \"options\": [\n {\n \"id\": \"id_demo_001\",\n \"text\": \"Absolutely\",\n \"color\": \"#16A34A\"\n },\n {\n \"id\": \"id_demo_001\",\n \"text\": \"Not Yet\",\n \"color\": \"#DC2626\"\n }\n ],\n \"config\": {\n \"placement\": \"floating\",\n \"selector\": \"#beladed-vote-widget-updated\"\n }\n}")
request, err := http.NewRequest("PUT", "https://api.beladed.dev/api/vote/embed/update", bytes.NewReader(body))
if err != nil { return nil, err }
request.Header.Set("Accept", "application/json")
request.Header.Set("Content-Type", "application/json")
request.Header.Set("X-Beladed-API-Key", "BELADED_SECRET_KEY")
return http.DefaultClient.Do(request)
}using var client = new HttpClient();
using var request = new HttpRequestMessage(new HttpMethod("PUT"), "https://api.beladed.dev/api/vote/embed/update");
request.Headers.TryAddWithoutValidation("Accept", "application/json");
request.Headers.TryAddWithoutValidation("Content-Type", "application/json");
request.Headers.TryAddWithoutValidation("X-Beladed-API-Key", "BELADED_SECRET_KEY");
request.Content = new StringContent("{\n \"embedId\": \"id_demo_001\",\n \"name\": \"Updated Website Audience Pulse\",\n \"title\": \"Updated Website Audience Pulse\",\n \"description\": \"Updated embed configuration.\",\n \"domain\": \"example_domain\",\n \"targetUrl\": \"https://merchant.example.invalid\",\n \"selector\": \"#beladed-vote-widget-updated\",\n \"placement\": \"floating\",\n \"brandName\": \"Beladed\",\n \"primaryColor\": \"#4F46E5\",\n \"secondaryColor\": \"#0F172A\",\n \"revShareEnabled\": true,\n \"allowAnonymous\": false,\n \"showBranding\": true,\n \"status\": \"active\",\n \"options\": [\n {\n \"id\": \"id_demo_001\",\n \"text\": \"Absolutely\",\n \"color\": \"#16A34A\"\n },\n {\n \"id\": \"id_demo_001\",\n \"text\": \"Not Yet\",\n \"color\": \"#DC2626\"\n }\n ],\n \"config\": {\n \"placement\": \"floating\",\n \"selector\": \"#beladed-vote-widget-updated\"\n }\n}", System.Text.Encoding.UTF8, "application/json");
using var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();var request = URLRequest(url: URL(string: "https://api.beladed.dev/api/vote/embed/update")!)
request.httpMethod = "PUT"
request.setValue("application/json", forHTTPHeaderField: "Accept")
request.setValue("application/json", forHTTPHeaderField: "Content-Type")
request.setValue("BELADED_SECRET_KEY", forHTTPHeaderField: "X-Beladed-API-Key")
request.httpBody = "{\n \"embedId\": \"id_demo_001\",\n \"name\": \"Updated Website Audience Pulse\",\n \"title\": \"Updated Website Audience Pulse\",\n \"description\": \"Updated embed configuration.\",\n \"domain\": \"example_domain\",\n \"targetUrl\": \"https://merchant.example.invalid\",\n \"selector\": \"#beladed-vote-widget-updated\",\n \"placement\": \"floating\",\n \"brandName\": \"Beladed\",\n \"primaryColor\": \"#4F46E5\",\n \"secondaryColor\": \"#0F172A\",\n \"revShareEnabled\": true,\n \"allowAnonymous\": false,\n \"showBranding\": true,\n \"status\": \"active\",\n \"options\": [\n {\n \"id\": \"id_demo_001\",\n \"text\": \"Absolutely\",\n \"color\": \"#16A34A\"\n },\n {\n \"id\": \"id_demo_001\",\n \"text\": \"Not Yet\",\n \"color\": \"#DC2626\"\n }\n ],\n \"config\": {\n \"placement\": \"floating\",\n \"selector\": \"#beladed-vote-widget-updated\"\n }\n}".data(using: .utf8)
let (data, response) = try await URLSession.shared.data(for: request)val request = okhttp3.Request.Builder()
.url("https://api.beladed.dev/api/vote/embed/update")
.addHeader("Accept", "application/json")
.addHeader("Content-Type", "application/json")
.addHeader("X-Beladed-API-Key", "BELADED_SECRET_KEY")
.method("PUT", okhttp3.RequestBody.create(okhttp3.MediaType.get("application/json"), "{\n \"embedId\": \"id_demo_001\",\n \"name\": \"Updated Website Audience Pulse\",\n \"title\": \"Updated Website Audience Pulse\",\n \"description\": \"Updated embed configuration.\",\n \"domain\": \"example_domain\",\n \"targetUrl\": \"https://merchant.example.invalid\",\n \"selector\": \"#beladed-vote-widget-updated\",\n \"placement\": \"floating\",\n \"brandName\": \"Beladed\",\n \"primaryColor\": \"#4F46E5\",\n \"secondaryColor\": \"#0F172A\",\n \"revShareEnabled\": true,\n \"allowAnonymous\": false,\n \"showBranding\": true,\n \"status\": \"active\",\n \"options\": [\n {\n \"id\": \"id_demo_001\",\n \"text\": \"Absolutely\",\n \"color\": \"#16A34A\"\n },\n {\n \"id\": \"id_demo_001\",\n \"text\": \"Not Yet\",\n \"color\": \"#DC2626\"\n }\n ],\n \"config\": {\n \"placement\": \"floating\",\n \"selector\": \"#beladed-vote-widget-updated\"\n }\n}"))
.build()
val response = okhttp3.OkHttpClient().newCall(request).execute()
This operation has no documented parameters.
{
"type": "object",
"properties": {
"embedId": {
"type": "string"
},
"name": {
"type": "string"
},
"title": {
"type": "string"
},
"description": {
"type": "string"
},
"domain": {
"type": "string"
},
"targetUrl": {
"type": "string"
},
"selector": {
"type": "string"
},
"placement": {
"type": "string"
},
"brandName": {
"type": "string"
},
"primaryColor": {
"type": "string"
},
"secondaryColor": {
"type": "string"
},
"revShareEnabled": {
"type": "boolean"
},
"allowAnonymous": {
"type": "boolean"
},
"showBranding": {
"type": "boolean"
},
"status": {
"type": "string"
},
"options": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"text": {
"type": "string"
},
"color": {
"type": "string"
}
}
}
},
"config": {
"type": "object",
"properties": {
"placement": {
"type": "string"
},
"selector": {
"type": "string"
}
}
}
}
}{
"embedId": "id_demo_001",
"name": "Updated Website Audience Pulse",
"title": "Updated Website Audience Pulse",
"description": "Updated embed configuration.",
"domain": "example_domain",
"targetUrl": "https://merchant.example.invalid",
"selector": "#beladed-vote-widget-updated",
"placement": "floating",
"brandName": "Beladed",
"primaryColor": "#4F46E5",
"secondaryColor": "#0F172A",
"revShareEnabled": true,
"allowAnonymous": false,
"showBranding": true,
"status": "active",
"options": [
{
"id": "id_demo_001",
"text": "Absolutely",
"color": "#16A34A"
},
{
"id": "id_demo_001",
"text": "Not Yet",
"color": "#DC2626"
}
],
"config": {
"placement": "floating",
"selector": "#beladed-vote-widget-updated"
}
}
{
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"status": {
"type": "string"
}
}
},
"requestId": {
"type": "string"
}
}
}{
"data": {
"id": "id_demo_001",
"status": "available"
},
"requestId": "req_demo_001"
}
invalid_requestThe request did not satisfy the documented contract.
authentication_requiredThe credential is missing or invalid.
not_authorizedThe account, product scope, permission, or origin is not eligible.
not_foundThe requested public or account-owned resource was not found.
rate_limitedRetry after the current product limit resets.
This operation is published from reviewed repository contracts. Source metadata is included for traceability without exposing internal implementation details.