Update an Item
curl --request PUT \
--url http://localhost:8080/v1/vaults/{vaultUuid}/items/{itemUuid} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"vault": {
"id": "<string>"
},
"id": "<string>",
"title": "<string>",
"urls": [
{
"primary": true,
"href": "https://example.com"
},
{
"href": "https://example.org"
}
],
"favorite": false,
"tags": [
"<string>"
],
"version": 123,
"sections": [
{
"id": "<string>",
"label": "<string>"
}
],
"fields": [
{
"id": "<string>",
"type": "STRING",
"section": {
"id": "<string>"
},
"label": "<string>",
"value": "<string>",
"generate": false,
"recipe": {
"length": 32,
"characterSets": [],
"excludeCharacters": "abc1"
}
}
],
"files": [
{
"id": "6r65pjq33banznomn7q22sj44e",
"name": "foo.txt",
"size": 35,
"content_path": "v1/vaults/ionaiwtdvgclrixbt6ztpqcxnq/items/p7eflcy7f5mk7vg6zrzf5rjjyu/files/6r65pjq33banznomn7q22sj44e/content",
"content": "VGhlIGZ1dHVyZSBiZWxvbmdzIHRvIHRoZSBjdXJpb3VzLgo="
}
]
}
'{
"vault": {
"id": "<string>"
},
"id": "<string>",
"title": "<string>",
"urls": [
{
"primary": true,
"href": "https://example.com"
},
{
"href": "https://example.org"
}
],
"favorite": false,
"tags": [
"<string>"
],
"version": 123,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"lastEditedBy": "<string>",
"sections": [
{
"id": "<string>",
"label": "<string>"
}
],
"fields": [
{
"id": "<string>",
"type": "STRING",
"section": {
"id": "<string>"
},
"label": "<string>",
"value": "<string>",
"generate": false,
"recipe": {
"length": 32,
"characterSets": [],
"excludeCharacters": "abc1"
},
"entropy": 123
}
],
"files": [
{
"id": "6r65pjq33banznomn7q22sj44e",
"name": "foo.txt",
"size": 35,
"content_path": "v1/vaults/ionaiwtdvgclrixbt6ztpqcxnq/items/p7eflcy7f5mk7vg6zrzf5rjjyu/files/6r65pjq33banznomn7q22sj44e/content",
"content": "VGhlIGZ1dHVyZSBiZWxvbmdzIHRvIHRoZSBjdXJpb3VzLgo="
}
]
}API Reference
Update an Item
PUT
/
vaults
/
{vaultUuid}
/
items
/
{itemUuid}
Update an Item
curl --request PUT \
--url http://localhost:8080/v1/vaults/{vaultUuid}/items/{itemUuid} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"vault": {
"id": "<string>"
},
"id": "<string>",
"title": "<string>",
"urls": [
{
"primary": true,
"href": "https://example.com"
},
{
"href": "https://example.org"
}
],
"favorite": false,
"tags": [
"<string>"
],
"version": 123,
"sections": [
{
"id": "<string>",
"label": "<string>"
}
],
"fields": [
{
"id": "<string>",
"type": "STRING",
"section": {
"id": "<string>"
},
"label": "<string>",
"value": "<string>",
"generate": false,
"recipe": {
"length": 32,
"characterSets": [],
"excludeCharacters": "abc1"
}
}
],
"files": [
{
"id": "6r65pjq33banznomn7q22sj44e",
"name": "foo.txt",
"size": 35,
"content_path": "v1/vaults/ionaiwtdvgclrixbt6ztpqcxnq/items/p7eflcy7f5mk7vg6zrzf5rjjyu/files/6r65pjq33banznomn7q22sj44e/content",
"content": "VGhlIGZ1dHVyZSBiZWxvbmdzIHRvIHRoZSBjdXJpb3VzLgo="
}
]
}
'{
"vault": {
"id": "<string>"
},
"id": "<string>",
"title": "<string>",
"urls": [
{
"primary": true,
"href": "https://example.com"
},
{
"href": "https://example.org"
}
],
"favorite": false,
"tags": [
"<string>"
],
"version": 123,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"lastEditedBy": "<string>",
"sections": [
{
"id": "<string>",
"label": "<string>"
}
],
"fields": [
{
"id": "<string>",
"type": "STRING",
"section": {
"id": "<string>"
},
"label": "<string>",
"value": "<string>",
"generate": false,
"recipe": {
"length": 32,
"characterSets": [],
"excludeCharacters": "abc1"
},
"entropy": 123
}
],
"files": [
{
"id": "6r65pjq33banznomn7q22sj44e",
"name": "foo.txt",
"size": 35,
"content_path": "v1/vaults/ionaiwtdvgclrixbt6ztpqcxnq/items/p7eflcy7f5mk7vg6zrzf5rjjyu/files/6r65pjq33banznomn7q22sj44e/content",
"content": "VGhlIGZ1dHVyZSBiZWxvbmdzIHRvIHRoZSBjdXJpb3VzLgo="
}
]
}Documentation Index
Fetch the complete documentation index at: https://www.1password.dev/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
The UUID of the Item's Vault
Pattern:
^[\da-z]{26}$The UUID of the Item to update
Pattern:
^[\da-z]{26}$Body
application/json
Show child attributes
Show child attributes
Available options:
LOGIN, PASSWORD, API_CREDENTIAL, SERVER, DATABASE, CREDIT_CARD, MEMBERSHIP, PASSPORT, SOFTWARE_LICENSE, OUTDOOR_LICENSE, SECURE_NOTE, WIRELESS_ROUTER, BANK_ACCOUNT, DRIVER_LICENSE, IDENTITY, REWARD_PROGRAM, DOCUMENT, EMAIL_ACCOUNT, SOCIAL_SECURITY_NUMBER, MEDICAL_RECORD, SSH_KEY, CUSTOM Pattern:
^[\da-z]{26}$Show child attributes
Show child attributes
Example:
[
{
"primary": true,
"href": "https://example.com"
},
{ "href": "https://example.org" }
]Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Response
OK
Show child attributes
Show child attributes
Available options:
LOGIN, PASSWORD, API_CREDENTIAL, SERVER, DATABASE, CREDIT_CARD, MEMBERSHIP, PASSPORT, SOFTWARE_LICENSE, OUTDOOR_LICENSE, SECURE_NOTE, WIRELESS_ROUTER, BANK_ACCOUNT, DRIVER_LICENSE, IDENTITY, REWARD_PROGRAM, DOCUMENT, EMAIL_ACCOUNT, SOCIAL_SECURITY_NUMBER, MEDICAL_RECORD, SSH_KEY, CUSTOM Pattern:
^[\da-z]{26}$Show child attributes
Show child attributes
Example:
[
{
"primary": true,
"href": "https://example.com"
},
{ "href": "https://example.org" }
]Available options:
ARCHIVED, DELETED Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Was this page helpful?
⌘I