<div dir="ltr"><div>CRUD operations on the EPrints 3.3.15 REST API</div><div><br></div><div>Happy New years everyone,</div><div><br></div><div>I have a question about using the REST API to update an EPrints collection (EPrints 3.3.15).</div><div>I&#39;d like to update the value of the ID field for /rest/eprint/#####/creators/#####/id.txt</div><div>and when I try to put (id.txt currently is empty) I get an error</div><div>like</div><div><br></div><div>    curl -v -u epautomation:testrepo -d &quot;Moore-R-L&quot; -X PUT <a href="http://lemurprints.local/authors/rest/eprint/1/creators/1/id.txt">http://lemurprints.local/authors/rest/eprint/1/creators/1/id.txt</a></div><div>    *   Trying 172.28.128.4...</div><div>    * TCP_NODELAY set</div><div>    * Connected to lemurprints.local (172.28.128.4) port 80 (#0)</div><div>    * Server auth using Basic with user &#39;epautomation&#39;</div><div>    &gt; PUT /authors/rest/eprint/1/creators/1/id.txt HTTP/1.1</div><div>    &gt; Host: lemurprints.local</div><div>    &gt; Authorization: Basic ZXBhdXRvbWF0aW9uOnRlc3RyZXBv</div><div>    &gt; User-Agent: curl/7.57.0</div><div>    &gt; Accept: */*</div><div>    &gt; Content-Length: 9</div><div>    &gt; Content-Type: application/x-www-form-urlencoded</div><div>    &gt;</div><div>    * upload completely sent off: 9 out of 9 bytes</div><div>    &lt; HTTP/1.1 501 Method PUT Not Implemented</div><div>    &lt; Date: Mon, 08 Jan 2018 23:36:53 GMT</div><div>    &lt; Server: Apache/2.4.7 (Ubuntu)</div><div>    &lt; Content-Length: 0</div><div>    &lt; Connection: close</div><div>    &lt;</div><div>    * Closing connection 0</div><div><br></div><div>Doing a similar command to changed the &quot;referred&quot; field does work (flipping the value from TRUE to FALSE).</div><div><br></div><div>    curl -v -u epautomation:testrepo -d &quot;TRUE&quot; -X PUT <a href="http://lemurprints.local/authors/rest/eprint/1/refereed.txt">http://lemurprints.local/authors/rest/eprint/1/refereed.txt</a></div><div>    *   Trying 172.28.128.4...</div><div>    * TCP_NODELAY set</div><div>    * Connected to lemurprints.local (172.28.128.4) port 80 (#0)</div><div>    * Server auth using Basic with user &#39;epautomation&#39;</div><div>    &gt; PUT /authors/rest/eprint/1/refereed.txt HTTP/1.1</div><div>    &gt; Host: lemurprints.local</div><div>    &gt; Authorization: Basic ZXBhdXRvbWF0aW9uOnRlc3RyZXBv</div><div>    &gt; User-Agent: curl/7.57.0</div><div>    &gt; Accept: */*</div><div>    &gt; Content-Length: 4</div><div>    &gt; Content-Type: application/x-www-form-urlencoded</div><div>    &gt;</div><div>    * upload completely sent off: 4 out of 4 bytes</div><div>    &lt; HTTP/1.1 200 OK</div><div>    &lt; Date: Mon, 08 Jan 2018 23:42:56 GMT</div><div>    &lt; Server: Apache/2.4.7 (Ubuntu)</div><div>    &lt; Cache-Control: no-store, no-cache, must-revalidate</div><div>    &lt; Vary: Accept-Encoding</div><div>    &lt; Transfer-Encoding: chunked</div><div>    &lt; Content-Type: text/plain; charset=UTF-8</div><div>    &lt;</div><div>    * Connection #0 to host lemurprints.local left intact</div><div><br></div><div>I am probably missing something obvious but any help would be appreciated.</div><div><br></div><div>Thanks,</div><div><br></div><div>Robert</div><div><br></div></div>