Amend mock POST /api/locations endpoint.