Create document and set custom attributes in one API call

Currently I am using an API call to create a new document, which at the same time fills in custom attributes. The screenshot below shows that particular API call.

This API call works fine. However: the 'parent_id' where this document is stored, has 3 categories. When the API as shown above is executed without the 'body' parameter, all three categories are inherited by the document, but then the custom attributes are not filled. When the 'body' parameter is included, only 1 category is inherited and filled, but the the other 2 categories are not inherited anymore.

So my question is: how can I use the API above to inherit all 3 categories of the 'parent_id' and fill in custom attributes (of one of those 3 categories) in one API call?

Comments