Edit Zone

Edits a zone. Only one zone property can be changed at a time.

/zones/{identifier}

patch

Zone

zones-0-patch

Debug "planAvailability"

{
  "business": true,
  "enterprise": true,
  "free": true,
  "pro": true
}

Debug "tokenPermissions"

null

Debug "parameters"

[
  {
    "in": "path",
    "name": "identifier",
    "required": true,
    "schema": {
      "description": "Identifier",
      "example": "023e105f4ecef8ad9ca31a8372d0c353",
      "maxLength": 32,
      "type": "string"
    }
  }
]

Debug "requestBody"

{
  "content": {
    "application/json": {
      "schema": {
        "example": {
          "paused": true
        },
        "properties": {
          "paused": {
            "default": false,
            "description": "Indicates whether the zone is only using Cloudflare DNS services. A\ntrue value means the zone will not receive security or performance\nbenefits.\n",
            "readOnly": true,
            "type": "boolean"
          },
          "plan": {
            "description": "(Deprecated) Please use the `/zones/{identifier}/subscription` API\nto update a zone's plan. Changing this value will create/cancel\nassociated subscriptions. To view available plans for this zone,\nsee Zone Plans.\n",
            "properties": {
              "id": {
                "description": "Identifier",
                "example": "023e105f4ecef8ad9ca31a8372d0c353",
                "maxLength": 32,
                "type": "string"
              }
            },
            "type": "object"
          },
          "type": {
            "description": "A full zone implies that DNS is hosted with Cloudflare. A partial \nzone is typically a partner-hosted zone or a CNAME setup. This \nparameter is only available to Enterprise customers or if it has \nbeen explicitly enabled on a zone.\n",
            "enum": [
              "full",
              "partial",
              "secondary"
            ],
            "example": "full",
            "type": "string"
          },
          "vanity_name_servers": {
            "description": "An array of domains used for custom name servers. This is only\navailable for Business and Enterprise plans.",
            "example": [
              "ns1.example.com",
              "ns2.example.com"
            ],
            "items": {
              "format": "hostname",
              "maxLength": 253,
              "type": "string"
            },
            "type": "array"
          }
        },
        "type": "object"
      }
    }
  },
  "required": true
}

Debug "responses"

{
  "200": {
    "content": {
      "application/json": {
        "schema": {
          "allOf": [
            {
              "properties": {
                "errors": {
                  "example": [],
                  "items": {
                    "properties": {
                      "code": {
                        "minimum": 1000,
                        "type": "integer"
                      },
                      "message": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "code",
                      "message"
                    ],
                    "type": "object",
                    "uniqueItems": true
                  },
                  "type": "array"
                },
                "messages": {
                  "example": [],
                  "items": {
                    "properties": {
                      "code": {
                        "minimum": 1000,
                        "type": "integer"
                      },
                      "message": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "code",
                      "message"
                    ],
                    "type": "object",
                    "uniqueItems": true
                  },
                  "type": "array"
                },
                "success": {
                  "description": "Whether the API call was successful",
                  "example": true,
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "errors",
                "messages"
              ],
              "type": "object"
            },
            {
              "properties": {
                "result": {
                  "properties": {
                    "account": {
                      "description": "The account the zone belongs to",
                      "properties": {
                        "id": {
                          "description": "Identifier",
                          "example": "023e105f4ecef8ad9ca31a8372d0c353",
                          "maxLength": 32,
                          "type": "string"
                        },
                        "name": {
                          "description": "The name of the account",
                          "example": "Example Account Name",
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "activated_on": {
                      "description": "The last time proof of ownership was detected and the zone was made\nactive",
                      "example": "2014-01-02T00:01:00.12345Z",
                      "format": "date-time",
                      "nullable": true,
                      "readOnly": true,
                      "type": "string"
                    },
                    "created_on": {
                      "description": "When the zone was created",
                      "example": "2014-01-01T05:20:00.12345Z",
                      "format": "date-time",
                      "readOnly": true,
                      "type": "string"
                    },
                    "development_mode": {
                      "description": "The interval (in seconds) from when development mode expires\n(positive integer) or last expired (negative integer) for the\ndomain. If development mode has never been enabled, this value is 0.",
                      "example": 7200,
                      "readOnly": true,
                      "type": "number"
                    },
                    "id": {
                      "description": "Identifier",
                      "example": "023e105f4ecef8ad9ca31a8372d0c353",
                      "maxLength": 32,
                      "type": "string"
                    },
                    "meta": {
                      "description": "Metadata about the zone",
                      "properties": {
                        "cdn_only": {
                          "description": "The zone is only configured for CDN",
                          "example": true,
                          "type": "boolean"
                        },
                        "custom_certificate_quota": {
                          "description": "Number of Custom Certificates the zone can have",
                          "example": 1,
                          "type": "integer"
                        },
                        "dns_only": {
                          "description": "The zone is only configured for DNS",
                          "example": true,
                          "type": "boolean"
                        },
                        "foundation_dns": {
                          "description": "The zone is setup with Foundation DNS",
                          "example": true,
                          "type": "boolean"
                        },
                        "page_rule_quota": {
                          "description": "Number of Page Rules a zone can have",
                          "example": 100,
                          "type": "integer"
                        },
                        "phishing_detected": {
                          "description": "The zone has been flagged for phishing",
                          "example": false,
                          "type": "boolean"
                        },
                        "step": {
                          "example": 2,
                          "type": "integer"
                        }
                      },
                      "type": "object"
                    },
                    "modified_on": {
                      "description": "When the zone was last modified",
                      "example": "2014-01-01T05:20:00.12345Z",
                      "format": "date-time",
                      "readOnly": true,
                      "type": "string"
                    },
                    "name": {
                      "description": "The domain name",
                      "example": "example.com",
                      "maxLength": 253,
                      "pattern": "^([a-zA-Z0-9][\\-a-zA-Z0-9]*\\.)+[\\-a-zA-Z0-9]{2,20}$",
                      "type": "string"
                    },
                    "original_dnshost": {
                      "description": "DNS host at the time of switching to Cloudflare",
                      "example": "NameCheap",
                      "maxLength": 50,
                      "nullable": true,
                      "readOnly": true,
                      "type": "string"
                    },
                    "original_name_servers": {
                      "description": "Original name servers before moving to Cloudflare\nNotes: Is this only available for full zones?",
                      "example": [
                        "ns1.originaldnshost.com",
                        "ns2.originaldnshost.com"
                      ],
                      "items": {
                        "format": "hostname",
                        "type": "string"
                      },
                      "nullable": true,
                      "readOnly": true,
                      "type": "array"
                    },
                    "original_registrar": {
                      "description": "Registrar for the domain at the time of switching to Cloudflare",
                      "example": "GoDaddy",
                      "nullable": true,
                      "readOnly": true,
                      "type": "string"
                    },
                    "owner": {
                      "description": "The owner of the zone",
                      "properties": {
                        "id": {
                          "description": "Identifier",
                          "example": "023e105f4ecef8ad9ca31a8372d0c353",
                          "maxLength": 32,
                          "type": "string"
                        },
                        "name": {
                          "description": "Name of the owner",
                          "example": "Example Org",
                          "type": "string"
                        },
                        "type": {
                          "description": "The type of owner",
                          "example": "organization",
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "vanity_name_servers": {
                      "description": "An array of domains used for custom name servers. This is only available for Business and Enterprise plans.",
                      "example": [
                        "ns1.example.com",
                        "ns2.example.com"
                      ],
                      "items": {
                        "format": "hostname",
                        "maxLength": 253,
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "development_mode",
                    "owner",
                    "account",
                    "meta",
                    "original_name_servers",
                    "original_registrar",
                    "original_dnshost",
                    "created_on",
                    "modified_on",
                    "activated_on"
                  ],
                  "type": "object"
                }
              },
              "type": "object"
            }
          ]
        }
      }
    },
    "description": "Edit Zone response"
  },
  "4XX": {
    "content": {
      "application/json": {
        "schema": {
          "properties": {
            "errors": {
              "allOf": [
                {
                  "example": [],
                  "items": {
                    "properties": {
                      "code": {
                        "minimum": 1000,
                        "type": "integer"
                      },
                      "message": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "code",
                      "message"
                    ],
                    "type": "object",
                    "uniqueItems": true
                  },
                  "type": "array"
                }
              ],
              "example": [
                {
                  "code": 7003,
                  "message": "No route for the URI"
                }
              ],
              "minLength": 1
            },
            "messages": {
              "allOf": [
                {
                  "example": [],
                  "items": {
                    "properties": {
                      "code": {
                        "minimum": 1000,
                        "type": "integer"
                      },
                      "message": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "code",
                      "message"
                    ],
                    "type": "object",
                    "uniqueItems": true
                  },
                  "type": "array"
                }
              ],
              "example": []
            },
            "result": {
              "nullable": true,
              "type": "object"
            },
            "success": {
              "description": "Whether the API call was successful",
              "example": false,
              "type": "boolean"
            }
          },
          "required": [
            "success",
            "errors",
            "messages",
            "result"
          ],
          "type": "object"
        }
      }
    },
    "description": "Edit Zone response failure"
  }
}

Debug "security"

[
  {
    "api_token": []
  },
  {
    "api_email": [],
    "api_key": []
  }
]