This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

REST API: Resolving IDs using aliases

Hi,

The documentation on the developer portal says that aliases cannot be used with the REST API and only the internal IDs must be used.

https://developer.m-files.com/APIs/REST-API/Concepts/#obtaining-metadata-structure-element-ids

While this is technically true, it is, however, possible to resolve those IDs from aliases using the endpoint REST/structure/metadatastructure/itemidbyalias. 

https://developer.m-files.com/APIs/REST-API/Reference/resources/structure/itemidbyalias/

This way the code does not rely solely on hard-coded IDs. I think it would be good to mention this in the documentation.

// Diego