Open
Conversation
AndyTitu
commented
Feb 6, 2026
AndyTitu
commented
Feb 6, 2026
Member
Functional review: ✅Tested that the operations work as expected. Code review: ✅Changes look appropriate. Other notesHere's what I used for testing and might inspire you for making the example snippets: Example vault lifecycle code # [developer-docs.sdk.python.create-vault]-start
# Create a vault
created_vault = await client.vaults.create(
VaultCreateParams(
title="My Example Vault",
description="Vault created for SDK demo",
)
)
print("Created vault:", created_vault.id, created_vault.title)
# [developer-docs.sdk.python.create-vault]-end
# [developer-docs.sdk.python.update-vault]-start
# Update a vault
updated_vault = await client.vaults.update(
created_vault.id,
VaultUpdateParams(
title="My Updated Example Vault",
description="Updated description",
),
)
print("Updated vault:", updated_vault.title)
# [developer-docs.sdk.python.update-vault]-end
# [developer-docs.sdk.python.grant-group-permissions]-start
# Grant group permissions to a vault
await client.vaults.grant_group_permissions(
created_vault.id,
[
GroupAccess(
group_id=group_id,
permissions=READ_ITEMS | CREATE_ITEMS | UPDATE_ITEMS,
)
],
)
print("Granted permissions to group")
# [developer-docs.sdk.python.grant-group-permissions]-end
# [developer-docs.sdk.python.update-group-permissions]-start
# Update group permissions for a vault
await client.vaults.update_group_permissions(
[
GroupVaultAccess(
vault_id=created_vault.id,
group_id=group_id,
permissions=READ_ITEMS | CREATE_ITEMS | UPDATE_ITEMS | DELETE_ITEMS,
)
],
)
print("Updated group permissions")
# [developer-docs.sdk.python.update-group-permissions]-end
# [developer-docs.sdk.python.revoke-group-permissions]-start
# Revoke group permissions from a vault
await client.vaults.revoke_group_permissions(created_vault.id, group_id)
print("Revoked group permissions")
# [developer-docs.sdk.python.revoke-group-permissions]-end
# [developer-docs.sdk.python.delete-vault]-start
# Delete a vault
await client.vaults.delete(created_vault.id)
print("Deleted vault:", created_vault.id)
# [developer-docs.sdk.python.delete-vault]-end |
edif2008
approved these changes
Feb 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.