# Sort parameter doesn't work with updatedAt

**URL:** <https://community.hubspot.com/t/sort-parameter-doesnt-work-with-updatedat/149487>\
**Category:** APIs & Integrations\
**Tags:** professional\
**Created:** [May 19, 2026, 10:32am UTC](https://community.hubspot.com/t/sort-parameter-doesnt-work-with-updatedat/149487 "2026-05-19T10:32:29Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![msdev](https://avatars.discourse-cdn.com/v4/letter/m/82dd89/32.png) [@msdev](https://community.hubspot.com/u/msdev)\
**Post date:** [May 19, 2026, 10:32am UTC](https://community.hubspot.com/t/sort-parameter-doesnt-work-with-updatedat/149487/1 "2026-05-19T10:32:29Z")

</div>

For the following API endpoint:  
[https://api.hubapi.com/cms/blogs/2026-03/authors](https://api.hubapi.com/cms/blogs/2026-03/authors)  
sort doesn’t work for updatedAt, additionally example in docs suggests it’s a POST request rather than a GET request, however in the reference it’s marked as a GET request.  
I tried the following (GET requests) query params:  
?sort=-updatedAt  
?sort=updatedAt  
?sort=-updated  
?sort=updated  
The POST request equivalent wants a body, I saw some examples on the forum so I tried passing it, but then I get into a different set of errors.  
“created” works perfectly, perhaps there is an internal name that is being used?  
Any ideas on how to solve this? updatedAt is the most relevant for my usecase thanks.

---

<div class="post-metadata">

**Author:** ![STierney](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/stierney/32/186066_2.png) [@STierney](https://community.hubspot.com/u/STierney)\
**Post date:** [May 19, 2026, 7:35pm UTC](https://community.hubspot.com/t/sort-parameter-doesnt-work-with-updatedat/149487/2 "2026-05-19T19:35:43Z")

</div>

Hey @msdev,  
Thanks for posting in the Community!  
I’m not seeing any pattern of error internally that would identify the cause of this behavior.  
I’d like to tag in a few experts here to see what insight they might have. @stefen, [@zach\_threadint](https://community.hubspot.com/t5/user/viewprofilepage/user-id/324811), and @BarryGrennan - any idea why @msdev is seeing these errors?  
Shane, Senior Community Moderator

---

<div class="post-metadata">

**Author:** ![zach\_threadint](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/zach_threadint/32/46318_2.png) [@zach\_threadint](https://community.hubspot.com/u/zach_threadint)\
**Post date:** [May 20, 2026, 4:13am UTC](https://community.hubspot.com/t/sort-parameter-doesnt-work-with-updatedat/149487/3 "2026-05-20T04:13:55Z")

</div>

Hi @msdev @STierney 👋

I’ve been able to replicate the issue flagged here by @msdev. The **sort** query parameter does not seem to be working as expected, at least according to [this documentation](https://developers.hubspot.com/docs/api-reference/latest/cms/blogs/authors/guide#sorting-and-paginating). Could you please take a deeper look into this, @STierney? 🙌

For example, the following 2 requests produced the exact same response, when actually we’d expect the 2 Author records to be ordered differently based on the supplied **sort** query parameter’s direction (i.e. _?sort=updatedAt_ and _?sort=-updatedAt_ -- where the difference between the 2 is the ‘-’ supplied immediately before updatedAt).

**Request 1**

```lia-code-sample
curl --location 'https://api.hubapi.com/cms/blogs/2026-03/authors?sort=-updatedAt' \
--header 'Authorization: Bearer pat-xxx-redacted-xxx'

```

**Request 2**

```lia-code-sample
curl --location 'https://api.hubapi.com/cms/blogs/2026-03/authors?sort=updatedAt' \
--header 'Authorization: Bearer pat-xxx-redacted-xxx'

```

**Identical response body for both above requests**

```lia-code-sample
{
 "total": 2,
 "results": [
 {
 "avatar": "https://app.hubspot.com/settings/avatar/d41d8cd98f00b204e9800998ecf8427e",
 "bio": "",
 "created": "2024-01-18T01:55:38.315Z",
 "deletedAt": "1970-01-01T00:00:00Z",
 "displayName": "Test Author",
 "email": "",
 "facebook": "",
 "fullName": "Test Author",
 "id": "90785153008",
 "language": "en",
 "linkedin": "",
 "name": "Test Author",
 "slug": "test-author",
 "twitter": "",
 "updated": "2024-01-18T01:55:38.315Z",
 "website": ""
 },
 {
 "avatar": "",
 "bio": "test author 2 bio",
 "created": "2026-05-20T03:52:49.745Z",
 "deletedAt": "1970-01-01T00:00:00Z",
 "displayName": "Test Author 2",
 "email": "test-author-2@example.com",
 "facebook": "",
 "fullName": "Test Author 2",
 "id": "407901951173",
 "language": "en",
 "linkedin": "",
 "name": "Test Author 2",
 "slug": "test-author-2",
 "twitter": "",
 "updated": "2026-05-20T03:52:49.745Z",
 "website": ""
 }
 ]
}

```

Furthermore, [the documentation’s “Sorting and paginating” example](https://developers.hubspot.com/docs/api-reference/latest/cms/blogs/authors/guide#sorting-and-paginating) seems to be incorrectly using the “POST” request method. Shouldn’t that be “GET” and then remove the “Content-Type” header?

I hope this proves helpful. Please let me know if you have any follow-up questions.

---

<div class="post-metadata">

**Author:** ![msdev](https://avatars.discourse-cdn.com/v4/letter/m/82dd89/32.png) [@msdev](https://community.hubspot.com/u/msdev)\
**Post date:** [May 20, 2026, 10:23am UTC](https://community.hubspot.com/t/sort-parameter-doesnt-work-with-updatedat/149487/4 "2026-05-20T10:23:23Z")

</div>

Hey Zach (and the rest of the team) thanks for getting back to me.  
Do you have an estimate as to how long before a fix is pushed?  
Thanks!

---

<div class="post-metadata">

**Author:** ![STierney](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/stierney/32/186066_2.png) [@STierney](https://community.hubspot.com/u/STierney)\
**Post date:** [May 20, 2026, 7:00pm UTC](https://community.hubspot.com/t/sort-parameter-doesnt-work-with-updatedat/149487/5 "2026-05-20T19:00:59Z")

</div>

Hey @msdev,  
I’ve flagged this with the team internally, and I will be sure to keep you posted as soon as I hear something!  
[@zach\_threadint](https://community.hubspot.com/t5/user/viewprofilepage/user-id/324811) - thank you so much for following up here! I’ll be sure to tag you into my follow-up!  
Shane, Senior Community Moderator

---

<div class="post-metadata">

**Author:** ![STierney](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/stierney/32/186066_2.png) [@STierney](https://community.hubspot.com/u/STierney)\
**Post date:** [June 9, 2026, 10:05pm UTC](https://community.hubspot.com/t/sort-parameter-doesnt-work-with-updatedat/149487/6 "2026-06-09T22:05:27Z")

</div>

Hey @msdev and [@zach\_threadint](https://community.hubspot.com/t5/user/viewprofilepage/user-id/324811),  
The team has confirmed that this was an internal error that has since been fixed! Would you mind confirming?  
Shane, Senior Community Moderator

---

<div class="post-metadata">

**Author:** ![zach\_threadint](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/zach_threadint/32/46318_2.png) [@zach\_threadint](https://community.hubspot.com/u/zach_threadint)\
**Post date:** [June 9, 2026, 10:35pm UTC](https://community.hubspot.com/t/sort-parameter-doesnt-work-with-updatedat/149487/7 "2026-06-09T22:35:16Z")

</div>

Hi @STierney 👋

Thanks for the update. I’m not seeing any difference yet. I’ll try again in the coming days.

---

<div class="post-metadata">

**Author:** ![zach\_threadint](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/zach_threadint/32/46318_2.png) [@zach\_threadint](https://community.hubspot.com/u/zach_threadint)\
**Post date:** [June 16, 2026, 12:58am UTC](https://community.hubspot.com/t/sort-parameter-doesnt-work-with-updatedat/149487/8 "2026-06-16T00:58:43Z")

</div>

Hi @STierney 👋

I’ve just tested again and am still seeing the same behaviour I described in [my first post on this topic](https://community.hubspot.com/t/sort-parameter-doesnt-work-with-updatedat/149487/3?u=zach_threadint). Please let me know if you have any follow-up questions.

---

<div class="post-metadata">

**Author:** ![Berangere](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/berangere/32/220784_2.png) [@Berangere](https://community.hubspot.com/u/Berangere)\
**Post date:** [June 16, 2026, 10:24am UTC](https://community.hubspot.com/t/sort-parameter-doesnt-work-with-updatedat/149487/10 "2026-06-16T10:24:00Z")

</div>

Hey @zach_threadint thanks so much for getting back to us and for your patience.

Let me check on this and I’ll update you as soon as possible.

Thanks,  
Bérangère

---

<div class="post-metadata">

**Author:** ![system](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/system/32/124_2.png) [@system](https://community.hubspot.com/u/system)\
**Post date:** [June 17, 2026, 7:00am UTC](https://community.hubspot.com/t/sort-parameter-doesnt-work-with-updatedat/149487/11 "2026-06-17T07:00:03Z")

</div>

Automatically bumped on June 17, 2026, 7:00am UTC



---

<div class="post-metadata">

**Author:** ![system](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/system/32/124_2.png) [@system](https://community.hubspot.com/u/system)\
**Post date:** [June 19, 2026, 7:00am UTC](https://community.hubspot.com/t/sort-parameter-doesnt-work-with-updatedat/149487/13 "2026-06-19T07:00:30Z")

</div>

Automatically bumped on June 19, 2026, 7:00am UTC



---

<div class="post-metadata">

**Author:** ![Berangere](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/berangere/32/220784_2.png) [@Berangere](https://community.hubspot.com/u/Berangere)\
**Post date:** [June 24, 2026, 4:53pm UTC](https://community.hubspot.com/t/sort-parameter-doesnt-work-with-updatedat/149487/14 "2026-06-24T16:53:50Z")

</div>

Hey @zach_threadint, thanks for your patience!

This is now fixed so you should be good to go!

Let me know if you have any questions, I am here for you!

Have a wonderful day!  
Bérangère

---

<div class="post-metadata">

**Author:** ![zach\_threadint](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/zach_threadint/32/46318_2.png) [@zach\_threadint](https://community.hubspot.com/u/zach_threadint)\
**Post date:** [June 25, 2026, 12:49am UTC](https://community.hubspot.com/t/sort-parameter-doesnt-work-with-updatedat/149487/15 "2026-06-25T00:49:52Z")

</div>

Hi @Berangere 👋

I’m still seeing the same behaviour I described in [my first post on this topic](https://community.hubspot.com/t/sort-parameter-doesnt-work-with-updatedat/149487/3). Please let me know if you have any follow-up questions.

---

<div class="post-metadata">

**Author:** ![STierney](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/stierney/32/186066_2.png) [@STierney](https://community.hubspot.com/u/STierney)\
**Post date:** [June 26, 2026, 6:58pm UTC](https://community.hubspot.com/t/sort-parameter-doesnt-work-with-updatedat/149487/16 "2026-06-26T18:58:12Z")

</div>

Hey @zach_threadint,

Stepping back in, as @Berangere is out for the weekend.

Our internal team has provided the following context (quoting in an effort to not mis-communicate any of this):

"Has the customer tried using `updated` yet? I checked the code, the actual field map key is `updated`. `updatedAt` won’t work.

When the sort parameter is provided, it gets converted to snake case before being used, `updatedAt` will becomes `updated_at`, but still doesn’t match the actual key `updated`.

I tested this in my portal, and sorting by `updated` works as expected.

Could you ask the customer to try using `updated` as the sort parameter?

Note: For “create”, the key should also be `created`, so the way the customer is currently sorting by `created` is correct."

Would you mind confirming this on your end for us?

Shane, Senior Community Moderator

---

<div class="post-metadata">

**Author:** ![zach\_threadint](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/zach_threadint/32/46318_2.png) [@zach\_threadint](https://community.hubspot.com/u/zach_threadint)\
**Post date:** [June 27, 2026, 12:02am UTC](https://community.hubspot.com/t/sort-parameter-doesnt-work-with-updatedat/149487/17 "2026-06-27T00:02:02Z")

</div>

Hi @STierney 👋

Thanks for the update. I can confirm that `updated`/ `-updated` and `created` / `-created`work as expected as values of the `sort` query string parameter. Just need the [documentation](https://developers.hubspot.com/docs/api-reference/latest/cms/blogs/authors/guide#sorting-and-paginating) updated to reflect this, as it still references `updatedAt` / `-updatedAt` and `createdAt` / `-createdAt`. Thanks very much 🙂

---

<div class="post-metadata">

**Author:** ![STierney](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/stierney/32/186066_2.png) [@STierney](https://community.hubspot.com/u/STierney)\
**Post date:** [June 27, 2026, 1:54am UTC](https://community.hubspot.com/t/sort-parameter-doesnt-work-with-updatedat/149487/18 "2026-06-27T01:54:54Z")

</div>

Hey @zach_threadint,

Thanks so much for confirming this! I’ve passed your request to get the documentation updated along to the team.

Thanks so much for flagging this, and thank you for your ongoing patience!

Shane, Senior Community Moderator
