Jan 13, 20236:26 AM - edited Jan 13, 20236:30 AM
Participant
Custom Object Endpoints, not able to get custom object schema.
SOLVE
Hi,
I have created a custom object as "My_Object", But while executing the schema endpoint to get all the field schema, I am not getting the response, It should be return from field schema.
It seems like we can create a custom object with "underscore", but at the time of checking the schema part custom object is not working with "underscore".
When you call this endpoint here, you're getting all schemas.
crm/v3/schemas
There you can also find key for name. This is what you can use to get only the specific schema.
However, it is even better or more reliable to use objectType which looks like an ID similar to this 2-106804705. You can find that also in the first endpoint I mentioned, or just navigate to your object within the HubSpot UI and take a look at the URL.
With this ID you can always use the respective endpoints like this:
crm/v3/schemas/2-106804705
If you found this post helpful, consider helping others in the community to find answers faster by marking this as a solution. I'd really appreciate it.
When you call this endpoint here, you're getting all schemas.
crm/v3/schemas
There you can also find key for name. This is what you can use to get only the specific schema.
However, it is even better or more reliable to use objectType which looks like an ID similar to this 2-106804705. You can find that also in the first endpoint I mentioned, or just navigate to your object within the HubSpot UI and take a look at the URL.
With this ID you can always use the respective endpoints like this:
crm/v3/schemas/2-106804705
If you found this post helpful, consider helping others in the community to find answers faster by marking this as a solution. I'd really appreciate it.