getting 200 response but still not able to create Items in vault using API

ShazShaz
Community Member

Hitting this POST API from Postman -- http://<1passwordURL>/v1/vaults//items
by passing the object in the raw of the body
{
"vault": {
"id": "{VaultId}"
},
"title": "henry",
"category": "LOGIN",
"sections": [
{
"label": "Security Questions",
"id": "95cdbc3b-7742-47ec-9056-44d6af82d562"
}
],
"fields": [
{
"value": "something",
"purpose": "USERNAME"
},
{
"purpose": "PASSWORD",
"generate": true,
"recipe":
{
"length": 50,
"characterSets": [
"LETTERS",
"DIGITS"
]
}
},
{
"section": {
"id": "95cdbc3b-7742-47ec-9056-44d6af82d562"
},
"type": "CONCEALED",
"generate": true,
"label": "Recovery Key"
},
{
"section": {
"id": "95cdbc3b-7742-47ec-9056-44d6af82d562"
},
"type": "STRING",
"generate": true,
"label": "Random Text"
},
{
"type": "URL",
"label": "Example",
"value": "https://esomethinge.com"
}
]
}

Getting response 200 and the items existed in the vault, but item is not creating in the Vault.


1Password Version: Not Provided
Extension Version: Not Provided
OS Version: Not Provided
Referrer: forum-search:getting 200 response but still not able to create Items in vault using API

Comments

  • Scott.S_1PScott.S_1P

    Team Member

    Howdy Shaz,

    I'm sorry to hear about the problem you are seeing with with the API. I'd like to put you in touch with our integrations support team so they can help look into this and investigate the problem with you. Please send an email to [email protected] and include a link to this forum thread. When you get an email back with the ticket ID, reply here to let me know the ticket ID and I'll make sure your ticket gets in front of the right team.

    I'll be on the lookout out for your reply.

    Cheers,

Leave a Comment

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