Fix broken test for api endpoint update

Merged Martin Lowe requested to merge malowe/main/fix_endpoint into main

Merge request reports