<?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: REST API Put (Data collection) in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/REST-API-Put-Data-collection/m-p/85347#M36354</link>
    <description>&lt;A class="user-content-mention" data-sign="@" data-contactkey="bd1995ac-2fef-471f-8d5a-61c40c67a896" data-tag-text="@Dennis Laursen" href="https://community.blueprism.com/network/profile?UserKey=bd1995ac-2fef-471f-8d5a-61c40c67a896" data-itemmentionkey="8376d133-91a9-4336-a37f-3b171e542aee"&gt;@Dennis Laursen&lt;/A&gt; - As put request is used to update/Replace the value of any attribute, A field attribute is required to pass as JSON body.​&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Tushar Varshney&lt;BR /&gt;Senior Consultant - Intelligent Automation&lt;BR /&gt;Ernst &amp;amp; Young India&lt;BR /&gt;+91-9880188366&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Fri, 26 Mar 2021 06:52:00 GMT</pubDate>
    <dc:creator>TusharVarshney</dc:creator>
    <dc:date>2021-03-26T06:52:00Z</dc:date>
    <item>
      <title>REST API Put (Data collection)</title>
      <link>https://community.blueprism.com/t5/Product-Forum/REST-API-Put-Data-collection/m-p/85346#M36353</link>
      <description>I want to use the "Webservices - REST" Put-functionality to interact with a database.
 The PUT method require the following inputs:
 - Address URL (Text)
 - Data (Collection)
 - HTTP username (Text)
 - HTTP password (Password)

The despription for the data-input says the following:
 "The data to be passed to the REST API."

But I am not entirely sure of what that means. Because I only want to change one data input with the PUT, and that I do with the Address URL request. So what data input should I more specific put here?
 Because if I run the step without this data input, the following error message appears:
 "Internal : Could not execute code stage because exception thrown by code stage: An object of the type 'System.String' cannot be converted into the type 'System.Data.DataTable'."

But when I run the PUT action stage, the requested PUT-action is executed as I wanted, in spite of the error message, and that the stage fails.

So what can I make as a data collection input?
I have tried to generate a Collection with a "GET --&amp;gt; ShowTask", and paste this into the PUT action stage. But this doesn't help.</description>
      <pubDate>Mon, 09 Oct 2017 15:44:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/REST-API-Put-Data-collection/m-p/85346#M36353</guid>
      <dc:creator>DennisLaursen</dc:creator>
      <dc:date>2017-10-09T15:44:00Z</dc:date>
    </item>
    <item>
      <title>RE: REST API Put (Data collection)</title>
      <link>https://community.blueprism.com/t5/Product-Forum/REST-API-Put-Data-collection/m-p/85347#M36354</link>
      <description>&lt;A class="user-content-mention" data-sign="@" data-contactkey="bd1995ac-2fef-471f-8d5a-61c40c67a896" data-tag-text="@Dennis Laursen" href="https://community.blueprism.com/network/profile?UserKey=bd1995ac-2fef-471f-8d5a-61c40c67a896" data-itemmentionkey="8376d133-91a9-4336-a37f-3b171e542aee"&gt;@Dennis Laursen&lt;/A&gt; - As put request is used to update/Replace the value of any attribute, A field attribute is required to pass as JSON body.​&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Tushar Varshney&lt;BR /&gt;Senior Consultant - Intelligent Automation&lt;BR /&gt;Ernst &amp;amp; Young India&lt;BR /&gt;+91-9880188366&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Fri, 26 Mar 2021 06:52:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/REST-API-Put-Data-collection/m-p/85347#M36354</guid>
      <dc:creator>TusharVarshney</dc:creator>
      <dc:date>2021-03-26T06:52:00Z</dc:date>
    </item>
    <item>
      <title>RE: REST API Put (Data collection)</title>
      <link>https://community.blueprism.com/t5/Product-Forum/REST-API-Put-Data-collection/m-p/85348#M36355</link>
      <description>Hi Dennis,&lt;BR /&gt;&lt;BR /&gt;Try to supply it with a blank collection stage.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Bruce Liu&lt;BR /&gt;Senior Product Consultant, Professional Services&lt;BR /&gt;Blue Prism&lt;BR /&gt;Australia/Sydney&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 29 Mar 2021 06:19:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/REST-API-Put-Data-collection/m-p/85348#M36355</guid>
      <dc:creator>bruce.liu</dc:creator>
      <dc:date>2021-03-29T06:19:00Z</dc:date>
    </item>
  </channel>
</rss>

