# 400 Bad Request - There was a problem with the request.

**URL:** <https://community.hubspot.com/t/400-bad-request-there-was-a-problem-with-the-request/61869>\
**Category:** APIs & Integrations\
**Tags:** php\
**Created:** [July 28, 2022, 12:41am UTC](https://community.hubspot.com/t/400-bad-request-there-was-a-problem-with-the-request/61869 "2022-07-28T00:41:16Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ryscr1pt](https://avatars.discourse-cdn.com/v4/letter/r/65b543/32.png) [@ryscr1pt](https://community.hubspot.com/u/ryscr1pt)\
**Post date:** [July 28, 2022, 12:41am UTC](https://community.hubspot.com/t/400-bad-request-there-was-a-problem-with-the-request/61869/1 "2022-07-28T00:41:16Z")

</div>

Hi,

I hit the wall configurintg the proper JSON format for my body request.

I’m using this endpoint, POST request.

` {{baseUrl}}/crm/v3/objects/notes/search`

JSON Body

```lia-code-sample
{
 "filterGroups": [
 {
 "filters": [
 {
 "value": "1627257600000",
 "propertyName": "createdate",
 "operator": "GTE"
 }
 ]
 }
 ]
}

```

Below is the full response, 400 Bad Request

```lia-code-sample
{
 "status": "error",
 "message": "There was a problem with the request.",
 "correlationId": "84fa3576-02fd-49a0-b498-95eab807523e"
}

```

Anyone has an idea why I keep getting 400 error?  
Thanks

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [July 28, 2022, 6:39pm UTC](https://community.hubspot.com/t/400-bad-request-there-was-a-problem-with-the-request/61869/2 "2022-07-28T18:39:30Z")

</div>

Hey, @ryscr1pt 🙌 Thanks for reaching out! Can you share the full request and response along with the error you are receiving, please? This will help the community better understand possible root causes, as well as allow for trying to recreate your example exactly and reproduce the same warning.

Thank you! — Jaycee

---

<div class="post-metadata">

**Author:** ![ryscr1pt](https://avatars.discourse-cdn.com/v4/letter/r/65b543/32.png) [@ryscr1pt](https://community.hubspot.com/u/ryscr1pt)\
**Post date:** [July 29, 2022, 12:18am UTC](https://community.hubspot.com/t/400-bad-request-there-was-a-problem-with-the-request/61869/3 "2022-07-29T00:18:21Z")

</div>

Hi Jaycee, updated my original request and included the response, as for the request, above is the only payload, excluding the header Authorization which I couldn’t share here for security purposes.

Thanks

---

<div class="post-metadata">

**Author:** ![LeeBartelme](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/leebartelme/32/95647_2.png) [@LeeBartelme](https://community.hubspot.com/u/LeeBartelme)\
**Post date:** [July 29, 2022, 2:50am UTC](https://community.hubspot.com/t/400-bad-request-there-was-a-problem-with-the-request/61869/4 "2022-07-29T02:50:20Z")

</div>

Change the `createdate` to `hs_createdate`.

Docs indicate the default returned properties for notes here: [Search the CRM - HubSpot docs](https://developers.hubspot.com/docs/api/crm/search)

---

<div class="post-metadata">

**Author:** ![ryscr1pt](https://avatars.discourse-cdn.com/v4/letter/r/65b543/32.png) [@ryscr1pt](https://community.hubspot.com/u/ryscr1pt)\
**Post date:** [July 29, 2022, 3:23am UTC](https://community.hubspot.com/t/400-bad-request-there-was-a-problem-with-the-request/61869/5 "2022-07-29T03:23:38Z")

</div>

Thanks for this LeeBartelme, it works now, the `hs_` only apply to the HubSpt properties or to all including custom properties?

I can see in the sample e.g.

`"propertyName": "firstname",`

It doesn’t have the ‘hs\_’ in it so I wonder where and when to apply the ‘hs\_’.

Thanks again

---

<div class="post-metadata">

**Author:** ![LeeBartelme](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/leebartelme/32/95647_2.png) [@LeeBartelme](https://community.hubspot.com/u/LeeBartelme)\
**Post date:** [July 29, 2022, 3:27am UTC](https://community.hubspot.com/t/400-bad-request-there-was-a-problem-with-the-request/61869/6 "2022-07-29T03:27:42Z")

</div>

HubSpot isn’t terrribly consistent with property names. For most objects, go to Settings and then Properties and find the property you want to investigate and click on it. In the sidebar, click the \</\> next to the label field to see the underlying property name to use in API calls.  
I’m not 100% sure where to view all of the activity properties. The easiest way I would suggest is first run a GET for a single result or a result list and in that result you should see the property names as well.
