I had the same issue and returning CreatedAtAction(nameof(GetById), new { id = breed.Id }, newBreed) instead of CreatedAtRoute() worked for me!