It’s Cybersecurity Awareness Month! Join our interactive training session, or learn about security and AI from 1Password experts.
Forum Discussion
Former Member
3 years agoAdding a new ItemField belonging to a section
Hey.
I want to add a new ItemField to the Item. This ItemField must belong to an preexisting Section (if I could create a Section and an ItemField within a single request that would be even better...
Nhat_Nguyen
1Password Team
3 years agoHello @mariomonti, Thank you very much for reaching out to us. We only need the ID of the section to add a new field to an existing section and we also need to use replace to add your field to an existing section. So the steps to add a new field to a section is this.
- Create a section.
- Create a new field.
- Add the new field to our section with
replace
[
{
"op": "replace",
"path": "/fields/5truufol57nin6vjupkkwgddei",
"value": {
"label": "dupa-label",
"type": "string",
"value": "dupa-label",
"section": {
"id": "i25ggti7ffjjhqxvwsous36ute",
"label": "dupa"
}
}
}
]
I hope this help. Please let me know if you need more information.