{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"Update the properties of a BGP Prefix, such as the on demand advertisement status (advertised or withdrawn).","properties":{"path":{"type":"object","properties":{"account_id":{"$ref":"#/definitions/addressing_account_identifier"},"prefix_id":{"$ref":"#/definitions/addressing_prefix_identifier"},"bgp_prefix_id":{"$ref":"#/definitions/addressing_bgp_prefix_identifier"}},"required":["account_id","prefix_id","bgp_prefix_id"],"additionalProperties":false},"body":{"$ref":"#/definitions/addressing_bgp_prefix_update_advertisement"}},"required":["path","body"],"additionalProperties":false,"definitions":{"addressing_account_identifier":{"description":"Identifier of a Cloudflare account.","type":"string","maxLength":32,"examples":["258def64c72dae45f3e4c8516e2111f2"]},"addressing_prefix_identifier":{"description":"Identifier of an IP Prefix.","type":"string","maxLength":32,"examples":["2af39739cc4e3b5910c918468bb89828"]},"addressing_bgp_prefix_identifier":{"description":"Identifier of BGP Prefix.","type":"string","maxLength":32,"examples":["7009ba364c7a5760798ceb430e603b74"]},"addressing_bgp_prefix_update_advertisement":{"type":"object","properties":{"asn_prepend_count":{"$ref":"#/definitions/addressing_asn_prepend_count"},"auto_advertise_withdraw":{"$ref":"#/definitions/addressing_auto_advertise_withdraw"},"on_demand":{"type":"object","properties":{"advertised":{"type":"boolean"}}}}},"addressing_asn_prepend_count":{"description":"Number of times to prepend the Cloudflare ASN to the BGP AS-Path attribute","type":"integer","default":0,"maximum":3,"minimum":0,"examples":[2]},"addressing_auto_advertise_withdraw":{"description":"Determines if Cloudflare advertises a BYOIP BGP prefix even when there is no matching BGP prefix in the Magic routing table. When true, Cloudflare will automatically withdraw the BGP prefix when there are no matching BGP routes, and will resume advertising when there is at least one matching BGP route.","type":"boolean","default":false,"examples":[true]}}},"name":"Update BGP Prefix","id":"cloudflare.ip-address-management-prefixes-update-bgp-prefix","example":{"path":{"account_id":"258def64c72dae45f3e4c8516e2111f2","prefix_id":"2af39739cc4e3b5910c918468bb89828","bgp_prefix_id":"7009ba364c7a5760798ceb430e603b74"},"body":{}},"maxRequests":1,"summary":false}}