Curl add new zone, how to indicate plan in data field?

We have many domains responding in Cloudflare and we will continue to add more, therefore I am automating the process of adding a new zone.
I use this:

curl -X POST "https://api.cloudflare.com/client/v4/zones"
-H "X-Auth-Email: [email protected]"
-H "X-Auth-Key: GLOBAL_API_KEY"
-H "Content-Type: application/json"
-data '{"name":"DOMAIN.ORG","account":{"id": "USER_ID"},"jump_start":true,"type":"partial"}'

For testing reasons I do not want to generate expenses by adding new domains, I need to know how I indicate the free plan within the data using curl to be able to continue with the tests.

From what I can find, you add `“plan”:{“id”:""} to the request.

The plan IDs are:

Free: 0feeeeeeeeeeeeeeeeeeeeeeeeeeeeee
Pro: e592fd9519420ba7405e1307bff33214
Professional: a577b510288e82b26486fd1df47000ec
Business: 1ac039f6c29b691475c3d74fe588d1ae
Enterprise: 94f3b7b768b0458b56d2cac4fe5ec0f9

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.