Click the pencil that appears next to the delete button when you hover over an attachment in order to edit it. To change the resource the attachment belongs to, edit the field `Resource reference`.