change naming in api for attachments