<?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: 405 - method not allowed then execute a single job via REST-API in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/405-method-not-allowed-then-execute-a-single-job-via-rest-api/m-p/144899#M101303</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Interestingly, had tried POST but then got another error message:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "errorMessage": "Unsupported Media Type",&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "status code" 415&lt;BR /&gt;}&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;But just found out that Chrome's Postman has a bug for POST where you have to manually set the content type in the header, even if you have correctly selected type raw and json.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;Content-Type = application/json&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyway thanks for the help, it worked now with POST &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Jul 2013 09:00:51 GMT</pubDate>
    <dc:creator>trond_nordli</dc:creator>
    <dc:date>2013-07-12T09:00:51Z</dc:date>
    <item>
      <title>405 - method not allowed then execute a single job via REST-API</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/405-method-not-allowed-then-execute-a-single-job-via-rest-api/m-p/144897#M101301</link>
      <description>I'm trying in the latest version 5.13 of Activiti to start a single job via REST-API but got 405 - method not allowed.{&amp;nbsp;&amp;nbsp;&amp;nbsp; "errorMessage": "Method Not Allowed",&amp;nbsp;&amp;nbsp;&amp;nbsp; "statusCode": 405}‍‍‍‍‍‍The job exist in the database and can be access with:GET/service/management/jobs/13‍‍‍But fails with the command</description>
      <pubDate>Thu, 11 Jul 2013 11:36:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/405-method-not-allowed-then-execute-a-single-job-via-rest-api/m-p/144897#M101301</guid>
      <dc:creator>trond_nordli</dc:creator>
      <dc:date>2013-07-11T11:36:47Z</dc:date>
    </item>
    <item>
      <title>Re: 405 - method not allowed then execute a single job via REST-API</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/405-method-not-allowed-then-execute-a-single-job-via-rest-api/m-p/144898#M101302</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You should call a POST instead of a PUT, as you're not updating the task but rather requesting an "action" to be executed. All actions in rest (eg. task complete, signal executions, ..) are done using a POST and an action-palyload in the body.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The docs are wrong, I've corrected them on master just now. Sorry for the confusion…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jul 2013 07:28:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/405-method-not-allowed-then-execute-a-single-job-via-rest-api/m-p/144898#M101302</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2013-07-12T07:28:54Z</dc:date>
    </item>
    <item>
      <title>Re: 405 - method not allowed then execute a single job via REST-API</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/405-method-not-allowed-then-execute-a-single-job-via-rest-api/m-p/144899#M101303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Interestingly, had tried POST but then got another error message:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "errorMessage": "Unsupported Media Type",&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "status code" 415&lt;BR /&gt;}&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;But just found out that Chrome's Postman has a bug for POST where you have to manually set the content type in the header, even if you have correctly selected type raw and json.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;Content-Type = application/json&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyway thanks for the help, it worked now with POST &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jul 2013 09:00:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/405-method-not-allowed-then-execute-a-single-job-via-rest-api/m-p/144899#M101303</guid>
      <dc:creator>trond_nordli</dc:creator>
      <dc:date>2013-07-12T09:00:51Z</dc:date>
    </item>
  </channel>
</rss>

