APIs & Integrations

IvanSierra
参加者

add properties in post of companies

解決

good afternoon,

I would like to know how to add the nit property in this post method

https://api.hubapi.com/crm/v3/objects/companies/search?properties=nit&hapikey=XXX&archived=false

this is the json
{
"sorts": [
{
"propertyName": "createdate",
"direction": "DESCENDING"
}
]
}

and it works fine and brings it down but i add the nit property and it doesn't bring it.

0 いいね!
2件の承認済みベストアンサー
dennisedson
解決策
HubSpot製品開発チーム
HubSpot製品開発チーム

add properties in post of companies

解決

Hi @IvanSierra 

You would add the property to the json body and not to the url

"properties": [
    "nit"
  ]

元の投稿で解決策を見る

0 いいね!
dennisedson
解決策
HubSpot製品開発チーム
HubSpot製品開発チーム

add properties in post of companies

解決

@IvanSierra 

The limit is an additional body parameter.  I encourage you to go to the docs and use the examples available for the endpoints.  You can add the properties and it will show up in the code to the right.  You can even run the code there! (see screengrab)

CRM_API___Contacts.png

If there is paging, it will be displayed in the response like this:

 "paging": {
    "next": {
      "link": "?after=NTI1Cg%3D%3D",
      "after": "NTI1Cg%3D%3D"
    }
  }

 

元の投稿で解決策を見る

0 いいね!
3件の返信
IvanSierra
参加者

add properties in post of companies

解決

denisse thanks,

 

One last question, how do I see the paging and how do I send the limit so that it is not 10 is that the url does not work for me and in the answer it does not bring me the paging

0 いいね!
dennisedson
解決策
HubSpot製品開発チーム
HubSpot製品開発チーム

add properties in post of companies

解決

@IvanSierra 

The limit is an additional body parameter.  I encourage you to go to the docs and use the examples available for the endpoints.  You can add the properties and it will show up in the code to the right.  You can even run the code there! (see screengrab)

CRM_API___Contacts.png

If there is paging, it will be displayed in the response like this:

 "paging": {
    "next": {
      "link": "?after=NTI1Cg%3D%3D",
      "after": "NTI1Cg%3D%3D"
    }
  }

 

0 いいね!
dennisedson
解決策
HubSpot製品開発チーム
HubSpot製品開発チーム

add properties in post of companies

解決

Hi @IvanSierra 

You would add the property to the json body and not to the url

"properties": [
    "nit"
  ]
0 いいね!