Good morning all,
I’ve got a question about creating a stream using the Speckle API and I’m hoping some one here can help me
My plan is this:
- Take data from a speckle stream
- Add some property data
- Create a new stream using this updated data
The issue I’m facing is this:
If I try to create the stream using the stream data in step 3, I get an error of the object id already existing in MongoDB.
Do I need to make an ObjectCreate API call for each object in my updated stream data? If so how do I specify that that SpeckleObject is part of a specific stream?
I’ve also tried cloning the stream from step 1 and updating that, but it seems the cloned stream also uses the same ids for the cloned objects, resulting in both streams getting updated if I do an ObjectUpdate API call.
If any part of my question is unclear, please let me know!