Been playing around with the IEM CLI and I’m getting an unexpected result when I try to update a site file.
I uploaded a small text file with the CLI using: iem post .\test.txt site/custom/Test/file/test.txt and it returns the xml result with the file ID that was generated.
Name: test.txt
ID: 5028871
I then tried to use the put command to update the test.txt file using: iem put \testupd.txt site/custom/Test/file/5028871
But instead of updating the existing file it generated a new file with a new file ID and the original test.txt file’s ID as the name.
Name: 5028871
ID: 5028872
If I try the same Put cmd line again (iem put \testupd.txt site/custom/Test/file/5028871 ) it gives the error:
API Request Failed: Attempt to create a file on site ‘Test’ with the same name ‘5028871’ of one already existing.
Out of curiosity, I tried the same cmd line with Post (iem post \testupd.txt site/custom/Test/file/5028871) and it gives the same error as above.
Am I misunderstanding how this is supposed to work or is it a bug? I going by the examples and descriptions on the developer site for the rest-api calls: https://developer.bigfix.com/rest-api/api/site.html and I’m currently running v9.2.8.74
Thanks