Title: Create custom post type
Last modified: August 31, 2016

---

# Create custom post type

 *  Resolved [digidev](https://wordpress.org/support/users/digidev/)
 * (@digidev)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/create-custom-post-type/)
 * I’m trying to create a custom post type via this API to no avail. I did not see
   the API call in docs either (POST probably?) – post type is mainly built with
   ACF data so I figured I could add the post somehow via this API. Am I mistaken
   and is this not possible?
 * _[http://mylocalpage/wp-json/acf/v2](http://mylocalpage/wp-json/acf/v2)_ shows
   my custom post type and route for
    /acf/v2/my-custom-post-type/(?P<id>[\\d]+)/?(?
   P<field>[\\w\\-\\_]+)?
 * With this I can easily GET or update (PUT) stuff, but how to actually create 
   a post? I tried only
    [http://mylocalpage/wp-json/acf/v2/my-custom-post-type](http://mylocalpage/wp-json/acf/v2/my-custom-post-type)
   and passing POST data to create it, but it says that ‘No route was found’.
 * I’m probably kicking in the dark here somehow.
 * Thanks for any help.
 * [https://wordpress.org/plugins/acf-to-rest-api/](https://wordpress.org/plugins/acf-to-rest-api/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [saadibrahim](https://wordpress.org/support/users/saadibrahim/)
 * (@saadibrahim)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/create-custom-post-type/#post-7414777)
 * Hey, look at this page:
 * [http://v2.wp-api.org/extending/custom-content-types/](http://v2.wp-api.org/extending/custom-content-types/)
 * you dont need to do much, just add the rest api parameter to your post type registration
   code.
 *  Thread Starter [digidev](https://wordpress.org/support/users/digidev/)
 * (@digidev)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/create-custom-post-type/#post-7414778)
 * Thanks, I figured it out already 🙂 You dont even need acf REST here, you can
   do it using normal wp/v2/your_post_type_here.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Create custom post type’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/acf-to-rest-api_cc0001.svg)
 * [ACF to REST API](https://wordpress.org/plugins/acf-to-rest-api/)
 * [Support Threads](https://wordpress.org/support/plugin/acf-to-rest-api/)
 * [Active Topics](https://wordpress.org/support/plugin/acf-to-rest-api/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/acf-to-rest-api/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/acf-to-rest-api/reviews/)

## Tags

 * [ajax](https://wordpress.org/support/topic-tag/ajax/)
 * [post](https://wordpress.org/support/topic-tag/post/)

 * 2 replies
 * 2 participants
 * Last reply from: [digidev](https://wordpress.org/support/users/digidev/)
 * Last activity: [9 years, 11 months ago](https://wordpress.org/support/topic/create-custom-post-type/#post-7414778)
 * Status: resolved