I am trying to access the endpoint /objects/object_id returns blank. But the response is 200 OK. Can someone help me with this, please?
I have used the correct object ID.
I am trying to access the endpoint /objects/object_id returns blank. But the response is 200 OK. Can someone help me with this, please?
I have used the correct object ID.
Hi Craig,
Request URL is {{MFWSUrl}}/objects/101
The response I get is;
That endpoint is doing a search for objects of type 101. It is returning none.
That sounds entirely possible depending upon the vault contents or your user rights, not necessarily due to you doing something wrong within your request.
It may be worth going back to the M-Files admin and double checking what you're expecting to be able to see.
Hi Craig,
After allowing the user to access object type 101, I am getting some data now.
Thank you for your help!
Hi Craig, when I query the endpoint /objects/101, I do not get all the properties associated with object type 101. Is there a reason for this?
Yes. If you look at the documentation for that endpoint you'll see it returns the object version data. This contains common metadata such as class and title, but not the full set of properties.
To get the properties you need to make a subsequent request with details of the specific object version(s) you want properties for.
The functional reason is that the REST API mimics the COM API, and this is how it works. At a practical level this limits the amount of data returned in the original request, making it much more efficient for situations that just need to get simple data.
Yes. If you look at the documentation for that endpoint you'll see it returns the object version data. This contains common metadata such as class and title, but not the full set of properties.
To get the properties you need to make a subsequent request with details of the specific object version(s) you want properties for.
The functional reason is that the REST API mimics the COM API, and this is how it works. At a practical level this limits the amount of data returned in the original request, making it much more efficient for situations that just need to get simple data.
Thanks Craig. /objects/(type)/(objectid)/(version)/properties enpoint has given me all the data I need.
That's good. Just be aware that there's endpoints that allow you to get properties of multiple objects in one request as well, which might be far more efficient than making multiple individual requests for each object in the search results: M-Files Web Service: Properties of multiple objects
© 2025 M-Files, All Rights Reserved.