What are all the possible keys when creating the document ?

Hi all,

When creating the document, what are the possible keys that can be set ? Here is an example with PHP :

$responseClientHttpPost = $this->client->request('POST', 'http://192.168.128.101:8080/nuxeo/api/v1/path/Knowledge Base/workspaces/Archives Projets', [
                                     'headers' => [
                                                     'Authorization' => 'Basic ' . base64_encode($userNameNuxeo.":".$mdpNuxeo)
                                                  ],
                                     'json' => ['entity-type' => 'document',
                                                'name' => (false === $pos ? $name : substr($name, 0, $pos)),
                                                'type' => 'File',
                                                'properties' => ['dc:title' => 'My new doc',
                                                                 'file:content' => ['upload-batch' => $nuxeoBatchId, 'upload-fileId' => ''.$fileIdx]
                                                                ]
                                               ]
                        ]);

I want to add some other keys representing the tags ( array of strings ) for the document, and also description of the document, and email of the user who uploaded the document.

How to achieve that ?

0 votes

0 answers

74 views

ANSWER