APIs & Integrations

JDoe49
Mitglied

API issue: Unable to set value for layoutSections > dnd_area > params on page from JSON

lösung

Hi,


My hubspot account id: 23512960


Website page: http://23512960.hs-sites.com/deving-page

Page title, meta tags and decription parameters changing fine using hubspot api.

I'm trying to change text 'Our locations' using api that coming from 'html' parameter from 'layoutSections' json object and passing complete updated 'layoutSections' parameter to api.

But api giving error: "Unable to set value for layoutSections > dnd_area > params on page from JSON"

Please verfiy what issue in request.

API request and resonse detail is in txt file: https://analytico.demo.esteplogic.com/update_api_request_parameters_response.txt

0 Upvotes
1 Akzeptierte Lösung
albertsg
Lösung
Ratgeber/-in

API issue: Unable to set value for layoutSections > dnd_area > params on page from JSON

lösung

Hi @JDoe49, maybe try to GET the page, see the current value of the field you are trying to update and compare it with what you are passing to PATCH. Maybe you are passing the value with an incorrect format or you are not accessing the variable properly. 



Did my answer help you? Mark it as a solution


Book time with me

You can also connect with me on LinkedIn



Lösung in ursprünglichem Beitrag anzeigen

0 Upvotes
5 Antworten
JDoe49
Mitglied

API issue: Unable to set value for layoutSections > dnd_area > params on page from JSON

lösung

Hi Support,
have you checked above issue?, any solution for it?

0 Upvotes
Jaycee_Lewis
Community-Manager/-in
Community-Manager/-in

API issue: Unable to set value for layoutSections > dnd_area > params on page from JSON

lösung

Hi, @JDoe49 👋 Thanks for reaching out. To confirm, you are using this endpoint, correct? PATCH/cms/v3/pages/site-pages/{objectId}

 

Hey, @stefen @albertsg, do you have any tips or additional troubleshooting steps you could take here?

 

Best,

Jaycee

linkedin

Jaycee Lewis

Developer Community Manager

Community | HubSpot

0 Upvotes
JDoe49
Mitglied

API issue: Unable to set value for layoutSections > dnd_area > params on page from JSON

lösung

Yes @Jaycee_Lewis , using same PATCH /cms/v3/pages/site-pages/{objectId}

0 Upvotes
albertsg
Lösung
Ratgeber/-in

API issue: Unable to set value for layoutSections > dnd_area > params on page from JSON

lösung

Hi @JDoe49, maybe try to GET the page, see the current value of the field you are trying to update and compare it with what you are passing to PATCH. Maybe you are passing the value with an incorrect format or you are not accessing the variable properly. 



Did my answer help you? Mark it as a solution


Book time with me

You can also connect with me on LinkedIn



0 Upvotes
JDoe49
Mitglied

API issue: Unable to set value for layoutSections > dnd_area > params on page from JSON

lösung

Hi,

 

- maybe try to GET the page, see the current value of the field you are trying to update and compare it with what you are passing to PATCH.

#I'm doing same, first getting page data by id using GET, then updating parameters in page response, and runnnig PATCH request.
All other parameters saving fine except layoutSections parameter from GET request.

0 Upvotes