addNote using Documentum REST API (dm_note + dm_relation)

Options

Hi,

I have a requirement where I would like to attach a note object to a document using REST service.

I could achieve this using two steps.
1. Create new note object using Objects link
2. Create a relation object using Relations link

But I would like to do this in a transaction where the result of the first operation will act as a child for the second one. As far as I understand, there is no way in rest where the response of the first operation could be fed in to the second one as of REST 16.4.

Is my understanding correct here? If yes, then I will have to come with an exception handling to deal the rollback scenario and manually hard delete the object created.

If not, could you please suggest how could I achieve this?

Many thanks in advance!