<?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: How can I recreate a custom object after delete? in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/How-can-I-recreate-a-custom-object-after-delete/m-p/413116#M40934</link>
    <description>&lt;P&gt;I got the ID when I run get schema with archived=true. Then I tried to delete/purge it but both failed. After that I can't get the ID from `get` anymore. So the question now is how to get and delete the old object?&lt;/P&gt;</description>
    <pubDate>Fri, 26 Feb 2021 10:06:32 GMT</pubDate>
    <dc:creator>JZhao</dc:creator>
    <dc:date>2021-02-26T10:06:32Z</dc:date>
    <item>
      <title>How can I recreate a custom object after delete?</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/How-can-I-recreate-a-custom-object-after-delete/m-p/412011#M40834</link>
      <description>&lt;P&gt;&amp;nbsp;I created a custom object but deleted it. After that I try to create it again with different associations, I got below error. It says "&lt;SPAN&gt;p8013920_device" already exists. I already deleted it and I can't find it in my dashboard. Why do I get this error message?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"status"&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;"error"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"message"&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;"p8013920_device already exists"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"correlationId"&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;"aa470271-83ba-44c5-b41c-95e7189220f6"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"context"&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"name"&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;[&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"p8013920_device"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;},&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"category"&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;"OBJECT_ALREADY_EXISTS"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"subCategory"&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;"InboundDbObjectTypeError.OBJECT_TYPE_ALREADY_EXIST"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;```&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 23 Feb 2021 21:45:53 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/How-can-I-recreate-a-custom-object-after-delete/m-p/412011#M40834</guid>
      <dc:creator>JZhao</dc:creator>
      <dc:date>2021-02-23T21:45:53Z</dc:date>
    </item>
    <item>
      <title>Re: How can I recreate a custom object after delete?</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/How-can-I-recreate-a-custom-object-after-delete/m-p/412138#M40837</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/158229"&gt;@JZhao&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After you delete, you will need to purge to fully remove the schema:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;/crm-object-schemas/v3/schemas/{objectType}/purge&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Greets,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ronald&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Feb 2021 07:47:10 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/How-can-I-recreate-a-custom-object-after-delete/m-p/412138#M40837</guid>
      <dc:creator>RMones</dc:creator>
      <dc:date>2021-02-24T07:47:10Z</dc:date>
    </item>
    <item>
      <title>Re: How can I recreate a custom object after delete?</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/How-can-I-recreate-a-custom-object-after-delete/m-p/412153#M40838</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/154476"&gt;@RMones&lt;/a&gt;&amp;nbsp;could you send me the link for this API doc? I tried but got an error not sure what I did wrong&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"status"&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;"error"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"message"&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;"Unable to infer object type from: p8013920_device"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"correlationId"&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;"a6b82746-f3a9-4167-b0cf-8d3c7de80e9c"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 24 Feb 2021 08:53:31 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/How-can-I-recreate-a-custom-object-after-delete/m-p/412153#M40838</guid>
      <dc:creator>JZhao</dc:creator>
      <dc:date>2021-02-24T08:53:31Z</dc:date>
    </item>
    <item>
      <title>Re: How can I recreate a custom object after delete?</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/How-can-I-recreate-a-custom-object-after-delete/m-p/412161#M40839</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/158229"&gt;@JZhao&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.hubspot.com/docs/api/crm/crm-custom-objects" target="_blank"&gt;https://developers.hubspot.com/docs/api/crm/crm-custom-objects&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You can only delete a custom object after all object instances of that type are deleted. To delete a custom object, use:&lt;SPAN&gt;&amp;nbsp;&lt;BR /&gt;DELETE &lt;A href="https://api.hubapi.com/crm/v3/schemas/{objectType" target="_blank"&gt;https://api.hubapi.com/crm/v3/schemas/{objectType&lt;/A&gt;}.&lt;/SPAN&gt;&amp;nbsp;If you need to create a new custom object with the same name as the deleted object, you must hard delete the schema by&lt;SPAN&gt;&amp;nbsp;DELETE &lt;A href="https://api.hubapi.com/crm/v3/schemas/{objectType}?archived=true" target="_blank"&gt;https://api.hubapi.com/crm/v3/schemas/{objectType}?archived=true&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;There are two endpoints:&lt;/P&gt;&lt;P&gt;DELETE /crm/v3/schemas/{objectType}/purge&lt;BR /&gt;DELETE /crm/v3/schemas/{objectType}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used the NodeJS library of Hubspot and there I have to use to different functions:&lt;/P&gt;&lt;P&gt;hubspotClient.crm.schemas.coreApi.archive(fullyQualifiedName) where&amp;nbsp;fullyQualifiedName =&amp;nbsp;&lt;SPAN&gt;p99688696_car&amp;nbsp;in the Cars Examle in the documentation&lt;/SPAN&gt;&lt;BR /&gt;hubspotClient.crm.schemas.defaultApi.purge(objectTypeId) where objectTypeId = 2-529881 in the Cars Examle in the documentation;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Greets Ronald&lt;/P&gt;</description>
      <pubDate>Wed, 24 Feb 2021 09:08:10 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/How-can-I-recreate-a-custom-object-after-delete/m-p/412161#M40839</guid>
      <dc:creator>RMones</dc:creator>
      <dc:date>2021-02-24T09:08:10Z</dc:date>
    </item>
    <item>
      <title>Re: How can I recreate a custom object after delete?</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/How-can-I-recreate-a-custom-object-after-delete/m-p/412589#M40881</link>
      <description>&lt;P&gt;I tried to run purge API but it returns this error.&amp;nbsp; Is the object type mean object id? if not what object type I should put in the request?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"status"&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;"error"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"message"&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;"Unable to infer object type from: p8013920_device"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"correlationId"&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;"e78713cc-ead4-4491-a33d-505deabbf1a0"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 25 Feb 2021 03:20:43 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/How-can-I-recreate-a-custom-object-after-delete/m-p/412589#M40881</guid>
      <dc:creator>JZhao</dc:creator>
      <dc:date>2021-02-25T03:20:43Z</dc:date>
    </item>
    <item>
      <title>Re: How can I recreate a custom object after delete?</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/How-can-I-recreate-a-custom-object-after-delete/m-p/412640#M40887</link>
      <description>&lt;P&gt;The ObjectTypeId is returned with the call when you create a custom object.&lt;/P&gt;&lt;P&gt;Checkout the docmentation:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.hubspot.com/docs/api/crm/crm-custom-objects" target="_blank"&gt;https://developers.hubspot.com/docs/api/crm/crm-custom-objects&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and search for&amp;nbsp;Fetching Object Schema.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2021 08:09:07 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/How-can-I-recreate-a-custom-object-after-delete/m-p/412640#M40887</guid>
      <dc:creator>RMones</dc:creator>
      <dc:date>2021-02-25T08:09:07Z</dc:date>
    </item>
    <item>
      <title>Re: How can I recreate a custom object after delete?</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/How-can-I-recreate-a-custom-object-after-delete/m-p/412651#M40890</link>
      <description>&lt;P&gt;I didn't save the object id when I delete the custom object. What I can get is when I recreate the object, I see this output:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"status"&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;"error"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"message"&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;"p8013920_device already exists"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"correlationId"&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;"90cbbd01-3715-4424-9b98-5b196c525470"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"context"&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"name"&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;[&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"p8013920_device"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;},&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"category"&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;"OBJECT_ALREADY_EXISTS"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"subCategory"&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;"InboundDbObjectTypeError.OBJECT_TYPE_ALREADY_EXIST"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Is `p8013920_device` the object type id? If not, how can I get the object type id?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 25 Feb 2021 09:23:37 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/How-can-I-recreate-a-custom-object-after-delete/m-p/412651#M40890</guid>
      <dc:creator>JZhao</dc:creator>
      <dc:date>2021-02-25T09:23:37Z</dc:date>
    </item>
    <item>
      <title>Re: How can I recreate a custom object after delete?</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/How-can-I-recreate-a-custom-object-after-delete/m-p/413111#M40931</link>
      <description>&lt;P&gt;Could you give me some guidence on this? My project is completed blocked since I am not able to create a custom object and I am not able to delete the object either, so that I am not able to create the object.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;when I create a object, I get this error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"status"&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;"error"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"message"&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;"p8013920_device already exists"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"correlationId"&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;"03487491-b106-4044-b72c-279e84fbfd29"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"context"&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"name"&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;[&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"p8013920_device"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;},&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"category"&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;"OBJECT_ALREADY_EXISTS"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"subCategory"&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;"InboundDbObjectTypeError.OBJECT_TYPE_ALREADY_EXIST"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;when I purge the deleted object, I got this error:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"status"&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;"error"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"message"&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;"Couldn't find soft-deleted object type(s) for: ObjectTypeId{metaTypeId=2, innerId=1435617}"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"correlationId"&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;"cb539a7b-3a7a-4cc1-b9df-3057948421f5"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"category"&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;"VALIDATION_ERROR"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;when I delete the with "archived=true" parameter, I get this error.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"status"&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;"error"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"message"&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;"Invalid object or event type id: 2-1435617"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"correlationId"&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;"f8ccc31f-48b0-4854-abdb-3006c575b3d8"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 26 Feb 2021 09:59:22 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/How-can-I-recreate-a-custom-object-after-delete/m-p/413111#M40931</guid>
      <dc:creator>JZhao</dc:creator>
      <dc:date>2021-02-26T09:59:22Z</dc:date>
    </item>
    <item>
      <title>Re: How can I recreate a custom object after delete?</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/How-can-I-recreate-a-custom-object-after-delete/m-p/413114#M40932</link>
      <description>&lt;P&gt;How do you get the ObjectId? Had you saved it? It looks you are using the wrong objectId&lt;/P&gt;</description>
      <pubDate>Fri, 26 Feb 2021 10:02:54 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/How-can-I-recreate-a-custom-object-after-delete/m-p/413114#M40932</guid>
      <dc:creator>RMones</dc:creator>
      <dc:date>2021-02-26T10:02:54Z</dc:date>
    </item>
    <item>
      <title>Re: How can I recreate a custom object after delete?</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/How-can-I-recreate-a-custom-object-after-delete/m-p/413116#M40934</link>
      <description>&lt;P&gt;I got the ID when I run get schema with archived=true. Then I tried to delete/purge it but both failed. After that I can't get the ID from `get` anymore. So the question now is how to get and delete the old object?&lt;/P&gt;</description>
      <pubDate>Fri, 26 Feb 2021 10:06:32 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/How-can-I-recreate-a-custom-object-after-delete/m-p/413116#M40934</guid>
      <dc:creator>JZhao</dc:creator>
      <dc:date>2021-02-26T10:06:32Z</dc:date>
    </item>
    <item>
      <title>Re: How can I recreate a custom object after delete?</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/How-can-I-recreate-a-custom-object-after-delete/m-p/682089#M55999</link>
      <description>&lt;P&gt;Did you ever sort this out? I am getting the same response trying to purge a deleted object.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Aug 2022 13:30:55 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/How-can-I-recreate-a-custom-object-after-delete/m-p/682089#M55999</guid>
      <dc:creator>eliot_martin</dc:creator>
      <dc:date>2022-08-18T13:30:55Z</dc:date>
    </item>
    <item>
      <title>Re: How can I recreate a custom object after delete?</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/How-can-I-recreate-a-custom-object-after-delete/m-p/780615#M63059</link>
      <description>&lt;P&gt;I had the same problem, and after some hints from support and some searching and experimenting I managed to work out an answer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You need to perform&lt;/P&gt;&lt;P&gt;DELETE &lt;A href="https://api.hubspot.com/crm/v3/schemas/[objectTypeId]/purge" target="_blank" rel="noopener"&gt;https://api.hubspot.com/crm/v3/schemas/[objectTypeId]/purge&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The documentation is (currently) wrong, you can't use the objectType as the parameter for purge. Instead, you need the objectTypeId, which is a value given to you as a property in the JSON data returned when you create the custom schema. It looks like 2-12345678.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There seems to be no way to find out what the objectTypeId is once you've deleted the custom schema. The error when you try to create a new schema with the same name as the deleted one doesn't tell you what the objectTypeId is either, which is a bit of a problem.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Apr 2023 23:01:49 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/How-can-I-recreate-a-custom-object-after-delete/m-p/780615#M63059</guid>
      <dc:creator>mathew_murphy</dc:creator>
      <dc:date>2023-04-11T23:01:49Z</dc:date>
    </item>
    <item>
      <title>Re: How can I recreate a custom object after delete?</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/How-can-I-recreate-a-custom-object-after-delete/m-p/780618#M63060</link>
      <description>&lt;P&gt;Correction: There &lt;EM&gt;&lt;U&gt;is&lt;/U&gt;&lt;/EM&gt; a way to do it without the customObjectId, &lt;A href="https://community.hubspot.com/t5/APIs-Integrations/Delete-Custom-Object-Error/m-p/422651/highlight/true#M41970" target="_blank" rel="noopener"&gt;found here&lt;/A&gt;! Phew!&lt;/P&gt;&lt;PRE&gt;https://api.hubapi.com/crm/v3/schemas/{objectType}?archived=true&lt;/PRE&gt;&lt;P&gt;Apparently the purge endpoint is deprecated.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Apr 2023 23:01:05 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/How-can-I-recreate-a-custom-object-after-delete/m-p/780618#M63060</guid>
      <dc:creator>mathew_murphy</dc:creator>
      <dc:date>2023-04-11T23:01:05Z</dc:date>
    </item>
  </channel>
</rss>

