API Modify a pool fails with error 1002 name must not be empty: validation failed

Issue when trying to modify a pool via API - new Origin not created and existing Origin not getting new IP:

curl -X PATCH "https://api.cloudflare.com/client/v4/user/load_balancers/pools/<pool_id>" \
-H "X-Auth-Email: <mail>" \
-H "X-Auth-Key: <key>" \
-H "Content-Type: application/json" \
--data '{"name":"justpoolname","origins":[{"name":"s1x1","ip":"199.69.21.17","weight":0.5,"enabled":true},{"name":"s2x1","ip":"199.69.20.140","weight":0.5,"enabled":true}]}'

And response:

{
  "result": null,
  "success": false,
  "errors": [
    {
      "code": 1002,
      "message": "name must not be empty: validation failed"
    }
  ],
  "messages": []
}

When I send only one origin - changes name and weight of Origin, but not IP -__-

Change ip to address and check again.

1 Like

Oh, my bad! Address works like a charm, thank you very much!