I am using the REST API to create posts.
I am able to create normal posts, but I would like to create posts of custom type.
I am trying to
POST to the above URL with data as
title: 'Loreum Ipsum', content: 'Test Post', post_type: custom_type
which doesn't create the post of type
custom_type instead normal post is created.
I tried posting to
with the data,
title: 'Loreum Ipsum', content: 'Test Post',
but still it creates normal post.
I also have tried to send the data as
title: 'Loreum Ipsum', content: 'Test Post', type: custom_type
which also creates normal post.
I am using POSTMAN to send the data. What else should I try?
Any help or suggestions appreciated!