Uploaded image for project: 'Nuxeo Documentation'
  1. Nuxeo Documentation
  2. NXDOC-1072

Python Client Documentation - Create a Document

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: How-tos / Tutorials

      Description

      I was checking this document to learn a little more about Nuxeo API:

      https://doc.nuxeo.com/nxdoc/python-client/

      Regarding "Documents", I noticed that it talks about fetch, retrieve, delete
      but it does not say anything about how to create a Document.

      newFolder = {
      'entity-type': 'document',
      'name': 'a-folder',
      'type': 'Folder',
      'properties':

      { 'dc:title': 'foo', }

      }
      folder = nuxeo.repository().create('/', newFolder)

      It shows how to create a Folder, and Bertrand told me that is the same, with some tweaks on that explanation changing the . But for a NEW USER, creating a Document is the first fundamental action that he wants to do, and Folder (organising the Documents) comes afterwards.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 minute
                  1m