Skip to main content
POST
/
api
/
v1
/
manage
/
Create Silo
curl --request POST \
  --url https://api.jsonsilo.com/api/v1/manage/ \
  --header 'Content-Type: application/json' \
  --header 'X-MAN-API: <api-key>' \
  --data '
{
  "file_name": "<string>",
  "file_data": [
    "<unknown>"
  ],
  "region_name": "api",
  "is_public": false
}
'
import requests

url = "https://api.jsonsilo.com/api/v1/manage/"

payload = {
"file_name": "<string>",
"file_data": ["<unknown>"],
"region_name": "api",
"is_public": False
}
headers = {
"X-MAN-API": "<api-key>",
"Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
const options = {
method: 'POST',
headers: {'X-MAN-API': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
file_name: '<string>',
file_data: ['<unknown>'],
region_name: 'api',
is_public: false
})
};

fetch('https://api.jsonsilo.com/api/v1/manage/', 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.jsonsilo.com/api/v1/manage/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'file_name' => '<string>',
'file_data' => [
'<unknown>'
],
'region_name' => 'api',
'is_public' => false
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-MAN-API: <api-key>"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"strings"
"net/http"
"io"
)

func main() {

url := "https://api.jsonsilo.com/api/v1/manage/"

payload := strings.NewReader("{\n \"file_name\": \"<string>\",\n \"file_data\": [\n \"<unknown>\"\n ],\n \"region_name\": \"api\",\n \"is_public\": false\n}")

req, _ := http.NewRequest("POST", url, payload)

req.Header.Add("X-MAN-API", "<api-key>")
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.post("https://api.jsonsilo.com/api/v1/manage/")
.header("X-MAN-API", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"file_name\": \"<string>\",\n \"file_data\": [\n \"<unknown>\"\n ],\n \"region_name\": \"api\",\n \"is_public\": false\n}")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.jsonsilo.com/api/v1/manage/")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["X-MAN-API"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"file_name\": \"<string>\",\n \"file_data\": [\n \"<unknown>\"\n ],\n \"region_name\": \"api\",\n \"is_public\": false\n}"

response = http.request(request)
puts response.read_body
{
  "file_uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "is_public": false,
  "file_name": "new db",
  "region_name": "api"
}
{
"detail": "<string>"
}
{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}

Authorizations

X-MAN-API
string
header
required

The JSONSilo Manage API Key

Body

application/json
file_name
string

Choose a name for your silo that is easy to remember and understand. Rest assured, the silo name will not affect development or any sensitive aspects.

file_data

The data you want to store in the silo. It can be a JSON object or an array of objects.

region_name
enum<string>
default:api

Choose the region where you want to store your data. The default region is api.

Available options:
api,
sg-01-api,
usc-01-api
is_public
boolean
default:false

Silo access mode. If true, the silo is public; if false, the silo is private.

Response

Successful Response

file_uuid
string<uuid>

The Silo UUID, comprising 32 hexadecimal digits separated by 4 hyphens, totaling 36 characters.

is_public
boolean

Silo access mode. If true, the silo is public; if false, the silo is private.

Example:

false

file_name
string

Silo name. The silo name will not affect development or any sensitive aspects.

Example:

"new db"

region_name
string

The region where your data will be stored.

Example:

"api"