TWCloud REST API batch mode

Discussions about Teamwork Cloud and Teamwork Server functionalities

Moderator: Moderators

TWCloud REST API batch mode

Postby brett.g.eagle@lmco.com » Thu Apr 20, 2023 6:50 pm

I have a question regarding the TWCloud API. The documentation on this page:https://docs.nomagic.com/display/TWCloud2021x/Model+manipulation says that elements can be created in batch mode.

The example given shows the following:
cat file.txt | curl -v -H "Content-Type: application/ld+json" -X POST -s --cookie cookie.txt --insecure -d @-https://server:8111/osmc/resources/${projectId}/elements/${elementId}?batch=true

However, the documentation does not show the contents of file.txt and simply adding "batch=true" to a request with multiple elements in the request body does not work. Could you provide an example request of using batch mode to create multiple elements in a single request or give an example of what is expected to exist within “file.txt”?
brett.g.eagle@lmco.com
Forum Newbie
Forum Newbie
 
Posts: 11
Posts Rating:2
Joined: Mon Dec 17, 2012 10:21 am

Return to Teamwork Cloud and Teamwork Server

Who is online

Users browsing this forum: No registered users and 1 guest