Fortigate API works for everything but admin password change
Example 1 works fine. Example 2 fails with a 403 status code. RestAPI Admin account is a super_admin with access to Global. debug cli on Fortigate shows no communication for 2 but full communication with 1. Scratching my head on this for a few days now. The "password" option seems to break it. These command come off the Fortinet Developer Network 6.2 API page. There is no password complexity requirements on this Fortigate.
Works Ex 1:
curl -k -X PUT "https://FORTIGAGE-FQDN-HERE:443/api/v2/cmdb/system/admin/USERNAME-HERE?access_token=ACCESS-TOKEN-HERE" -H "accept: application/json" -H "Content-Type: application/x-www-form-urlencoded" -d "{ \"name\": \"USERNAME-HERE\", \"comments\": \"This is a comment\"}"
Fails Ex 2:
curl -k -X PUT "https://FORTIGAGE-FQDN-HERE:443/api/v2/cmdb/system/admin/USERNAME-HERE?access_token=ACCESS-TOKEN-HERE" -H "accept: application/json" -H "Content-Type: application/x-www-form-urlencoded" -d "{ \"name\": \"USERNAME-HERE\", \"password\": \"PASSWORD-HERE\", \"comments\": \"This is a comment\"}"
