We are having trouble creating elements using the TeamWork Cloud REST API for 19.0 SP2.
We can pull projects, artifacts, and elements fine, but we are not able to create elements. I do not understand what elementID is needed in the POST request:
/osmc/resources/{resourceId}/elements/{elementId}
The response from TWC is always: 404 reason: EObject f30af868-1a1f-4019-8843-58077b772ebe not found ... where the EObject id is different every time.
The body of our request is:
{
"@type": "uml:Class",
"kerml:esiData": { "name": "Test Element", "owner": "09652f51-91d2-49c0-8e6d-05764017b2ee" },
"kerml:nsURI": "http://www.nomagic.com/magicdraw/UML/2.5.1"
}
Please help me understand how to find the EObject / ecore elementID.
Thanks!
Scott