---
updatedAt: 2026-05-26T22:42:16.000Z
agentTools:
  siteIndex: https://techdocs.akamai.com/llms.txt
  projectIndex: https://techdocs.akamai.com/edge-dns/llms.txt
---

# Submit a bulk zone convert secondary request

Submits an asynchronous request to convert one or more DNS zones to secondary. The request body must be a JSON array, with each object containing the required data for the conversion. All zones must belong to the same contract and group. The conversion is handled by an offline task. Use the `requestId` returned in the response to monitor the task's progress and retrieve the results when complete.

# OpenAPI definition

```json
{
  "externalDocs": {
    "description": "See documentation for Akamai's Edge DNS API",
    "url": "https://techdocs.akamai.com/edge-dns/reference"
  },
  "info": {
    "license": {
      "name": "Apache 2.0",
      "url": "https://www.apache.org/licenses/LICENSE-2.0.html"
    },
    "title": "Bulk zones",
    "version": "v2"
  },
  "openapi": "3.0.0",
  "paths": {
    "/zones/convert-requests/secondary": {
      "post": {
        "description": "Submits an asynchronous request to convert one or more DNS zones to secondary. The request body must be a JSON array, with each object containing the required data for the conversion. All zones must belong to the same contract and group. The conversion is handled by an offline task. Use the `requestId` returned in the response to monitor the task's progress and retrieve the results when complete.",
        "externalDocs": {
          "description": "See documentation for this operation in Akamai's Edge DNS API",
          "url": "https://techdocs.akamai.com/edge-dns/reference/post-zones-convert-secondary-requests"
        },
        "operationId": "post-zones-convert-secondary-requests",
        "parameters": [
          {
            "description": "For customers who manage more than one account, this [runs the operation from another account](https://techdocs.akamai.com/developer/docs/manage-many-accounts-with-one-api-client). The Identity and Access Management API provides a [list of available account switch keys](https://techdocs.akamai.com/iam-api/reference/get-client-account-switch-keys).",
            "in": "query",
            "name": "accountSwitchKey",
            "required": false,
            "schema": {
              "example": "1-5C0YLB:1-8BYUX",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "comment": "Converting to secondary because it fits our model better",
                "masters": [
                  "192.0.2.10",
                  "my.example.com"
                ],
                "tsigKey": {
                  "algorithm": "hmac-md5",
                  "name": "other.com.akamai.com3",
                  "secret": "Ok1qR5IW1ajVka5cHPEJQIXfLyx5V3PSkFBROAzOn21JumDq6nIpoj6H8rfj5Uo+Ok55ZWQ0Wgrf302fDscHLw=="
                },
                "zoneList": [
                  {
                    "name": "example.com",
                    "soaSerialLock": 2020164329
                  },
                  {
                    "name": "example.net",
                    "soaSerialLock": 2024164328
                  }
                ]
              },
              "schema": {
                "additionalProperties": false,
                "description": "Request body schema for converting multiple zones to secondary in a single operation.",
                "properties": {
                  "comment": {
                    "description": "Optional user-defined comment describing the conversion request.",
                    "type": "string"
                  },
                  "masters": {
                    "description": "A list of master name server hostnames or IP addresses from which the zone data should be transferred.",
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  },
                  "tsigKey": {
                    "additionalProperties": false,
                    "description": "A TSIG key.",
                    "properties": {
                      "algorithm": {
                        "description": "The algorithm used to encode the TSIG key's secret data. Possible values are: `hmac-md5`, `hmac-sha1`, `hmac-sha224`, `hmac-sha256`, `hmac-sha384`, `hmac-sha512`, or `HMAC-MD5.SIG-ALG.REG.INT`.",
                        "enum": [
                          "hmac-md5",
                          "hmac-sha1",
                          "hmac-sha224",
                          "hmac-sha256",
                          "hmac-sha384",
                          "hmac-sha512",
                          "HMAC-MD5.SIG-ALG.REG.INT"
                        ],
                        "type": "string"
                      },
                      "name": {
                        "description": "The name of the TSIG key. This is a name that's unique across all of Akamai's customers. Since the key name is treated like a DNS name, the value is lowercase and the server removes any trailing dots.",
                        "type": "string"
                      },
                      "secret": {
                        "description": "A Base64-encoded string of data. When decoded, it needs to contain the correct number of bits for the chosen algorithm. If the input isn't correctly padded, the server applies the padding.",
                        "type": "string"
                      }
                    },
                    "required": [
                      "name",
                      "algorithm",
                      "secret"
                    ],
                    "type": "object",
                    "x-akamai": {
                      "file-path": "schemas/tsigkey-post.yaml"
                    }
                  },
                  "zoneList": {
                    "description": "A list of Edge DNS zones to be converted to secondary.",
                    "items": {
                      "additionalProperties": false,
                      "description": "An Edge DNS zone convert",
                      "properties": {
                        "name": {
                          "description": "The domain name of the DNS zone name to convert.",
                          "type": "string"
                        },
                        "soaSerialLock": {
                          "description": "The serial number from the zone's SOA record. This value needs to match the current SOA serial you retrieve to ensure consistency and prevent conflicts during the conversion.",
                          "type": "integer"
                        }
                      },
                      "required": [
                        "name"
                      ],
                      "type": "object",
                      "x-akamai": {
                        "file-path": "schemas/zone-convert-primary-post.yaml"
                      }
                    },
                    "type": "array"
                  }
                },
                "required": [
                  "zoneList",
                  "masters"
                ],
                "type": "object",
                "x-akamai": {
                  "file-path": "schemas/convert-request-secondary-post.yaml"
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "example": {
                  "expirationDate": "2021-01-03T12:00:00Z",
                  "requestId": "e585a640-0849-4b87-8dd9-91afdaf8851c"
                },
                "schema": {
                  "additionalProperties": false,
                  "description": "An identifier for a newly created bulk zone operation request.",
                  "properties": {
                    "expirationDate": {
                      "description": "ISO 8601 timestamp, up to which you can query information about this request. After that point, information may be purged and no longer available.",
                      "format": "date-time",
                      "type": "string"
                    },
                    "requestId": {
                      "description": "The ID of the request.",
                      "type": "string"
                    }
                  },
                  "required": [
                    "requestId",
                    "expirationDate"
                  ],
                  "type": "object",
                  "x-akamai": {
                    "file-path": "schemas/async-request-id.yaml"
                  }
                }
              }
            },
            "description": "Resource successfully created.",
            "headers": {
              "Location": {
                "description": "Provides a URL path you can GET the newly created resource from.",
                "schema": {
                  "type": "string"
                },
                "x-akamai": {
                  "file-path": "headers/location.yaml"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Invalid value for parameter 'sortBy': 'foo'. Valid values are: name, type.",
                  "instance": "https://problems.luna.akamaiapis.net/authoritative-dns/illegalValue/f804a623-444c-4e4f-a719-2190313b99d7",
                  "problemId": "f804a623-444c-4e4f-a719-2190313b99d7",
                  "status": 400,
                  "title": "Illegal Value",
                  "type": "https://problems.luna.akamaiapis.net/authoritative-dns/illegalValue"
                },
                "schema": {
                  "additionalProperties": true,
                  "description": "An RFC 7807 problem details object returned when an error occurs.",
                  "properties": {
                    "detail": {
                      "description": "A human-readable explanation of the error.",
                      "type": "string"
                    },
                    "instance": {
                      "description": "A URI that identifies this specific error occurrence.",
                      "type": "string"
                    },
                    "problemId": {
                      "description": "A unique identifier for this error occurrence.",
                      "type": "string"
                    },
                    "status": {
                      "description": "The HTTP status code for this error.",
                      "type": "integer"
                    },
                    "title": {
                      "description": "A short, human-readable summary of the error.",
                      "type": "string"
                    },
                    "type": {
                      "description": "A non-navigable URI that uniquely identifies the error type.",
                      "type": "string"
                    }
                  },
                  "type": "object",
                  "x-akamai": {
                    "file-path": "schemas/problem.yaml"
                  }
                }
              }
            },
            "description": "Bad Request. The request body must include a comment, zone list, and at least one primary nameserver."
          },
          "401": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "not logged in",
                  "instance": "https://problems.luna.akamaiapis.net/authoritative-dns/notLoggedIn/f804a623-444c-4e4f-a719-2190313b99d7",
                  "problemId": "f804a623-444c-4e4f-a719-2190313b99d7",
                  "status": 401,
                  "title": "Not Logged In",
                  "type": "https://problems.luna.akamaiapis.net/authoritative-dns/notLoggedIn"
                },
                "schema": {
                  "additionalProperties": true,
                  "description": "An RFC 7807 problem details object returned when an error occurs.",
                  "properties": {
                    "detail": {
                      "description": "A human-readable explanation of the error.",
                      "type": "string"
                    },
                    "instance": {
                      "description": "A URI that identifies this specific error occurrence.",
                      "type": "string"
                    },
                    "problemId": {
                      "description": "A unique identifier for this error occurrence.",
                      "type": "string"
                    },
                    "status": {
                      "description": "The HTTP status code for this error.",
                      "type": "integer"
                    },
                    "title": {
                      "description": "A short, human-readable summary of the error.",
                      "type": "string"
                    },
                    "type": {
                      "description": "A non-navigable URI that uniquely identifies the error type.",
                      "type": "string"
                    }
                  },
                  "type": "object",
                  "x-akamai": {
                    "file-path": "schemas/problem.yaml"
                  }
                }
              }
            },
            "description": "Unauthorized. Your credentials are missing or invalid."
          },
          "403": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Access denied for contract C-0N7RAC7.",
                  "instance": "https://problems.luna.akamaiapis.net/authoritative-dns/forbidden/f804a623-444c-4e4f-a719-2190313b99d7",
                  "problemId": "f804a623-444c-4e4f-a719-2190313b99d7",
                  "status": 403,
                  "title": "Forbidden",
                  "type": "https://problems.luna.akamaiapis.net/authoritative-dns/forbidden"
                },
                "schema": {
                  "additionalProperties": true,
                  "description": "An RFC 7807 problem details object returned when an error occurs.",
                  "properties": {
                    "detail": {
                      "description": "A human-readable explanation of the error.",
                      "type": "string"
                    },
                    "instance": {
                      "description": "A URI that identifies this specific error occurrence.",
                      "type": "string"
                    },
                    "problemId": {
                      "description": "A unique identifier for this error occurrence.",
                      "type": "string"
                    },
                    "status": {
                      "description": "The HTTP status code for this error.",
                      "type": "integer"
                    },
                    "title": {
                      "description": "A short, human-readable summary of the error.",
                      "type": "string"
                    },
                    "type": {
                      "description": "A non-navigable URI that uniquely identifies the error type.",
                      "type": "string"
                    }
                  },
                  "type": "object",
                  "x-akamai": {
                    "file-path": "schemas/problem.yaml"
                  }
                }
              }
            },
            "description": "Forbidden. Zone conversion is disabled or you don't have permission to convert one or more of the requested zones."
          },
          "409": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Zone already exists: example.com.",
                  "instance": "https://problems.luna.akamaiapis.net/authoritative-dns/zoneNameConflict/f804a623-444c-4e4f-a719-2190313b99d7",
                  "problemId": "f804a623-444c-4e4f-a719-2190313b99d7",
                  "status": 409,
                  "title": "Zone Name Conflict",
                  "type": "https://problems.luna.akamaiapis.net/authoritative-dns/zoneNameConflict"
                },
                "schema": {
                  "additionalProperties": true,
                  "description": "An RFC 7807 problem details object returned when an error occurs.",
                  "properties": {
                    "detail": {
                      "description": "A human-readable explanation of the error.",
                      "type": "string"
                    },
                    "instance": {
                      "description": "A URI that identifies this specific error occurrence.",
                      "type": "string"
                    },
                    "problemId": {
                      "description": "A unique identifier for this error occurrence.",
                      "type": "string"
                    },
                    "status": {
                      "description": "The HTTP status code for this error.",
                      "type": "integer"
                    },
                    "title": {
                      "description": "A short, human-readable summary of the error.",
                      "type": "string"
                    },
                    "type": {
                      "description": "A non-navigable URI that uniquely identifies the error type.",
                      "type": "string"
                    }
                  },
                  "type": "object",
                  "x-akamai": {
                    "file-path": "schemas/problem.yaml"
                  }
                }
              }
            },
            "description": "Conflict. One or more zones can't be converted to secondary because of their current type or state."
          },
          "415": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Content type 'text/plain' not supported.",
                  "instance": "https://problems.luna.akamaiapis.net/authoritative-dns/unsupportedMediaType/f804a623-444c-4e4f-a719-2190313b99d7",
                  "problemId": "f804a623-444c-4e4f-a719-2190313b99d7",
                  "status": 415,
                  "title": "Unsupported Media Type",
                  "type": "https://problems.luna.akamaiapis.net/authoritative-dns/unsupportedMediaType"
                },
                "schema": {
                  "additionalProperties": true,
                  "description": "An RFC 7807 problem details object returned when an error occurs.",
                  "properties": {
                    "detail": {
                      "description": "A human-readable explanation of the error.",
                      "type": "string"
                    },
                    "instance": {
                      "description": "A URI that identifies this specific error occurrence.",
                      "type": "string"
                    },
                    "problemId": {
                      "description": "A unique identifier for this error occurrence.",
                      "type": "string"
                    },
                    "status": {
                      "description": "The HTTP status code for this error.",
                      "type": "integer"
                    },
                    "title": {
                      "description": "A short, human-readable summary of the error.",
                      "type": "string"
                    },
                    "type": {
                      "description": "A non-navigable URI that uniquely identifies the error type.",
                      "type": "string"
                    }
                  },
                  "type": "object",
                  "x-akamai": {
                    "file-path": "schemas/problem.yaml"
                  }
                }
              }
            },
            "description": "Unsupported Media Type. The request's `Content-Type` header is not supported. Use `application/json`."
          }
        },
        "summary": "Submit a bulk zone convert secondary request",
        "tags": [
          "Convert requests"
        ]
      },
      "x-akamai": {
        "file-path": "paths/zone-convert-secondary-requests.yaml",
        "path-info": "/zones/convert-requests/secondary"
      }
    }
  },
  "servers": [
    {
      "url": "https://{hostname}/config-dns/v2"
    }
  ],
  "tags": [
    {
      "description": "Groups operations that you can use to manage zone convert requests.",
      "name": "Convert requests"
    }
  ],
  "x-akamai": {
    "auth-type": "EDGE_GRID",
    "file-path": "08-bulk-operations.yaml"
  },
  "x-readme": {
    "explorer-enabled": false,
    "samples-languages": [
      "curl",
      "python",
      "node"
    ]
  }
}
```

# Sibling pages

* [Search bulk zone convert requests](https://techdocs.akamai.com/edge-dns/reference/get-zones-convert-requests.md)
* [Submit a bulk zone convert alias request](https://techdocs.akamai.com/edge-dns/reference/post-zones-convert-alias-requests.md)
* [Submit a bulk zone convert primary request](https://techdocs.akamai.com/edge-dns/reference/post-zones-convert-primary-requests.md)
* [List SOA serials for secondary zones](https://techdocs.akamai.com/edge-dns/reference/post-zones-convert-serials-requests.md)
* [Check bulk zone convert status](https://techdocs.akamai.com/edge-dns/reference/get-zones-convert-requests-requestid.md)
* [Get bulk zone convert results](https://techdocs.akamai.com/edge-dns/reference/get-zones-convert-requests-requestid-result.md)