Add the repository field to the correct endpoint