1Password Connect
  1. Items
1Password Connect
  • Activity
    • Retrieve a list of API Requests that have been made.
      GET
  • Health
    • Get state of the server and its dependencies.
      GET
    • Ping the server for liveness
      GET
  • Metrics
    • Query server for exposed Prometheus metrics
      GET
  • Vaults
    • Get all Vaults
      GET
    • Get Vault details and metadata
      GET
  • Items
    • Get all items for inside a Vault
      GET
    • Create a new Item
      POST
    • Delete an Item
      DELETE
    • Get the details of an Item
      GET
    • Update a subset of Item attributes
      PATCH
    • Update an Item
      PUT
  • Files
    • Get all the files inside an Item
      GET
    • Get the details of a File
      GET
    • Get the content of a File
      GET
  1. Items

Update a subset of Item attributes

PATCH
/vaults/{vaultUuid}/items/{itemUuid}
Applies a modified RFC6902 JSON Patch document to an Item or ItemField. This endpoint only supports add, remove and replace operations.
When modifying a specific ItemField, the ItemField's ID in the path attribute of the operation object: /fields/{fieldId}
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PATCH '/vaults//items/' \
--header 'Content-Type: application/json' \
--data-raw '[
    {
        "op": "replace",
        "path": "/favorite",
        "value": true
    },
    {
        "op": "remove",
        "path": "/tags/1"
    }
]'
Response Response Example
200 - Example 1
{
    "category": "LOGIN",
    "createdAt": "2019-08-24T14:15:22Z",
    "favorite": false,
    "id": "string",
    "lastEditedBy": "string",
    "state": "ARCHIVED",
    "tags": [
        "string"
    ],
    "title": "string",
    "updatedAt": "2019-08-24T14:15:22Z",
    "urls": [
        {
            "href": "https://example.com",
            "primary": true
        },
        {
            "href": "https://example.org"
        }
    ],
    "vault": {
        "id": "string"
    },
    "version": 0,
    "fields": [
        {
            "entropy": 0,
            "generate": false,
            "id": "string",
            "label": "string",
            "purpose": "",
            "recipe": {
                "characterSets": [
                    "LETTERS"
                ],
                "length": 32
            },
            "section": {
                "id": "string"
            },
            "type": "STRING",
            "value": "string"
        }
    ],
    "files": [
        {
            "content": "VGhlIGZ1dHVyZSBiZWxvbmdzIHRvIHRoZSBjdXJpb3VzLgo=",
            "content_path": "v1/vaults/ionaiwtdvgclrixbt6ztpqcxnq/items/p7eflcy7f5mk7vg6zrzf5rjjyu/files/6r65pjq33banznomn7q22sj44e/content",
            "id": "6r65pjq33banznomn7q22sj44e",
            "name": "foo.txt",
            "size": 35
        }
    ],
    "sections": [
        {
            "id": "string",
            "label": "string"
        }
    ]
}

Request

Path Params

Body Params application/json

Examples

Responses

🟢200OK - Item updated. If no Patch operations were provided, Item is unmodified.
application/json
Body

🟠401Invalid or missing token
🟠403Unauthorized access
🟠404Item not found
Modified at 2022-09-02 07:10:37
Previous
Get the details of an Item
Next
Update an Item
Built with