add a field via PATCH

I'm trying to add a new field to an item via PATCH

As I understand from the RFC I can pass something like

  "path": "/fields/4",
  "op": "add",
  "value": {
    "label": "pkcs12base64",
    "type": "STRING",
    "value": "MIIRuQIB...."

and I will find a new field at position 4 if I have 4 fields already there

I receive a 400 Invalid request body or parameter

How should it be done instead?


1Password Version: Not Provided
Extension Version: Not Provided
OS Version: Not Provided


  • Jillian_1PJillian_1P

    Team Member

    Hi there,

    You should be able to add a new field with the following:
    [ { "op": "add", "path": "/fields", "value": { "label": "pkcs12base64", "type": "string", "value": "MIIRuQIB...." } } ]

    Note that you do not need to include a position number for the new field. See here for more information on performing patch operations. You can also view the api spec here for more examples.

Leave a Comment

BoldItalicStrikethroughOrdered listUnordered list
Align leftAlign centerAlign rightToggle HTML viewToggle full pageToggle lights
Drop image/file