add attach to API documentation

this is a super common use case, doesn't make sense to make the user dig into the code to find out how to do it.