wp-json API using application password
-
I created an application password in my Account Settings and tried to make wp-json API call using the endpoint wp-json/wp/v2/posts . But I am getting the error
data: { code: 'rest_cannot_create', message: 'Sorry, you are not allowed to create posts as this user.', data: [Object] }I spent a lot of time, to analyze the issue. but no luck. Did anyone face the similar issue. Need your help, thanks in advance.
BTW, I created the application password using the admin account.
The blog I need help with is: (visible only to logged in users)
-
Hi there! 👋🏼
I spent a lot of time, to analyze the issue. but no luck. Did anyone face the similar issue. Need your help, thanks in advance.
BTW, I created the application password using the admin account.
We don’t provide support for any 3rd-party code in general, but you might want to share your code (ensure you don’t share any API secrets, etc.) as the other developers might be able to jump in to help 😊
- The topic ‘wp-json API using application password’ is closed to new replies.