It’s Cybersecurity Awareness Month! Join our interactive training session, or learn about security and AI from 1Password experts.
Forum Discussion
adrianbj
5 years agoNew Contributor
anyone have examples of editing existing Vault entries from CLI?
I have several vaults within our company's division where we would like to add more entries for all.
I am looking for a path that I can follow to automate this.
I understand the limitation, but a...
Former Member
5 years agoYou're welcome! I'm glad that it helped. As to your follow-up questions:
- What exactly is the URL field? Is it optional?
The URL field is definitely optional. Most of the time, a Login item would be used with a website. The URL field is where you would store that particular website. If you look at the saved item.json file, you might notice that we use both overview.url and overview.URLs. The plural key is an array of each of the URLs stored in that particular Login item. The singular key is a string for the "primary" URL. It might be easier to follow with a picture or two:
You can see that I’ve added two URLs to this Login item, and how they are represented in the JSON. That said, they are definitely optional.
- What is the N / internal field name?
Those are actually UUIDs for each field that we have compressed down to an alpha-numeric format. You can copy over the existing ones or leave them blank. The CLI will take care of them. They can be duplicated across any number of vault items, just not within a single vault item.
I hope that these answers are what you're looking for. If you have any additional follow-up questions, feel free to ask them here!