# How to update user metadata from iOS SDK?

**URL:** <https://community.auth0.com/t/how-to-update-user-metadata-from-ios-sdk/7343>\
**Category:** Get Help\
**Tags:** metadata, management-api, user-metadata, ios\
**Created:** [June 30, 2017, 9:32pm UTC](https://community.auth0.com/t/how-to-update-user-metadata-from-ios-sdk/7343 "2017-06-30T21:32:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sandy](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@sandy](https://community.auth0.com/u/sandy)\
**Post date:** [June 30, 2017, 9:32pm UTC](https://community.auth0.com/t/how-to-update-user-metadata-from-ios-sdk/7343/1 "2017-06-30T21:32:53Z")

</div>

When I try to use the management API from the iOS SDK to update the user’s metadata,

[manageAPI patchUserWithIdentifier:identity.identifier userMetadata:[self fieldsToDictionary] callback:^(NSError \* \_Nullable error, NSDictionary \* \_Nullable data)

It keeps giving me an HTTP error.

Error: Failed with unknown error “errorCode”: Bearer, “message”: Bad HTTP authentication header format, “statusCode”: 400, “error”: Bad Request]

Any ideas why I’m getting this error?

---

<div class="post-metadata">

**Author:** ![sandy](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@sandy](https://community.auth0.com/u/sandy)\
**Post date:** [June 30, 2017, 11:32pm UTC](https://community.auth0.com/t/how-to-update-user-metadata-from-ios-sdk/7343/2 "2017-06-30T23:32:56Z")

</div>

OK. I’m very confused on how to update metadata from Auth0 SDK for iOS. My user is logged in and authenticated. I don’t understand why I can’t call the manageAPI to patch the user. Is there something I’m missing?  
@prashant

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [March 2, 2018, 5:55am UTC](https://community.auth0.com/t/how-to-update-user-metadata-from-ios-sdk/7343/3 "2018-03-02T05:55:06Z")

</div>


