{"id":806,"date":"2025-07-02T13:31:28","date_gmt":"2025-07-02T13:31:28","guid":{"rendered":"http:\/\/gogetmuscle.com\/?p=806"},"modified":"2025-07-02T17:45:06","modified_gmt":"2025-07-02T17:45:06","slug":"archived-flag-is-not-working-as-documented-and-its-ok-as-is","status":"publish","type":"post","link":"http:\/\/gogetmuscle.com\/index.php\/2025\/07\/02\/archived-flag-is-not-working-as-documented-and-its-ok-as-is\/","title":{"rendered":"archived flag is NOT working as documented (and it’s ok as is !)"},"content":{"rendered":"

about the api to retrieve the company<\/P>

\u00a0<\/P>

https:\/\/developers.hubspot.com\/docs\/reference\/api\/crm\/objects\/companies#get-%2Fcrm%2Fv3%2Fobjects%2Fcompanies<\/a><\/P>

\u00a0<\/P>

the flag archived is not working as documented<\/P>

\u00a0<\/P>

the doc states about this flag: “Whether to return only results that have been archived.”.
It is simply not true.<\/P>

\u00a0<\/P>

if archived=false, the api returns only the ‘live’ companies
if archived=true, the api return *both* ‘live’ and ‘softDeleted’ companies<\/P>

\u00a0<\/P>

I ask you if is a doc typo or is a bug\/misbehaviour<\/P>

\u00a0<\/P>

because it’s really usefull it works as it works now.<\/P>

\u00a0<\/P>

please, so, fix the doc and do not change anything<\/P>

please, someone from HS, reply to me because I have a software depending on actual undocumented\/unexpected behaviours<\/P><\/p>\n","protected":false},"excerpt":{"rendered":"

about the api to retrieve the company\u00a0https:\/\/developers.hubspot.com\/docs\/reference\/api\/crm\/objects\/companies#get-%2Fcrm%2Fv3%2Fobjects%2Fcompanies\u00a0the flag archived is not working as documented\u00a0the doc states about this flag: “Whether to return only results that have been archived.”.It is simply not true.\u00a0if archived=false, the api returns only the ‘live’ companiesif archived=true, the api return *both* ‘live’ and ‘softDeleted’ companies\u00a0I ask you if is a doc […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[14],"tags":[],"_links":{"self":[{"href":"http:\/\/gogetmuscle.com\/index.php\/wp-json\/wp\/v2\/posts\/806"}],"collection":[{"href":"http:\/\/gogetmuscle.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/gogetmuscle.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/gogetmuscle.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/gogetmuscle.com\/index.php\/wp-json\/wp\/v2\/comments?post=806"}],"version-history":[{"count":1,"href":"http:\/\/gogetmuscle.com\/index.php\/wp-json\/wp\/v2\/posts\/806\/revisions"}],"predecessor-version":[{"id":807,"href":"http:\/\/gogetmuscle.com\/index.php\/wp-json\/wp\/v2\/posts\/806\/revisions\/807"}],"wp:attachment":[{"href":"http:\/\/gogetmuscle.com\/index.php\/wp-json\/wp\/v2\/media?parent=806"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/gogetmuscle.com\/index.php\/wp-json\/wp\/v2\/categories?post=806"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/gogetmuscle.com\/index.php\/wp-json\/wp\/v2\/tags?post=806"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}