APIs & Integrations

okoula
メンバー

Need help with translatable fields in JSON

Hello,

 

I am struggling with the translation of website page via HubSpot API.

 

The problem is:

I want to translate the simple website page created from template. The content of the page is just Lorem Ipsum text: 

okoula_0-1638450917781.png

When I obtain the page JSON data from HubSpot API, there are MANY fields that contain the same Lorem Ipsum content: post_body, post_email_content, post_list_content, post_summary, meta.post_summary, meta.post_body

 

Why there is so many fields containing the same value? And which of these fields is considered to be the real value displayed in the UI (as on the picture)? I haven't found any mention in API documentation. My use case is that I download the content, translate it in our system, and then upload it back to HubSpot via API.

 

We use these endpoints: 

download:  GET content/api/v2/pages/ + pageId

upload: PUT content/api/v2/pages/ + pageId

 

What is the correct way to upload new content to the page so that it is replaced in the page itself?

 

Thank you,

 

Ondrej K.

 

0 いいね!
1件の返信
dennisedson
HubSpot製品開発チーム
HubSpot製品開発チーム

Need help with translatable fields in JSON

@Bryantworks ,

have you messed around much with this?

0 いいね!