Community articleView/folder entry PUT8.5.3 UP1
Added by IBM contributorIBM on October 25, 2013
Rate this article 1 starsRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars

Updates a document in a view or folder.
Input
Method URI Description
PUT /{database}/api/data/collections/unid/{unid}/unid/{docunid} Updates a document in a view or folder. Use this URI to refer to the view or folder by UNID.
PUT /{database}/api/data/collections/name/{name}/unid/{docunid} Updates a document in a view or folder. Use this URI to refer to the view or folder by name.
Content Type: application/json
Name Type Optional Description
database
string No Path name of a database on the server relative to the data directory.
unid
string No Universal ID of a view or folder in the database.
name
string No Name or alias of a view or folder in the database.
docunid
string No Universal ID of a document represented by an entry in the view or folder.
Name Type Optional Description
computewithform
boolean Yes Runs the form validation formulas on the document before updating.
form
string No Associates a Domino form with the document.
Name Type Optional Description
Content-Type
string No Must be application/json
Output
Code Description
200
OK. Indicates that the request was processed successfully.
Examples
This request updates the content of a document in a view named AllContacts.
PUT /XPagesExt.nsf/api/data/collections/name/AllContacts/unid/D73CD922E372C494852578B600584F03
Content-Type: application/json

{"FirstName":"Mary", "LastName":"MacBrown", "EMail":"mary.macbrown@acme.com", "City":"Milngavie"}

This request updates one item in a document.
PUT /XPagesExt.nsf/api/data/collections/name/AllContacts/unid/D73CD922E372C494852578B600584F03
Content-Type: application/json

{"City":"Milngavie"}