Information on this page is only applicable to M-Files (server) version 12.0.6783.0 and higher.

Object type ID by alias

/structure/objecttypes/itemidbyalias/(alias)

Resolves a single object type alias to its ID.

The alias should be URI-encoded. If resolving multiple aliases, or your alias contains the character \, then it is recommended to use /structure/objecttypes/itemidbyalias, or /structure/metadatastructure/itemidbyalias.

GET

Output: int
  Returns the ID of object type with the given alias, or -1 if none could be found.

If multiple object types have the same alias then -1 will be returned.