what are you looking edit BGP mean changing the BGP ?
check below guide :
You can tell the BGP process to use another AS number besides the global AS number, usually used for migrations.
I have created Fabric in DCNM with Nexus 9K BGP AS number 65534 but now i need to edit this BGP AS number as 64911 to make the iBGP with some other Nexus 5K device which have BGP configured with AS 64911. Once all services migrated to 9K from 5K we will decommission the 5K.