Add query param _id when POST'ing files to Sesam through terminal
AnsweredI'd like to be able to define an _id for a given json file in a the url used to POST/PUT entities to a dataset.
I.e :
curl -X POST -H "Authorization: Bearer <My_JWT>" -H "Content-Type: application/json" --data @test.json 'https://<node_id>.sesam.cloud/api/datasets/<name_of_dataset>/entities?_id="User_id'
-
Official comment
If this is general requirement then you can create an "http_endpoint" pipe with some DTL on it that adds the "_id" property. Note that you can use the "_B" binding variable to get hold of the values of requests parameters.
Comment actions
Please sign in to leave a comment.
Comments
1 comment