Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Editing is not supported for items with files, custom icons, or fields of types other than 'concealed' or 'text' #155

Open
davidolrik opened this issue Nov 18, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@davidolrik
Copy link

Scenario & Reproduction Steps

I have a number of ApiCredentials that I want to update, but can't because I have "unsupported" fields and a custom icon.

Actual Behavior

First I tried just fetching the item, modifying the credential field and then calling client.Items.Put with my updated item. - That didn't work.

Then I tried fetching the item, and replaced the fields slice with just the updated field. - That also didn't work.

Both attempts yields the following error:

Editing is not supported for items with files, custom icons, or fields of types other than 'concealed' or 'text'

Expected Behavior

When updating a single field, I would expect to be able to update just that single field without having to update the rest of the item, otherwise any item with a custom icon or any unsupported can't be updated.

SDK version

v0.1.3

Additional information

I tried removing the custom icon, but the unsupported fields still block my update.

@davidolrik davidolrik added the bug Something isn't working label Nov 18, 2024
@MOmarMiraj
Copy link
Contributor

Hi @davidolrik, We are aware that we have limitations around more complex field types and custom icons with items.

We will be looking to improve on this in the future iterations of the SDKs.

@davidolrik
Copy link
Author

If you could just add the possibility to update a single field directly by vault id, item_id and field_id/name, that would bypass the limitations and allow for updating any of the supported types - even on ApiCredentials which comes with a bunch of unsupported fields.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants