CMS Development

silvacarl
Member

POST /cms/v3/pages/site-pages minimum number or required parameters?

SOLVE

Does anyone have an example of the minimum number or required parameters for POST /cms/v3/pages/site-pages?  or for POST/cms/v3/pages/site-pages/batch/create?

 

We want to prepopulate a site for a client with pages based on a sitemap they created so they can then fill in the content, etc.

 

Any assistance is greatly appreciated!

1 Accepted solution
RomanGruit
Solution
Contributor

POST /cms/v3/pages/site-pages minimum number or required parameters?

SOLVE

Hey there. Thanks, @dennisedson, and great question @silvacarl !

The bare minimum for cms/v3/pages/site-pages endpoint is to send one parameter - name.
Like that

{
"name": "Products"
}


Hope that's helpful. Feel free to reach out with any other questions!
Roman

View solution in original post

3 Replies 3
silvacarl
Member

POST /cms/v3/pages/site-pages minimum number or required parameters?

SOLVE

perfect will try it out.  thx!!

RomanGruit
Solution
Contributor

POST /cms/v3/pages/site-pages minimum number or required parameters?

SOLVE

Hey there. Thanks, @dennisedson, and great question @silvacarl !

The bare minimum for cms/v3/pages/site-pages endpoint is to send one parameter - name.
Like that

{
"name": "Products"
}


Hope that's helpful. Feel free to reach out with any other questions!
Roman

dennisedson
Community Manager
Community Manager

POST /cms/v3/pages/site-pages minimum number or required parameters?

SOLVE

@RomanGruit knows a thing or two about the cms API endpoints.  Maybe he can help out here!

Thanks,

Dennis




HubSpot Community Developer ShowMake sure to subscribe to our YouTube channel
where you can find the HubSpot Community Developer Show