Impact 2024: The Industrial Data and AI Conference for and by Users | Nominate Speakers Now for a Ch...
Have the official API docs been released?
@Jason Dressel,I’m sorry I can’t share my actual model and POST request due to security reasons, this example was used just to show my intentions, which I believe you have understood.The “supportingCast” equivalent in my data model is of an array type like “[Actor]” as you mentioned.I am using the endpoint/models/instancesbuilding an object like this:{ "instanceType": "node", "space": my_space, "externalId": external_id, "sources": [ { "source": { "type": "view", "space": my_space, "externalId": entity, "version": version, }, "properties": properties, } ],}Where the properties are the values of the original post object.So, how should I build the post body of the request to create these “edge” relationships?
Hello @Jason Dressel,This was exaclty what I needed, thank you very much! Worked perfectly! I’ll just note here for anyone looking for a solution to this, you don’t need to explicitly declare the relationship directives, in this case:@relation(edgeSource: "ActedIn" type: {space: "imdb", externalId: "Movie.actors"}, direction: OUTWARDS)All relationships create these automatically (implicilty), you can just refer to your relationship with the externalId following the pattern: “[ViewName].[PropertyName]” and it should work. I’ll mark this question as answered, but just as curiosity, what is the purpose of these properties:autoCreateStartNodes autoCreateEndNodesI could/how would I use them to make this easier?
Hello @Carin Meems, it helped understand that what I wanted to do is not possible right now, but it its a possible workaround that I am investigating
I tried this approach but I’m getting an error:{ "error": { "code": 400, "message": "Unknown property: <name_of_space>.<name_of_view>/<view_version_number>.DirectRelationProperty" }}Any ideas on what could be the problem?
@Pasindu Perera It seems the request is no longer even being sent from my side, now the UI just gets the name of the file as the table name and does nothing else Picture after selecting the file via “Upload CSV of JSON” button: The requests sent after the “upload”:
@Pasindu Perera I can’t change my internet connection, but the other two tests resulted in the same problem. However, after I tried switching browsers, it worked. I was using Firefox (v 122.0) which had the problem mentioned, and I tried on Chrome (121.0.6167.87) and it seems to be working fine there.
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
Sorry, we're still checking this file's contents to make sure it's safe to download. Please try again in a few minutes.
Sorry, our virus scanner detected that this file isn't safe to download.