Home › Forums › Support › Is there any way to access “elements” with WP rest API? This topic has 5 replies, 2 voices, and was last updated 2 years, 11 months ago by Tom. Viewing 6 posts - 1 through 6 (of 6 total) Author Posts March 30, 2023 at 10:02 am #2589209 gary Hi there, I am looking for a way to change the elements in generatepress through the WP rest api, is there any way? March 30, 2023 at 7:09 pm #2589752 TomLead Developer Lead Developer Hi there, Elements are a post type like pages or posts, so you can access them by querying the gp_elements post type. I’m not sure of everything core allows you to do with posts and the API, but anything you can do with posts you should be able to do with Elements. Let us know if you need more info 🙂 April 3, 2023 at 9:50 am #2594970 gary Hi there, thanks for the answer. Where do I exactly query gp_elements? I’m quite good with WP rest API but can’t find any good explanation on how to add stuff to gp_elements April 3, 2023 at 10:00 am #2594984 gary assuming its :{domain_name}/wp-json/wp/v2/gp_elements/{pageid} ? I’m trying to add stuff to field “content” but keep getting 200 repsonse and nothing is changing April 3, 2023 at 10:06 am #2594991 gary Got it working! The right field was “rendered” April 3, 2023 at 6:07 pm #2595466 TomLead Developer Lead Developer Glad you got it sorted! 🙂 Author Posts Viewing 6 posts - 1 through 6 (of 6 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In