0

Hello I want to edit the post by rest api. i login succesfully with admin access but still i get

when logging in i get response

{'success': True,
 'redirectTo': 'https://cannedsplam.com/wp-admin/'}

But when i need to edit i cannot

{'code': 'rest_cannot_edit',
 'message': 'Sorry, you are not allowed to edit this post.',
 'data': {'status': 401}}

the endpoint is /wp-json/ldlms/v1/sfwd-topic/291

and the plugin is LearnDash Lms

2
  • 1
    You'll have to ask this of LearnDash's support. Third-party plugin support is off topic here. Commented Jan 14, 2021 at 2:28
  • I also tried the same with pages endpoint the same i got. Commented Jan 14, 2021 at 2:44

1 Answer 1

0

The user with which you are trying to update do not have enough permissions. Change the role to Editor and try it should work.

1
  • 2
    But OP logged in with an admin account. Shouldn't that automatically have editor permissions? Commented Sep 4, 2024 at 13:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.