Update the metadata of a wallet item
curl --request PATCH \
--url https://api.kombify.io/v1/homelab/api/v1/wallet/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"username": "<string>",
"url": "<string>",
"notes": "<string>",
"stack_id": "<string>",
"service_id": "<string>",
"expires_at": "2023-11-07T05:31:56Z",
"source_type": "<string>",
"source_ref": "<string>"
}
'import requests
url = "https://api.kombify.io/v1/homelab/api/v1/wallet/{id}"
payload = {
"name": "<string>",
"username": "<string>",
"url": "<string>",
"notes": "<string>",
"stack_id": "<string>",
"service_id": "<string>",
"expires_at": "2023-11-07T05:31:56Z",
"source_type": "<string>",
"source_ref": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
username: '<string>',
url: '<string>',
notes: '<string>',
stack_id: '<string>',
service_id: '<string>',
expires_at: '2023-11-07T05:31:56Z',
source_type: '<string>',
source_ref: '<string>'
})
};
fetch('https://api.kombify.io/v1/homelab/api/v1/wallet/{id}', 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.kombify.io/v1/homelab/api/v1/wallet/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'name' => '<string>',
'username' => '<string>',
'url' => '<string>',
'notes' => '<string>',
'stack_id' => '<string>',
'service_id' => '<string>',
'expires_at' => '2023-11-07T05:31:56Z',
'source_type' => '<string>',
'source_ref' => '<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.kombify.io/v1/homelab/api/v1/wallet/{id}"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"username\": \"<string>\",\n \"url\": \"<string>\",\n \"notes\": \"<string>\",\n \"stack_id\": \"<string>\",\n \"service_id\": \"<string>\",\n \"expires_at\": \"2023-11-07T05:31:56Z\",\n \"source_type\": \"<string>\",\n \"source_ref\": \"<string>\"\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://api.kombify.io/v1/homelab/api/v1/wallet/{id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"username\": \"<string>\",\n \"url\": \"<string>\",\n \"notes\": \"<string>\",\n \"stack_id\": \"<string>\",\n \"service_id\": \"<string>\",\n \"expires_at\": \"2023-11-07T05:31:56Z\",\n \"source_type\": \"<string>\",\n \"source_ref\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.kombify.io/v1/homelab/api/v1/wallet/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"username\": \"<string>\",\n \"url\": \"<string>\",\n \"notes\": \"<string>\",\n \"stack_id\": \"<string>\",\n \"service_id\": \"<string>\",\n \"expires_at\": \"2023-11-07T05:31:56Z\",\n \"source_type\": \"<string>\",\n \"source_ref\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": "<string>",
"kind": "<string>",
"stack_id": "<string>",
"source_type": "<string>",
"source_ref": "<string>",
"has_secret": true,
"has_totp": true,
"item_class": "<string>",
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z"
},
"meta": {
"total": 123,
"page": 123,
"per_page": 123,
"managed_runtime_inventory_complete": true,
"worker_inventory_sha256": "<string>",
"managed_runtime_active_lease_ids": [
"<string>"
],
"managed_runtime_inactive_lease_ids": [
"<string>"
],
"managed_runtime_lease_generation_digests": [
{
"lease_id": "<string>",
"resource_generation_digest": "<string>"
}
],
"managed_runtime_duplicate_lease_ids": [
"<string>"
],
"managed_runtime_attachment_conflict_lease_ids": [
"<string>"
]
}
}{
"error": {
"code": "INTERNAL_ERROR",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "INTERNAL_ERROR",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "INTERNAL_ERROR",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "INTERNAL_ERROR",
"message": "<string>",
"details": "<unknown>"
}
}Wallet
Update the metadata of a wallet item
Merges the supplied fields into an item the caller owns and returns it redacted. Fields that are not supplied keep their value, including the stored secret and TOTP, which this contract can neither read nor change: the person sets those in the Wallet. The item kind and owner are immutable. An item owned by someone else answers 404. Only deployments that keep credentials in Homelab’s own Wallet serve this route; elsewhere it answers 409 self_hosted_only.
PATCH
/
api
/
v1
/
wallet
/
{id}
Update the metadata of a wallet item
curl --request PATCH \
--url https://api.kombify.io/v1/homelab/api/v1/wallet/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"username": "<string>",
"url": "<string>",
"notes": "<string>",
"stack_id": "<string>",
"service_id": "<string>",
"expires_at": "2023-11-07T05:31:56Z",
"source_type": "<string>",
"source_ref": "<string>"
}
'import requests
url = "https://api.kombify.io/v1/homelab/api/v1/wallet/{id}"
payload = {
"name": "<string>",
"username": "<string>",
"url": "<string>",
"notes": "<string>",
"stack_id": "<string>",
"service_id": "<string>",
"expires_at": "2023-11-07T05:31:56Z",
"source_type": "<string>",
"source_ref": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
username: '<string>',
url: '<string>',
notes: '<string>',
stack_id: '<string>',
service_id: '<string>',
expires_at: '2023-11-07T05:31:56Z',
source_type: '<string>',
source_ref: '<string>'
})
};
fetch('https://api.kombify.io/v1/homelab/api/v1/wallet/{id}', 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.kombify.io/v1/homelab/api/v1/wallet/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'name' => '<string>',
'username' => '<string>',
'url' => '<string>',
'notes' => '<string>',
'stack_id' => '<string>',
'service_id' => '<string>',
'expires_at' => '2023-11-07T05:31:56Z',
'source_type' => '<string>',
'source_ref' => '<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.kombify.io/v1/homelab/api/v1/wallet/{id}"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"username\": \"<string>\",\n \"url\": \"<string>\",\n \"notes\": \"<string>\",\n \"stack_id\": \"<string>\",\n \"service_id\": \"<string>\",\n \"expires_at\": \"2023-11-07T05:31:56Z\",\n \"source_type\": \"<string>\",\n \"source_ref\": \"<string>\"\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://api.kombify.io/v1/homelab/api/v1/wallet/{id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"username\": \"<string>\",\n \"url\": \"<string>\",\n \"notes\": \"<string>\",\n \"stack_id\": \"<string>\",\n \"service_id\": \"<string>\",\n \"expires_at\": \"2023-11-07T05:31:56Z\",\n \"source_type\": \"<string>\",\n \"source_ref\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.kombify.io/v1/homelab/api/v1/wallet/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"username\": \"<string>\",\n \"url\": \"<string>\",\n \"notes\": \"<string>\",\n \"stack_id\": \"<string>\",\n \"service_id\": \"<string>\",\n \"expires_at\": \"2023-11-07T05:31:56Z\",\n \"source_type\": \"<string>\",\n \"source_ref\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": "<string>",
"kind": "<string>",
"stack_id": "<string>",
"source_type": "<string>",
"source_ref": "<string>",
"has_secret": true,
"has_totp": true,
"item_class": "<string>",
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z"
},
"meta": {
"total": 123,
"page": 123,
"per_page": 123,
"managed_runtime_inventory_complete": true,
"worker_inventory_sha256": "<string>",
"managed_runtime_active_lease_ids": [
"<string>"
],
"managed_runtime_inactive_lease_ids": [
"<string>"
],
"managed_runtime_lease_generation_digests": [
{
"lease_id": "<string>",
"resource_generation_digest": "<string>"
}
],
"managed_runtime_duplicate_lease_ids": [
"<string>"
],
"managed_runtime_attachment_conflict_lease_ids": [
"<string>"
]
}
}{
"error": {
"code": "INTERNAL_ERROR",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "INTERNAL_ERROR",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "INTERNAL_ERROR",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "INTERNAL_ERROR",
"message": "<string>",
"details": "<unknown>"
}
}Autorisierungen
Body
application/json
