iTwin iModels icon

iTwin iModels

Interact with iTwin Platform iModels API for managing iModels, changesets, named versions, and more

Actions54

Overview

This node interacts with the iTwin Platform's iModels API, specifically to retrieve details about a Named Version of an iModel. It is useful when you want to programmatically access metadata or information about a specific named version within an iModel, such as for auditing, reporting, or integration purposes.

A practical example would be automating the retrieval of version details in a construction project management workflow, where each named version corresponds to a milestone or checkpoint in the design process.

Properties

Name Meaning
ID The unique identifier of the iModel from which to get the named version details.
Named Version ID The unique identifier of the Named Version whose details are to be retrieved.

Output

The output is a JSON object containing the details of the requested Named Version of the specified iModel. This typically includes metadata fields returned by the iTwin Platform API about that Named Version. If multiple results are returned (unlikely in this case), they will be output as an array of JSON objects.

No binary data output is involved.

Dependencies

  • Requires an API authentication token credential for the iTwin Platform (OAuth2).
  • The node depends on the bundled IModelsOpenApiInterpreter module to interpret and execute API operations.
  • Proper configuration of the OAuth2 credential in n8n is necessary to authenticate requests.

Troubleshooting

  • Common issues:

    • Invalid or missing iModel ID or Named Version ID parameters will cause errors.
    • Authentication failures if the OAuth2 credential is not configured correctly.
    • Unknown operation errors if the operation parameter is misspelled or unsupported.
  • Error messages:

    • "Unknown operation: <operation>": Indicates the specified operation is not recognized; verify the operation name.
    • Errors related to authentication usually indicate misconfigured or expired credentials.
    • Network or API errors may occur if the iTwin Platform service is unreachable.

To resolve these, ensure all required parameters are provided, credentials are valid and up to date, and network connectivity to the iTwin API is available.

Links and References

Discussion