## Update Secondary Zone Configuration **put** `/zones/{zone_id}/secondary_dns/incoming` Update secondary zone configuration for incoming zone transfers. ### Path Parameters - `zone_id: string` ### Body Parameters - `auto_refresh_seconds: number` How often should a secondary zone auto refresh regardless of DNS NOTIFY. Not applicable for primary zones. - `name: string` Zone name. - `peers: array of string` A list of peer tags. ### Returns - `errors: array of object { code, message, documentation_url, source }` - `code: number` - `message: string` - `documentation_url: optional string` - `source: optional object { pointer }` - `pointer: optional string` - `messages: array of object { code, message, documentation_url, source }` - `code: number` - `message: string` - `documentation_url: optional string` - `source: optional object { pointer }` - `pointer: optional string` - `success: true` Whether the API call was successful. - `true` - `result: optional object { id, auto_refresh_seconds, checked_time, 5 more }` - `id: optional string` - `auto_refresh_seconds: optional number` How often should a secondary zone auto refresh regardless of DNS NOTIFY. Not applicable for primary zones. - `checked_time: optional string` The time for a specific event. - `created_time: optional string` The time for a specific event. - `modified_time: optional string` The time for a specific event. - `name: optional string` Zone name. - `peers: optional array of string` A list of peer tags. - `soa_serial: optional number` The serial number of the SOA for the given zone. ### Example ```http curl https://api.cloudflare.com/client/v4/zones/$ZONE_ID/secondary_dns/incoming \ -X PUT \ -H 'Content-Type: application/json' \ -H "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \ -d '{ "auto_refresh_seconds": 86400, "name": "www.example.com.", "peers": [ "23ff594956f20c2a721606e94745a8aa", "00920f38ce07c2e2f4df50b1f61d4194" ] }' ``` #### Response ```json { "errors": [ { "code": 1000, "message": "message", "documentation_url": "documentation_url", "source": { "pointer": "pointer" } } ], "messages": [ { "code": 1000, "message": "message", "documentation_url": "documentation_url", "source": { "pointer": "pointer" } } ], "success": true, "result": { "id": "269d8f4853475ca241c4e730be286b20", "auto_refresh_seconds": 86400, "checked_time": "2019-10-24T17:09:42.883908+01:00", "created_time": "2019-10-24T17:09:42.883908+01:00", "modified_time": "2019-10-24T17:09:42.883908+01:00", "name": "www.example.com.", "peers": [ "23ff594956f20c2a721606e94745a8aa", "00920f38ce07c2e2f4df50b1f61d4194" ], "soa_serial": 2019102400 } } ```