API Curl set plan in json


I read the following Cloudflare API v4 Documentation publication to get an idea of how to add a new domain (new dns zone)

In the example indicates that it is added as follows:

curl -X POST "https://api.cloudflare.com/client/v4/zones" \
     -H "X-Auth-Email: [email protected]" \
     -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
     -H "Content-Type: application/json" \
     --data '{"name":"example.com","account":{"id":"01a7362d577a6c3019a474fd6f485823"},"jump_start":true,"type":"full"}'

We always use the business plan in all the domains we add, we have more than 10 domains added, but this time to assemble a shell script I need to use the free plan, but not as indicated when running the curl, any help with this?


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.