<?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 Re: Invalid argument exception. No doc type specified while tring to create nuxeo document with api rest Endpoint in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/invalid-argument-exception-no-doc-type-specified-while-tring-to/m-p/319988#M6989</link>
    <description>&lt;P&gt;form-data for the body type.&lt;/P&gt;</description>
    <pubDate>Thu, 31 Aug 2017 16:31:38 GMT</pubDate>
    <dc:creator>Nuxeo_Dev</dc:creator>
    <dc:date>2017-08-31T16:31:38Z</dc:date>
    <item>
      <title>Invalid argument exception. No doc type specified while tring to create nuxeo document with api rest Endpoint</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/invalid-argument-exception-no-doc-type-specified-while-tring-to/m-p/319984#M6985</link>
      <description>&lt;P&gt;For create file using Rest API (Nuxeo Platform 8.10 ), Postman
I follow this link "https://doc.nuxeo.com/nxdoc/document-resources-endpoints/"&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class="language-hljs"&gt;POST &lt;A href="http://NUXEO_SERVER/nuxeo/api/v1/id/{idOfParentDoc}" target="test_blank"&gt;http://NUXEO_SERVER/nuxeo/api/v1/id/{idOfParentDoc}&lt;/A&gt;
{
    "entity-type": "document",
    "name":"newDoc",
    "type": "File",
    "properties": {
        "dc:title": "The new document",
        "dc:description": "Created via a very cool and easy 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 am getting 500 exception – “invalid argument exception. No doc type specified” as Response.
How to resolve this issue .&lt;/P&gt;</description>
      <pubDate>Thu, 31 Aug 2017 11:43:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/invalid-argument-exception-no-doc-type-specified-while-tring-to/m-p/319984#M6985</guid>
      <dc:creator>Nuxeo_Dev</dc:creator>
      <dc:date>2017-08-31T11:43:26Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid argument exception. No doc type specified while tring to create nuxeo document with api rest Endpoint</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/invalid-argument-exception-no-doc-type-specified-while-tring-to/m-p/319985#M6986</link>
      <description>&lt;P&gt;Hi Amel,&lt;/P&gt;
&lt;P&gt;I just did the test on a 8.10 with postman too and it seems to works. What I tested:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;POST &lt;A href="http://localhost:8080/nuxeo/api/v1/path//" target="test_blank"&gt;http://localhost:8080/nuxeo/api/v1/path//&lt;/A&gt;
{
    "entity-type": "document",
    "name":"newDoc",
    "type": "File",
    "properties": {
        "dc:title": "The new document",
        "dc:description": "Created via a very cool and easy REST API",
        "common:icon": "/icons/file.gif",
        "common:icon-expanded": null,
        "common:size": null
    }
}
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I get the response:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;{
    "entity-type": "document",
    "repository": "default",
    "uid": "34fb78e7-a114-4ad2-85ee-790200a6b60d",
    "path": "/newDoc",
    "type": "File",
    "state": "project",
    "parentRef": "dfc52762-a3dd-43df-9a8a-deebfec8a0ee",
    "isCheckedOut": true,
    "isVersion": false,
    "isProxy": false,
    "changeToken": "1504185758833",
    "title": "The new document",
    "lastModified": "2017-08-31T13:22:38.833Z",
    "facets": [
        "Versionable",
        "Publishable",
        "Commentable",
        "HasRelatedText",
        "Downloadable"
    ]
}
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Same thing with the &lt;CODE&gt;id&lt;/CODE&gt; url:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;POST &lt;A href="http://localhost:8080/nuxeo/api/v1/id/dfc52762-a3dd-43df-9a8a-deebfec8a0ee" target="test_blank"&gt;http://localhost:8080/nuxeo/api/v1/id/dfc52762-a3dd-43df-9a8a-deebfec8a0ee&lt;/A&gt;
{
    "entity-type": "document",
    "name":"newNewDoc",
    "type": "File",
    "properties": {
        "dc:title": "The new document",
        "dc:description": "Created via a very cool and easy REST API",
        "common:icon": "/icons/file.gif",
        "common:icon-expanded": null,
        "common:size": null
    }
}
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I get the response:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;{
    "entity-type": "document",
    "repository": "default",
    "uid": "3cd23391-f419-4a37-97db-b9215b26f4fc",
    "path": "/newNewDoc",
    "type": "File",
    "state": "project",
    "parentRef": "dfc52762-a3dd-43df-9a8a-deebfec8a0ee",
    "isCheckedOut": true,
    "isVersion": false,
    "isProxy": false,
    "changeToken": "1504185958567",
    "title": "The new document",
    "lastModified": "2017-08-31T13:25:58.567Z",
    "facets": [
        "Versionable",
        "Publishable",
        "Commentable",
        "HasRelatedText",
        "Downloadable"
    ]
}
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Note &lt;CODE&gt;dfc52762-a3dd-43df-9a8a-deebfec8a0ee&lt;/CODE&gt; is the id of my Root document.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Aug 2017 13:27:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/invalid-argument-exception-no-doc-type-specified-while-tring-to/m-p/319985#M6986</guid>
      <dc:creator>Kevin_Leturc</dc:creator>
      <dc:date>2017-08-31T13:27:33Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid argument exception. No doc type specified while tring to create nuxeo document with api rest Endpoint</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/invalid-argument-exception-no-doc-type-specified-while-tring-to/m-p/319986#M6987</link>
      <description>&lt;P&gt;Hi Kevin !
Thank you for your reply.
I repeat the test with your example :&lt;/P&gt;
&lt;P&gt;POST &lt;A href="http://localhost:8080/nuxeo/api/v1/id/094a6c81-891c-4a0f-9eec-8dbde7fdb85d" target="test_blank"&gt;http://localhost:8080/nuxeo/api/v1/id/094a6c81-891c-4a0f-9eec-8dbde7fdb85d&lt;/A&gt;
{
"entity-type": "document",
"name":"newNewDoc",
"type": "File",
"properties": {
"dc:title": "The new document",
"dc:description": "Created via a very cool and easy REST API",
"common:icon": "/icons/file.gif",
"common:icon-expanded": null,
"common:size": null
}
}&lt;/P&gt;
&lt;P&gt;But I get the same error :  500 exception – “invalid argument exception. No doc type specified” as Response. How to resolve this issue .
I don't understand what is the problem!&lt;/P&gt;</description>
      <pubDate>Thu, 31 Aug 2017 14:24:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/invalid-argument-exception-no-doc-type-specified-while-tring-to/m-p/319986#M6987</guid>
      <dc:creator>Nuxeo_Dev</dc:creator>
      <dc:date>2017-08-31T14:24:51Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid argument exception. No doc type specified while tring to create nuxeo document with api rest Endpoint</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/invalid-argument-exception-no-doc-type-specified-while-tring-to/m-p/319987#M6988</link>
      <description>&lt;P&gt;Which body type do you use ? Which http headers do you provide ?&lt;/P&gt;</description>
      <pubDate>Thu, 31 Aug 2017 15:52:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/invalid-argument-exception-no-doc-type-specified-while-tring-to/m-p/319987#M6988</guid>
      <dc:creator>Kevin_Leturc</dc:creator>
      <dc:date>2017-08-31T15:52:24Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid argument exception. No doc type specified while tring to create nuxeo document with api rest Endpoint</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/invalid-argument-exception-no-doc-type-specified-while-tring-to/m-p/319988#M6989</link>
      <description>&lt;P&gt;form-data for the body type.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Aug 2017 16:31:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/invalid-argument-exception-no-doc-type-specified-while-tring-to/m-p/319988#M6989</guid>
      <dc:creator>Nuxeo_Dev</dc:creator>
      <dc:date>2017-08-31T16:31:38Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid argument exception. No doc type specified while tring to create nuxeo document with api rest Endpoint</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/invalid-argument-exception-no-doc-type-specified-while-tring-to/m-p/319989#M6990</link>
      <description>&lt;P&gt;You can use raw with Content-Type &lt;CODE&gt;application/json&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Aug 2017 20:02:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/invalid-argument-exception-no-doc-type-specified-while-tring-to/m-p/319989#M6990</guid>
      <dc:creator>Kevin_Leturc</dc:creator>
      <dc:date>2017-08-31T20:02:27Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid argument exception. No doc type specified while tring to create nuxeo document with api rest Endpoint</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/invalid-argument-exception-no-doc-type-specified-while-tring-to/m-p/319990#M6991</link>
      <description>&lt;P&gt;it works well!! thank you Kevin&lt;/P&gt;</description>
      <pubDate>Mon, 04 Sep 2017 08:24:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/invalid-argument-exception-no-doc-type-specified-while-tring-to/m-p/319990#M6991</guid>
      <dc:creator>Nuxeo_Dev</dc:creator>
      <dc:date>2017-09-04T08:24:49Z</dc:date>
    </item>
  </channel>
</rss>

