Add support for `post_attachment` and `attachment` endpoints