Full Attachments API

Note: Changed parameter order for put_attachment