User Story: As a worker at Purrgent Care, I would like functionality to link potentially multiple people to an existing account. From the UI, this should be accessible when editing an account, there will be a drop-down that shows all existing people, a person can be selected, then submitted to link those people to that account.
Technical Details - Backend:
Update the existing endpoint in the back-end person controller to optionally link a person to an account.
API Design:
PUT request for /account/{account_id} with a list of person_ids (can be an empty list)
If a person is linked to different account, they will be removed from that account and then linked to the new account.
Title: Link people to an account
User Story: As a worker at Purrgent Care, I would like functionality to link potentially multiple people to an existing account. From the UI, this should be accessible when editing an account, there will be a drop-down that shows all existing people, a person can be selected, then submitted to link those people to that account.
Technical Details - Backend:
/account/{account_id}
with a list of person_ids (can be an empty list)Acceptance Criteria: