Skip to main content
updating smoe words
Source Link
Fenix
  • 111
  • 1
  • 10

I'm using WP Rest API plugin to use Wordpress as backend of iOS app. I need to update the username using the following endpoint

http://......com/wp-json/wp/v2/users/1?context=edit

And this is the response I got.

{
  "code": "rest_cannot_edit",
  "message": "Sorry, you are not allowed to edit resource.",
  "data": {
    "status": 401
  }
}

It seems that the Rest API plugin does not support user profile update, or am I missing some authentication parameters?

Thanks in advance, looking forward athe best solution.

I'm using WP Rest API plugin to use Wordpress as backend of iOS app. I need to update the username using the following endpoint

http://......com/wp-json/wp/v2/users/1?context=edit

And this is the response I got.

{
  "code": "rest_cannot_edit",
  "message": "Sorry, you are not allowed to edit resource.",
  "data": {
    "status": 401
  }
}

It seems that the Rest API plugin does not support user profile update, or am I missing some authentication parameters?

Thanks in advance, looking forward a best solution.

I'm using WP Rest API plugin to use Wordpress as backend of iOS app. I need to update the username using the following endpoint

http://......com/wp-json/wp/v2/users/1?context=edit

And this is the response I got.

{
  "code": "rest_cannot_edit",
  "message": "Sorry, you are not allowed to edit resource.",
  "data": {
    "status": 401
  }
}

It seems that the Rest API plugin does not support user profile update, or am I missing some authentication parameters?

Thanks in advance, looking forward the best solution.

Source Link
Fenix
  • 111
  • 1
  • 10

WP Rest API v2.0 user profile update issue

I'm using WP Rest API plugin to use Wordpress as backend of iOS app. I need to update the username using the following endpoint

http://......com/wp-json/wp/v2/users/1?context=edit

And this is the response I got.

{
  "code": "rest_cannot_edit",
  "message": "Sorry, you are not allowed to edit resource.",
  "data": {
    "status": 401
  }
}

It seems that the Rest API plugin does not support user profile update, or am I missing some authentication parameters?

Thanks in advance, looking forward a best solution.