You cannot modify anything in _attachments directly, as it is reserved for use by CouchDB. However, it would be wise to store arbitrary attributes in a member, such as attachment_attributes , using the same keys as _attachments (attachment names). For example:
{ "_attachments": { "foo.bar": ..., "xxx.yyy": ... }, "attachment_attributes": { "foo.bar": { "description": "blah blah" }, "xxx.yyy": { "description": "blah blah" } } }
Jason davies
source share