Hello!
Hopefully someone can answer this! For a bit of context, this pertains to FME Server version 2020.2.2. I am working on developing a script that will be triggered in an outside application and will use HTTP requests to send information to FME Server for processing.
I have a webhook set up for this and have verified that it runs successfully and the script is able to submit what it needs via an HTTP GET request. The thing is I also want to be able to automatically extend the token's expiry date through the same script. From what I understand, a PUT request would do the job...but I'm having issues figuring out how this part of the script would be authorized.
My first question is: does a PUT request require some sort of special API access? Any attempts at testing are being met with an "insufficient privileges" error message even though I'm the user/owner who generated the webhook.
My second question, which sort of ties into the first: since this is going to be executed from an outside script: does the HTTP PUT request somehow need the user account and credentials of the token's owner in the header, or is passing the token itself via "Authorization= fme token <token>" enough? I'm trying to figure out whether we somehow need to "hard code" the owner's username and password into the script for it to work - and the "insufficient privileges" error I'm getting is thwarting my testing.
Any help or guidance is appreciated!
Roberto