Creating access point - Raspberry Pi Zero W

Hi, I’m looking to recreate the creation of an access point on the Zero W. I have USB > ethernet working fine and am trying to use Network Manager to manage the AP.

I have placed a file called resin-hotspot inside /boot/system-connections and my bash script runs export DBUS_SYSTEM_BUS_ADDRESS=unix:path=/host/run/dbus/system_bus_socket before I try to activate the connection.

If I run ifconfig wlan1 down I get an error - wlan1: ERROR while getting interface flags: No such device (I specified the interface name to be interface-name=wlan1 in the config file).

Running the script results in - python ./activate_connection.py resin-hotspot

KeyError: 'resin-hotspot'

My config on the SD card is:

[connection]
id=resin-hotspot
uuid=4cfc0a0bf0816d8ef7ac9388d5807804
type=wifi
autoconnect=false
interface-name=wlan1
permissions=
secondaries=

[wifi]
band=bg
mac-address-blacklist=
mac-address-randomization=0
mode=ap
seen-bssids=
ssid=resin-hotspot

[wifi-security]
group=
key-mgmt=wpa-psk
pairwise=
proto=
psk=resin-hotspot

[ipv4]
dns-search=
method=shared

[ipv6]
addr-gen-mode=stable-privacy
dns-search=
method=auto