<?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>thread Re: Getting a strange API error when trying to post an image in Archived Discussions (Read Only)</title>
    <link>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Getting-a-strange-API-error-when-trying-to-post-an-image-Why/m-p/169810#M95805</link>
    <description>&lt;P&gt;Hey &lt;a href="https://community.squareup.com/t5/user/viewprofilepage/user-id/274514"&gt;@hiolife&lt;/a&gt;-&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Thanks for posting in the Seller Community.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;I escalated this to our API team, and they said they believe the issue is occurring because you're&amp;nbsp;using the URL:&amp;nbsp;&lt;A href="https://slack-redir.net/link?url=https%3A%2F%2Fconnect.squareup.com%2Fv2%2Fcatalog%2Fobject" target="_blank"&gt;https://connect.squareup.com/v2/catalog/object&lt;/A&gt;, when you should be using:&amp;nbsp;&lt;A href="https://slack-redir.net/link?url=https%3A%2F%2Fconnect.squareup.com%2Fv2%2Fcatalog%2Fimages" target="_blank"&gt;https://connect.squareup.com/v2/catalog/images&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;I hope this helps. Let me know if not!&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":light_bulb:"&gt;💡&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 07 May 2020 22:42:29 GMT</pubDate>
    <dc:creator>isabelle</dc:creator>
    <dc:date>2020-05-07T22:42:29Z</dc:date>
    <item>
      <title>Getting a strange API error when trying to post an image. Why?</title>
      <link>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Getting-a-strange-API-error-when-trying-to-post-an-image-Why/m-p/167812#M95803</link>
      <description>&lt;P&gt;Following are the details:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;curl &lt;A href="https://connect.squareup.com/v2/catalog/object" target="_blank" rel="noopener"&gt;https://connect.squareup.com/v2/catalog/object&lt;/A&gt; \&lt;BR /&gt;-X POST \&lt;BR /&gt;-H 'Square-Version: 2020-04-22' \&lt;BR /&gt;-H 'Authorization: Bearer [XXX_HIDDEN]' \&lt;BR /&gt;-H 'Content-Type: application/json' \&lt;BR /&gt;-d '{&lt;BR /&gt;"idempotency_key": "xxx",&lt;BR /&gt;"object": {&lt;BR /&gt;"id": "7JDYZEWSERLR36SU7NYXSDOI",&lt;BR /&gt;"type": "IMAGE",&lt;BR /&gt;"present_at_all_locations": true,&lt;BR /&gt;"present_at_location_ids": [&lt;BR /&gt;"HIDDEN"&lt;BR /&gt;],&lt;BR /&gt;"version": 15[Redacted]2,&lt;BR /&gt;"image_data": {&lt;BR /&gt;"caption": "Crab",&lt;BR /&gt;"name": "Crabby",&lt;BR /&gt;"url": "&lt;A href="https://cdn11.bigcommerce.com/s-hgmqs37keq/images/stencil/original/products/117/3268/10897_Holy_Crab_Wunderkammer_10__19014.1587585950.jpg" target="_blank" rel="noopener"&gt;https://cdn11.bigcommerce.com/s-hgmqs37keq/images/stencil/original/products/117/3268/10897_Holy_Crab_Wunderkammer_10__19014.1587585950.jpg&lt;/A&gt;"&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}'&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;THis is the response I am getting.&amp;nbsp; What does this error mean?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;{&lt;BR /&gt;"errors": [&lt;BR /&gt;{&lt;BR /&gt;"category": "INVALID_REQUEST_ERROR",&lt;BR /&gt;"code": "INVALID_VALUE",&lt;BR /&gt;"detail": "Invalid object: Invalid Object with Id: 7JDYZEWSERLR36SU7NYXSDOI\n[merchant_token=HIDDEN] Updated object 7JDYZEWSERLR36SU7NYXSDOI has incorrect type 2 (1 expected)."&lt;BR /&gt;}&lt;BR /&gt;]&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Thu, 07 May 2020 22:43:14 GMT</pubDate>
      <guid>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Getting-a-strange-API-error-when-trying-to-post-an-image-Why/m-p/167812#M95803</guid>
      <dc:creator>hiolife</dc:creator>
      <dc:date>2020-05-07T22:43:14Z</dc:date>
    </item>
    <item>
      <title>Re: Getting a strange API error when trying to post an image</title>
      <link>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Getting-a-strange-API-error-when-trying-to-post-an-image-Why/m-p/167846#M95804</link>
      <description>&lt;P&gt;I realized that the ID it is expecting is the ID of the image.&amp;nbsp; However, I am trying to create a new image, so how can there be an ID?&lt;/P&gt;</description>
      <pubDate>Sat, 02 May 2020 12:32:13 GMT</pubDate>
      <guid>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Getting-a-strange-API-error-when-trying-to-post-an-image-Why/m-p/167846#M95804</guid>
      <dc:creator>hiolife</dc:creator>
      <dc:date>2020-05-02T12:32:13Z</dc:date>
    </item>
    <item>
      <title>Re: Getting a strange API error when trying to post an image</title>
      <link>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Getting-a-strange-API-error-when-trying-to-post-an-image-Why/m-p/169810#M95805</link>
      <description>&lt;P&gt;Hey &lt;a href="https://community.squareup.com/t5/user/viewprofilepage/user-id/274514"&gt;@hiolife&lt;/a&gt;-&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Thanks for posting in the Seller Community.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;I escalated this to our API team, and they said they believe the issue is occurring because you're&amp;nbsp;using the URL:&amp;nbsp;&lt;A href="https://slack-redir.net/link?url=https%3A%2F%2Fconnect.squareup.com%2Fv2%2Fcatalog%2Fobject" target="_blank"&gt;https://connect.squareup.com/v2/catalog/object&lt;/A&gt;, when you should be using:&amp;nbsp;&lt;A href="https://slack-redir.net/link?url=https%3A%2F%2Fconnect.squareup.com%2Fv2%2Fcatalog%2Fimages" target="_blank"&gt;https://connect.squareup.com/v2/catalog/images&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;I hope this helps. Let me know if not!&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":light_bulb:"&gt;💡&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 May 2020 22:42:29 GMT</pubDate>
      <guid>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Getting-a-strange-API-error-when-trying-to-post-an-image-Why/m-p/169810#M95805</guid>
      <dc:creator>isabelle</dc:creator>
      <dc:date>2020-05-07T22:42:29Z</dc:date>
    </item>
  </channel>
</rss>

