From the FortiOS/FortiAPI/FNDN it seems to be possible to restore a config file to a fortigate and restart the fortigate with such restored file. I am trying this with a POST to /api/v2/monitor/system/config/restore.
I get a response Code 403 when I try this from Postman.
I am using a valid generated API Key with config as follows:
config system accprofile
set secfabgrp read-write
set ftviewgrp read-write
set authgrp read-write
set sysgrp read-write
set netgrp read-write
set loggrp read-write
set fwgrp read-write
set vpngrp read-write
set utmgrp read-write
set wifi read-write
config system api-user
set api-key ENC SH2JXxKQuhKAlikfQE.......2cTiq17Xw4jiogpKc=
set accprofile "api_write"
set vdom "root"
set ipv4-trusthost 192.168.2.0 255.255.255.0
Is there something wrong with my API key configuration or what would cause me to get the response 403?
I also successfully use the same API key to create and delete various configurations, but only the /system/config/restore gives me the response 403.
I can provide more information if required.
Thank you so much