curl --request POST \
--url https://api.murmur.dev/v1/catalog/{ref.kind}/{ref.name} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"ref": {
"tenant": {
"provider": "PROVIDER_UNSPECIFIED",
"org": "<string>"
}
},
"payload": "aSDinaTvuI8gbWludGxpZnk=",
"updateMask": "<string>",
"justification": "<string>",
"ifGenerationMatch": "<string>"
}
'import requests
url = "https://api.murmur.dev/v1/catalog/{ref.kind}/{ref.name}"
payload = {
"ref": { "tenant": {
"provider": "PROVIDER_UNSPECIFIED",
"org": "<string>"
} },
"payload": "aSDinaTvuI8gbWludGxpZnk=",
"updateMask": "<string>",
"justification": "<string>",
"ifGenerationMatch": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
ref: {tenant: {provider: 'PROVIDER_UNSPECIFIED', org: '<string>'}},
payload: 'aSDinaTvuI8gbWludGxpZnk=',
updateMask: '<string>',
justification: '<string>',
ifGenerationMatch: '<string>'
})
};
fetch('https://api.murmur.dev/v1/catalog/{ref.kind}/{ref.name}', 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.murmur.dev/v1/catalog/{ref.kind}/{ref.name}",
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([
'ref' => [
'tenant' => [
'provider' => 'PROVIDER_UNSPECIFIED',
'org' => '<string>'
]
],
'payload' => 'aSDinaTvuI8gbWludGxpZnk=',
'updateMask' => '<string>',
'justification' => '<string>',
'ifGenerationMatch' => '<string>'
]),
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;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.murmur.dev/v1/catalog/{ref.kind}/{ref.name}"
payload := strings.NewReader("{\n \"ref\": {\n \"tenant\": {\n \"provider\": \"PROVIDER_UNSPECIFIED\",\n \"org\": \"<string>\"\n }\n },\n \"payload\": \"aSDinaTvuI8gbWludGxpZnk=\",\n \"updateMask\": \"<string>\",\n \"justification\": \"<string>\",\n \"ifGenerationMatch\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", 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.post("https://api.murmur.dev/v1/catalog/{ref.kind}/{ref.name}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"ref\": {\n \"tenant\": {\n \"provider\": \"PROVIDER_UNSPECIFIED\",\n \"org\": \"<string>\"\n }\n },\n \"payload\": \"aSDinaTvuI8gbWludGxpZnk=\",\n \"updateMask\": \"<string>\",\n \"justification\": \"<string>\",\n \"ifGenerationMatch\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.murmur.dev/v1/catalog/{ref.kind}/{ref.name}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"ref\": {\n \"tenant\": {\n \"provider\": \"PROVIDER_UNSPECIFIED\",\n \"org\": \"<string>\"\n }\n },\n \"payload\": \"aSDinaTvuI8gbWludGxpZnk=\",\n \"updateMask\": \"<string>\",\n \"justification\": \"<string>\",\n \"ifGenerationMatch\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"payload": "aSDinaTvuI8gbWludGxpZnk=",
"generation": "<string>"
}{
"code": 123,
"message": "<string>",
"details": [
{
"@type": "<string>"
}
]
}Write a catalog resource
SetResource creates or updates a catalog resource.
curl --request POST \
--url https://api.murmur.dev/v1/catalog/{ref.kind}/{ref.name} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"ref": {
"tenant": {
"provider": "PROVIDER_UNSPECIFIED",
"org": "<string>"
}
},
"payload": "aSDinaTvuI8gbWludGxpZnk=",
"updateMask": "<string>",
"justification": "<string>",
"ifGenerationMatch": "<string>"
}
'import requests
url = "https://api.murmur.dev/v1/catalog/{ref.kind}/{ref.name}"
payload = {
"ref": { "tenant": {
"provider": "PROVIDER_UNSPECIFIED",
"org": "<string>"
} },
"payload": "aSDinaTvuI8gbWludGxpZnk=",
"updateMask": "<string>",
"justification": "<string>",
"ifGenerationMatch": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
ref: {tenant: {provider: 'PROVIDER_UNSPECIFIED', org: '<string>'}},
payload: 'aSDinaTvuI8gbWludGxpZnk=',
updateMask: '<string>',
justification: '<string>',
ifGenerationMatch: '<string>'
})
};
fetch('https://api.murmur.dev/v1/catalog/{ref.kind}/{ref.name}', 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.murmur.dev/v1/catalog/{ref.kind}/{ref.name}",
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([
'ref' => [
'tenant' => [
'provider' => 'PROVIDER_UNSPECIFIED',
'org' => '<string>'
]
],
'payload' => 'aSDinaTvuI8gbWludGxpZnk=',
'updateMask' => '<string>',
'justification' => '<string>',
'ifGenerationMatch' => '<string>'
]),
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;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.murmur.dev/v1/catalog/{ref.kind}/{ref.name}"
payload := strings.NewReader("{\n \"ref\": {\n \"tenant\": {\n \"provider\": \"PROVIDER_UNSPECIFIED\",\n \"org\": \"<string>\"\n }\n },\n \"payload\": \"aSDinaTvuI8gbWludGxpZnk=\",\n \"updateMask\": \"<string>\",\n \"justification\": \"<string>\",\n \"ifGenerationMatch\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", 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.post("https://api.murmur.dev/v1/catalog/{ref.kind}/{ref.name}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"ref\": {\n \"tenant\": {\n \"provider\": \"PROVIDER_UNSPECIFIED\",\n \"org\": \"<string>\"\n }\n },\n \"payload\": \"aSDinaTvuI8gbWludGxpZnk=\",\n \"updateMask\": \"<string>\",\n \"justification\": \"<string>\",\n \"ifGenerationMatch\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.murmur.dev/v1/catalog/{ref.kind}/{ref.name}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"ref\": {\n \"tenant\": {\n \"provider\": \"PROVIDER_UNSPECIFIED\",\n \"org\": \"<string>\"\n }\n },\n \"payload\": \"aSDinaTvuI8gbWludGxpZnk=\",\n \"updateMask\": \"<string>\",\n \"justification\": \"<string>\",\n \"ifGenerationMatch\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"payload": "aSDinaTvuI8gbWludGxpZnk=",
"generation": "<string>"
}{
"code": 123,
"message": "<string>",
"details": [
{
"@type": "<string>"
}
]
}Authorizations
murmur API key: mur_<key_id>.
Path Parameters
e.g. "vm-profile", "environment", "pool-config"
resource name within the kind (required)
Body
ResourceRef identifies a catalog resource by kind and name.
Show child attributes
Show child attributes
The resource document as base64-encoded JSON.
When empty, the write is a full replace: the payload is the complete resource and overwrites whatever exists. When non-empty, the write is a patch: only the named fields are applied onto the existing resource — fields not in the mask are preserved, fields in the mask are taken from the payload even when zero-valued.
Reason for the write, recorded in the audit log. Required for platform-operator writes; optional otherwise.
Optional write precondition. When unset, the write is unconditional (last writer wins). When set, the write commits only if the resource's current generation equals this value; 0 means the resource must not exist (atomic create). On mismatch the request fails with FAILED_PRECONDITION and nothing is written. Must be >= 0. Obtain the generation from GetResourceResponse.generation.
Response
A successful response.
The stored resource document as base64-encoded JSON, as persisted after the write — including server-populated fields. For kinds that generate a one-time secret (the key of a newly created token or share link, or an integration's webhook signing key), the document additionally carries the raw secret, which is never stored — this response is the only place it is readable; record it now.
Version generation produced by the write, so the caller can chain conditional writes without an interleaved read. 0 only where no versioned object was written.