Using the Teamwork Cloud REST API via Swagger UI, I am attempting to attach Element B to Element A. Currently both elements have the same parent, but I need to be able to attach B to A by creating an association between them. This needs to be done by constructing JSON requests and after playing around for awhile, I am not able to figure out how to attach one element to another. When attempting to PATCH Element B to have its owner be Element A, I receive a 404 error stating that the "owner" field is read-only. I have also tried changing fields in both Element A and B, but they are also read-only or don't appear do anything. I know that some elements have a field called "association," which appears to be related to specifying that an element is a child of another element, but I am not totally sure, as my systems engineering knowledge is lacking and I am primarily a programmer.
I have also tried the POST command in case that is what's used to create an association between two elements, but in order to uyse the POST command, I need to know what class to specify in the JSON request and also how to structure the JSON for the POST request.
I understand that performing this operation is leagues easier when done within the Cameo desktop application, but I need to be able to perform this operation on the back-end with JSON requests if possible. I have been using the following guide as a reference for creating elements and assigning them a stereotype and tagged values, but that's all the guide provides and doesn't have anything else.
There is also almost no documentation at all regarding working with the Teamwork Cloud back-end, especially when it comes to re-assigning the owner of an element.
