volumes
Write content to a specified volume key
Write content to a specified volume key
PUT
/
remotefs
/
v1
/
volumes
/
{id}
/
keys
/
{key}
Write content to a specified volume key
curl --request PUT \
--url https://mycluster.domino.tech/remotefs/v1/volumes/{id}/keys/{key} \
--header 'Content-Type: application/octet-stream' \
--data '"<string>"'import requests
url = "https://mycluster.domino.tech/remotefs/v1/volumes/{id}/keys/{key}"
payload = "<string>"
headers = {"Content-Type": "application/octet-stream"}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'Content-Type': 'application/octet-stream'},
body: JSON.stringify('<string>')
};
fetch('https://mycluster.domino.tech/remotefs/v1/volumes/{id}/keys/{key}', 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://mycluster.domino.tech/remotefs/v1/volumes/{id}/keys/{key}",
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('<string>'),
CURLOPT_HTTPHEADER => [
"Content-Type: application/octet-stream"
],
]);
$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://mycluster.domino.tech/remotefs/v1/volumes/{id}/keys/{key}"
payload := strings.NewReader("\"<string>\"")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Content-Type", "application/octet-stream")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://mycluster.domino.tech/remotefs/v1/volumes/{id}/keys/{key}")
.header("Content-Type", "application/octet-stream")
.body("\"<string>\"")
.asString();require 'uri'
require 'net/http'
url = URI("https://mycluster.domino.tech/remotefs/v1/volumes/{id}/keys/{key}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Content-Type"] = 'application/octet-stream'
request.body = "\"<string>\""
response = http.request(request)
puts response.read_body{
"message": "Bad Request",
"success": false
}{
"message": "Bad Request",
"success": false
}{
"message": "Bad Request",
"success": false
}Last modified on August 18, 2026
Related topics
Get volume file metadata content at specified pathGet volume snapshot file metadata content at specified pathGet non-directory volume file raw content at specified pathRetrieves the content of a key in a volumeWas this page helpful?
⌘I
Write content to a specified volume key
curl --request PUT \
--url https://mycluster.domino.tech/remotefs/v1/volumes/{id}/keys/{key} \
--header 'Content-Type: application/octet-stream' \
--data '"<string>"'import requests
url = "https://mycluster.domino.tech/remotefs/v1/volumes/{id}/keys/{key}"
payload = "<string>"
headers = {"Content-Type": "application/octet-stream"}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'Content-Type': 'application/octet-stream'},
body: JSON.stringify('<string>')
};
fetch('https://mycluster.domino.tech/remotefs/v1/volumes/{id}/keys/{key}', 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://mycluster.domino.tech/remotefs/v1/volumes/{id}/keys/{key}",
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('<string>'),
CURLOPT_HTTPHEADER => [
"Content-Type: application/octet-stream"
],
]);
$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://mycluster.domino.tech/remotefs/v1/volumes/{id}/keys/{key}"
payload := strings.NewReader("\"<string>\"")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Content-Type", "application/octet-stream")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://mycluster.domino.tech/remotefs/v1/volumes/{id}/keys/{key}")
.header("Content-Type", "application/octet-stream")
.body("\"<string>\"")
.asString();require 'uri'
require 'net/http'
url = URI("https://mycluster.domino.tech/remotefs/v1/volumes/{id}/keys/{key}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Content-Type"] = 'application/octet-stream'
request.body = "\"<string>\""
response = http.request(request)
puts response.read_body{
"message": "Bad Request",
"success": false
}{
"message": "Bad Request",
"success": false
}{
"message": "Bad Request",
"success": false
}