<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic REST API error nos doc type specified in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/rest-api-error-nos-doc-type-specified/m-p/317136#M4137</link>
    <description>&lt;P&gt;Hi There,&lt;/P&gt;
&lt;P&gt;I'm trying to test a simple rest call trough the console (firebug in firefox) on nuxeo 5.9.1
(I'm logged in)&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;jQuery.ajax({
    type: 'POST',
    url: '/nuxeo/api/v1/path/default-domain',
    data:{"entity-type": "document", "name":"docje", "type": "File","properties": { "dc:title": "docje", "dc:description": "Created via a so cool and simple REST API", "common:icon": "/icons/file.gif", "common:icon-expanded": null, "common:size": null}}
});
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;But I get an 500 internal server error: Nos doc type specified.&lt;/P&gt;
&lt;P&gt;Am I doing something wrong?&lt;/P&gt;
&lt;P&gt;Thanks,
Bauke&lt;/P&gt;</description>
    <pubDate>Fri, 31 Jan 2014 12:16:25 GMT</pubDate>
    <dc:creator>Bauke_Roo</dc:creator>
    <dc:date>2014-01-31T12:16:25Z</dc:date>
    <item>
      <title>REST API error nos doc type specified</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/rest-api-error-nos-doc-type-specified/m-p/317136#M4137</link>
      <description>&lt;P&gt;Hi There,&lt;/P&gt;
&lt;P&gt;I'm trying to test a simple rest call trough the console (firebug in firefox) on nuxeo 5.9.1
(I'm logged in)&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;jQuery.ajax({
    type: 'POST',
    url: '/nuxeo/api/v1/path/default-domain',
    data:{"entity-type": "document", "name":"docje", "type": "File","properties": { "dc:title": "docje", "dc:description": "Created via a so cool and simple REST API", "common:icon": "/icons/file.gif", "common:icon-expanded": null, "common:size": null}}
});
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;But I get an 500 internal server error: Nos doc type specified.&lt;/P&gt;
&lt;P&gt;Am I doing something wrong?&lt;/P&gt;
&lt;P&gt;Thanks,
Bauke&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jan 2014 12:16:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/rest-api-error-nos-doc-type-specified/m-p/317136#M4137</guid>
      <dc:creator>Bauke_Roo</dc:creator>
      <dc:date>2014-01-31T12:16:25Z</dc:date>
    </item>
    <item>
      <title>Re: REST API error nos doc type specified</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/rest-api-error-nos-doc-type-specified/m-p/317137#M4138</link>
      <description>&lt;P&gt;Already fixed it&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;jQuery.ajax({
    type: 'post',
    url: '/nuxeo/api/v1/path/default-domain',
    data:'{"entity-type": "document", "name":"docje", "type": "File","properties": { "dc:title": "docje", "dc:description": "Created via a so cool and simple REST API", "common:icon": "/icons/file.gif", "common:icon-expanded": null, "common:size": null}}',
    contentType: "application/json; charset=utf-8",
    dataType: "json"
});
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I missed the content and data type. -_-&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jan 2014 12:49:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/rest-api-error-nos-doc-type-specified/m-p/317137#M4138</guid>
      <dc:creator>Bauke_Roo</dc:creator>
      <dc:date>2014-01-31T12:49:29Z</dc:date>
    </item>
  </channel>
</rss>

