3 Replies Latest reply on Dec 5, 2016 12:03 PM by jonsteele

    Is it possible using the REST API to create a document on behalf of another user?

    jonsteele

      I am importing some data from another system - i want to create documents using the person that created it in the old system (assuming they exist in the new one).

       

      Is it possible to create a document on behalf of another user (using the latest REST API) - rather than creating them all as the same user?

       

      I tried this:

       

      POST

      /api/core/v3/contents

      json={"type": "document","author":"https://xyz.com/api/core/v3/people/12728", "parent": "https://xyz.com/api/core/v3/places/216736", "subject": "Document with Attachment", "content": {"type": "text/html", "text": "document body"}};type=application/json

       

      It created the document correctly - but it didn't create as person: 12728 it created it as the user that made the REST API call.

       

      Can anyone help?

       

      Thanks,

      Jon