Question: When creating a new object record, how is the new data sent along?
- In a headers object
- In a body object
- In the query parameters
- In a pug template
Explanation
When creating a new object record, the submitted field values are sent in the request body. In HubSpot CRM APIs, a POST request uses a JSON body containing a properties object. The headers handle authentication and content type, while query parameters modify how the request is processed. The body carries the actual new record data that should be written to the CRM. This structure separates access details from the data being created.
Why the other options are incorrect
Headers object This is incorrect because headers carry request metadata, not the new record field values.
Query parameters This is incorrect because query parameters modify the request but do not carry the main record payload.
Pug template This is incorrect because Pug is used for server-side HTML templating, not sending API record data.
Source for verification
https://developers.hubspot.com/docs/guides/api/crm/using-object-apis
The answer(s) to the question is highlighted in the BOLD text above. You can also find more questions and answers related to the exams on the "Integrating With HubSpot I: Foundations" page.
