Change a vault item: label, login URL, linked profiles, or a new password or TOTP secret
curl --request PATCH \
--url https://api.styne.ai/vault/items/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"label": "<string>",
"login_url": "<string>",
"profiles": [
"<string>"
],
"fields": {
"username": "<string>",
"password": "<string>",
"totp_secret": "<string>"
},
"totp": {}
}
'import requests
url = "https://api.styne.ai/vault/items/{id}"
payload = {
"label": "<string>",
"login_url": "<string>",
"profiles": ["<string>"],
"fields": {
"username": "<string>",
"password": "<string>",
"totp_secret": "<string>"
},
"totp": {}
}
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({
label: '<string>',
login_url: '<string>',
profiles: ['<string>'],
fields: {username: '<string>', password: '<string>', totp_secret: '<string>'},
totp: {}
})
};
fetch('https://api.styne.ai/vault/items/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"code": 123,
"message": "<string>",
"error_code": "<string>",
"origin": "<string>",
"request_id": "<string>"
}Change a vault item: label, login URL, linked profiles, or a new password or TOTP secret
PATCH
/
vault
/
items
/
{id}
Change a vault item: label, login URL, linked profiles, or a new password or TOTP secret
curl --request PATCH \
--url https://api.styne.ai/vault/items/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"label": "<string>",
"login_url": "<string>",
"profiles": [
"<string>"
],
"fields": {
"username": "<string>",
"password": "<string>",
"totp_secret": "<string>"
},
"totp": {}
}
'import requests
url = "https://api.styne.ai/vault/items/{id}"
payload = {
"label": "<string>",
"login_url": "<string>",
"profiles": ["<string>"],
"fields": {
"username": "<string>",
"password": "<string>",
"totp_secret": "<string>"
},
"totp": {}
}
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({
label: '<string>',
login_url: '<string>',
profiles: ['<string>'],
fields: {username: '<string>', password: '<string>', totp_secret: '<string>'},
totp: {}
})
};
fetch('https://api.styne.ai/vault/items/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"code": 123,
"message": "<string>",
"error_code": "<string>",
"origin": "<string>",
"request_id": "<string>"
}Authorizations
Body
application/json
Change a vault item. Every field is optional; hosts cannot change.
Response
Success. The answer is described on https://docs.styne.ai/vault.