400
invalid_requestThe request did not satisfy the documented contract.
Beladed Vendors API
Update through the reviewed Beladed Vendors contract.
/api/vendor/general/updatecurl --request PUT 'https://api.beladed.dev/api/vendor/general/update' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header 'X-Beladed-API-Key: BELADED_SECRET_KEY' \
--data '{
"vendorId": "id_demo_001",
"contactName": "John Doe",
"phoneNumber": "tel_demo_contact",
"contactEmail": "developer@example.invalid",
"eventCategory": "conference",
"tags": [
"tech",
"startup"
],
"profileImage": "https://merchant.example.invalid/assets/example.png",
"description": "Leading tech company specializing in AI solutions",
"businessClass": "premium",
"minGuestSize": 100,
"maxGuestSize": 500,
"eventStartDate": "2024-10-15",
"targetLocations": {
"cities": [
"New York",
"San Francisco"
],
"countries": [
"USA"
]
},
"bgImage": "https://merchant.example.invalid/assets/example.png"
}'const response = await fetch("https://api.beladed.dev/api/vendor/general/update", {
method: "PUT",
headers: {
"Accept": "application/json",
"Content-Type": "application/json",
"X-Beladed-API-Key": "BELADED_SECRET_KEY"
},
body: JSON.stringify({
"vendorId": "id_demo_001",
"contactName": "John Doe",
"phoneNumber": "tel_demo_contact",
"contactEmail": "developer@example.invalid",
"eventCategory": "conference",
"tags": [
"tech",
"startup"
],
"profileImage": "https://merchant.example.invalid/assets/example.png",
"description": "Leading tech company specializing in AI solutions",
"businessClass": "premium",
"minGuestSize": 100,
"maxGuestSize": 500,
"eventStartDate": "2024-10-15",
"targetLocations": {
"cities": [
"New York",
"San Francisco"
],
"countries": [
"USA"
]
},
"bgImage": "https://merchant.example.invalid/assets/example.png"
})
});
const data = await response.json();import requests
response = requests.request(
"PUT",
"https://api.beladed.dev/api/vendor/general/update",
headers={"Accept":"application/json","Content-Type":"application/json","X-Beladed-API-Key":"BELADED_SECRET_KEY"},
json={
"vendorId": "id_demo_001",
"contactName": "John Doe",
"phoneNumber": "tel_demo_contact",
"contactEmail": "developer@example.invalid",
"eventCategory": "conference",
"tags": [
"tech",
"startup"
],
"profileImage": "https://merchant.example.invalid/assets/example.png",
"description": "Leading tech company specializing in AI solutions",
"businessClass": "premium",
"minGuestSize": 100,
"maxGuestSize": 500,
"eventStartDate": "2024-10-15",
"targetLocations": {
"cities": [
"New York",
"San Francisco"
],
"countries": [
"USA"
]
},
"bgImage": "https://merchant.example.invalid/assets/example.png"
},
timeout=30,
)
response.raise_for_status()
data = response.json()<?php
$client = curl_init("https://api.beladed.dev/api/vendor/general/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({
"vendorId": "id_demo_001",
"contactName": "John Doe",
"phoneNumber": "tel_demo_contact",
"contactEmail": "developer@example.invalid",
"eventCategory": "conference",
"tags": [
"tech",
"startup"
],
"profileImage": "https://merchant.example.invalid/assets/example.png",
"description": "Leading tech company specializing in AI solutions",
"businessClass": "premium",
"minGuestSize": 100,
"maxGuestSize": 500,
"eventStartDate": "2024-10-15",
"targetLocations": {
"cities": [
"New York",
"San Francisco"
],
"countries": [
"USA"
]
},
"bgImage": "https://merchant.example.invalid/assets/example.png"
}),
]);
$response = curl_exec($client);require "net/http"
require "json"
uri = URI("https://api.beladed.dev/api/vendor/general/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 \"vendorId\": \"id_demo_001\",\n \"contactName\": \"John Doe\",\n \"phoneNumber\": \"tel_demo_contact\",\n \"contactEmail\": \"developer@example.invalid\",\n \"eventCategory\": \"conference\",\n \"tags\": [\n \"tech\",\n \"startup\"\n ],\n \"profileImage\": \"https://merchant.example.invalid/assets/example.png\",\n \"description\": \"Leading tech company specializing in AI solutions\",\n \"businessClass\": \"premium\",\n \"minGuestSize\": 100,\n \"maxGuestSize\": 500,\n \"eventStartDate\": \"2024-10-15\",\n \"targetLocations\": {\n \"cities\": [\n \"New York\",\n \"San Francisco\"\n ],\n \"countries\": [\n \"USA\"\n ]\n },\n \"bgImage\": \"https://merchant.example.invalid/assets/example.png\"\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/vendor/general/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 \"vendorId\": \"id_demo_001\",\n \"contactName\": \"John Doe\",\n \"phoneNumber\": \"tel_demo_contact\",\n \"contactEmail\": \"developer@example.invalid\",\n \"eventCategory\": \"conference\",\n \"tags\": [\n \"tech\",\n \"startup\"\n ],\n \"profileImage\": \"https://merchant.example.invalid/assets/example.png\",\n \"description\": \"Leading tech company specializing in AI solutions\",\n \"businessClass\": \"premium\",\n \"minGuestSize\": 100,\n \"maxGuestSize\": 500,\n \"eventStartDate\": \"2024-10-15\",\n \"targetLocations\": {\n \"cities\": [\n \"New York\",\n \"San Francisco\"\n ],\n \"countries\": [\n \"USA\"\n ]\n },\n \"bgImage\": \"https://merchant.example.invalid/assets/example.png\"\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 \"vendorId\": \"id_demo_001\",\n \"contactName\": \"John Doe\",\n \"phoneNumber\": \"tel_demo_contact\",\n \"contactEmail\": \"developer@example.invalid\",\n \"eventCategory\": \"conference\",\n \"tags\": [\n \"tech\",\n \"startup\"\n ],\n \"profileImage\": \"https://merchant.example.invalid/assets/example.png\",\n \"description\": \"Leading tech company specializing in AI solutions\",\n \"businessClass\": \"premium\",\n \"minGuestSize\": 100,\n \"maxGuestSize\": 500,\n \"eventStartDate\": \"2024-10-15\",\n \"targetLocations\": {\n \"cities\": [\n \"New York\",\n \"San Francisco\"\n ],\n \"countries\": [\n \"USA\"\n ]\n },\n \"bgImage\": \"https://merchant.example.invalid/assets/example.png\"\n}")
request, err := http.NewRequest("PUT", "https://api.beladed.dev/api/vendor/general/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/vendor/general/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 \"vendorId\": \"id_demo_001\",\n \"contactName\": \"John Doe\",\n \"phoneNumber\": \"tel_demo_contact\",\n \"contactEmail\": \"developer@example.invalid\",\n \"eventCategory\": \"conference\",\n \"tags\": [\n \"tech\",\n \"startup\"\n ],\n \"profileImage\": \"https://merchant.example.invalid/assets/example.png\",\n \"description\": \"Leading tech company specializing in AI solutions\",\n \"businessClass\": \"premium\",\n \"minGuestSize\": 100,\n \"maxGuestSize\": 500,\n \"eventStartDate\": \"2024-10-15\",\n \"targetLocations\": {\n \"cities\": [\n \"New York\",\n \"San Francisco\"\n ],\n \"countries\": [\n \"USA\"\n ]\n },\n \"bgImage\": \"https://merchant.example.invalid/assets/example.png\"\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/vendor/general/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 \"vendorId\": \"id_demo_001\",\n \"contactName\": \"John Doe\",\n \"phoneNumber\": \"tel_demo_contact\",\n \"contactEmail\": \"developer@example.invalid\",\n \"eventCategory\": \"conference\",\n \"tags\": [\n \"tech\",\n \"startup\"\n ],\n \"profileImage\": \"https://merchant.example.invalid/assets/example.png\",\n \"description\": \"Leading tech company specializing in AI solutions\",\n \"businessClass\": \"premium\",\n \"minGuestSize\": 100,\n \"maxGuestSize\": 500,\n \"eventStartDate\": \"2024-10-15\",\n \"targetLocations\": {\n \"cities\": [\n \"New York\",\n \"San Francisco\"\n ],\n \"countries\": [\n \"USA\"\n ]\n },\n \"bgImage\": \"https://merchant.example.invalid/assets/example.png\"\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/vendor/general/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 \"vendorId\": \"id_demo_001\",\n \"contactName\": \"John Doe\",\n \"phoneNumber\": \"tel_demo_contact\",\n \"contactEmail\": \"developer@example.invalid\",\n \"eventCategory\": \"conference\",\n \"tags\": [\n \"tech\",\n \"startup\"\n ],\n \"profileImage\": \"https://merchant.example.invalid/assets/example.png\",\n \"description\": \"Leading tech company specializing in AI solutions\",\n \"businessClass\": \"premium\",\n \"minGuestSize\": 100,\n \"maxGuestSize\": 500,\n \"eventStartDate\": \"2024-10-15\",\n \"targetLocations\": {\n \"cities\": [\n \"New York\",\n \"San Francisco\"\n ],\n \"countries\": [\n \"USA\"\n ]\n },\n \"bgImage\": \"https://merchant.example.invalid/assets/example.png\"\n}"))
.build()
val response = okhttp3.OkHttpClient().newCall(request).execute()
This operation has no documented parameters.
{
"type": "object",
"properties": {
"vendorId": {
"type": "string"
},
"contactName": {
"type": "string"
},
"phoneNumber": {
"type": "string"
},
"contactEmail": {
"type": "string"
},
"eventCategory": {
"type": "string"
},
"tags": {
"type": "array",
"items": {
"type": "string"
}
},
"profileImage": {
"type": "string"
},
"description": {
"type": "string"
},
"businessClass": {
"type": "string"
},
"minGuestSize": {
"type": "integer"
},
"maxGuestSize": {
"type": "integer"
},
"eventStartDate": {
"type": "string"
},
"targetLocations": {
"type": "object",
"properties": {
"cities": {
"type": "array",
"items": {
"type": "string"
}
},
"countries": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"bgImage": {
"type": "string"
}
}
}{
"vendorId": "id_demo_001",
"contactName": "John Doe",
"phoneNumber": "tel_demo_contact",
"contactEmail": "developer@example.invalid",
"eventCategory": "conference",
"tags": [
"tech",
"startup"
],
"profileImage": "https://merchant.example.invalid/assets/example.png",
"description": "Leading tech company specializing in AI solutions",
"businessClass": "premium",
"minGuestSize": 100,
"maxGuestSize": 500,
"eventStartDate": "2024-10-15",
"targetLocations": {
"cities": [
"New York",
"San Francisco"
],
"countries": [
"USA"
]
},
"bgImage": "https://merchant.example.invalid/assets/example.png"
}
{
"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.