Hello Guys,
I'm trying to use the M-Files REST API in my Python application. I was able to login and received a token.
After that I'm trying to create new objects in my Vault. This is the JSON-body contained in my request:
I send the request with "X-Authentication": token as the header to my.m-files/.../159.aspx. The 159 represents a real objecttype in my vault.
Then I receive the following response: requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://my.m-files/REST/objects/159.aspx
I don't really understand what's missing or what the issue is. As far is I understand there is an issue with the token that I passed to the new request. Also maybe my request body is not sufficent enough... I can also provide more source code if needed.
Help would be really appreciated. Note: This is my first time working with the REST API
Kind regards,
Danijel
