Article Content
Introduction
Below are some example queries to reference related to accessing Altium 365 design data through the Nexar API. Feel free to adapt any of these to suit your use case.
This should help get you started and you can use these examples to build your own queries to get the data you need most efficiently. See How the language works and our data model.
The majority of these queries and mutations require an ID or a URL as input. This means that you might have to use a different query first to get an ID or URL which can then be used in another query/mutation. Here's an example:
Goal: Create a comment thread.
The Creating a comment thread example requires two ID inputs: "entityId" which is a project ID, and a documentId.
To start, use the Workspaces query to retrieve all available workspaces and their projects. Take note of the ID of the project you wish to create a comment thread on.
Use that project ID with the Documents by project query to retrieve all of the documents making up that project and their corresponding document IDs.
With your project ID and document ID, you can now use the Creating a comment thread mutation.
Queries
Workspaces
Workspace by ID
Workspace by URL
Team members by workspace
Projects by workspace
Projects by ID
Searching projects by name
Searching projects by last updated time
Library components by workspace
Component by ID
Comment threads by project
Documents by project
Mutations
Creating a comment
Creating a comment thread
Creating a task
Updating a task
Creating a task comment
Next Steps
There is the NexarDeveloper GitHub which contains example applications using these queries.
Repositories to note are the first design query or the design web application example.
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article