Update zone with the Cloudflare API
Pauses or resumes Cloudflare on a zone and returns it. With paused true the zone keeps only the DNS, without the security and performance features of Cloudflare.
- Identifier
- cloudflare_update_zone
The request
POST https://connect.reportei.com/api/tools/cloudflare_update_zone/execute
Authorization: Bearer <merchant token>
x-customer-token: <customer token>
Content-Type: application/json
Accept: application/json
{
"customer_toolkit": "<connection UUID>",
"arguments": {
"zone_id": "<zone_id>",
"paused": true
}
}Your system sends your customer's connection id and the tool arguments. The headers are the same as the rest of the Connect API: your product's token and your customer's token.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| zone_id | string | Yes | The id of the zone, from List zones. |
| paused | boolean | Yes | true pauses Cloudflare on the zone, false resumes it. |
Supported connections
Your customer connects their Cloudflare account once, with one of the modes below. The same connection serves every tool of the toolkit.
API key
Your customer pastes the app's key on a Connect screen, or your system sends the key with POST /api/customer-toolkits, with no screen.
The response
On success, Connect preserves the app's response status and body. HTTP errors returned by the app use the {error, api_error} envelope; authentication or validation can fail before execution. The X-Toolkit-Execution-Id header identifies the recorded execution, available at GET /api/tools/executions/{uuid}.
Ready for AI agents
This tool's input is a JSON Schema, available at GET /api/tools/cloudflare_update_zone. It becomes your agent's tool definition with no conversion.
Other Cloudflare tools
- List zonesGETLists the zones (domains) the token reaches, with id, name, status, name_servers, plan and account. The id is the zone_id the other tools take. Paginate with page and per_page; result_info.total_pages tells how many pages there are.
- Create zonePOSTAdds a domain to a Cloudflare account and returns the zone in pending status, with the name_servers to set at the domain registrar. The zone becomes active once the registrar points to them.
- List DNS recordsGETLists the DNS records of a zone, with id, type, name, content, proxied, ttl and comment. Filters work together unless match is any. Paginate with page and per_page; result_info.total_pages tells how many pages there are.
- Create DNS recordPOSTCreates a DNS record in a zone and returns it, with its id. A and AAAA records cannot share a name with a CNAME, and an NS record cannot share a name with any other record.
- Update DNS recordPATCHChanges a DNS record and returns it. Only the fields sent change. A and AAAA records cannot share a name with a CNAME, and an NS record cannot share a name with any other record.
- Delete DNS recordDELETEDeletes a DNS record of a zone and returns its id. The change reaches DNS answers right away and cannot be undone.
- Purge cachePOSTRemoves cached content of a zone from every Cloudflare data center; the next request for it goes to the origin. Send exactly one of files, tags, hosts, prefixes or purge_everything. A success means the request was accepted, not that anything was cached. How many items fit in one call depends on the plan.
Toolkits in the same category
See all 100 toolkitsSee Connect applied to your product.
Try it for 15 days with no card, or walk our team through your use case.
