In the documentation for updating many orgs at once, the documentation states that the request is of type "POST". Following this will result in a 404 Response, "InvalidEndpoint".
If you make the curl with http method "PUT" instead, you'll be able to successfully update your records.