You need to sign in to do that
Don't have an account?
Jamie Thompson
How can I use Chatter API to update profile with PATCH method?
Hello - I'm using the Chatter API for iOS and Android. I was wondering if anyone has any code samples of using the PATCH method for updating profile parameters - where the values are in the json/xml? I can't seem to find any samples.
https://www.salesforce.com/us/developer/docs/chatterapi/Content/quickreference_update_user_profile.htm
There's a lot of properties there and not much in the way of code samples for them. :(
https://www.salesforce.com/us/developer/docs/api_rest/Content/dome_update_fields.htm
I have tried to updated Account fields successful. But I actually want to update User fields (Name, Nickname...). That was not working for User. I am not sure that I was giving correct uri. Here is the uri. Can you correct me?
https://cs21.salesforce.com/services/data/v20.0/sobjects/User/005q0000001F7pGAAS?_HttpMethod=PATCH
www.salesforce.com/us/developer/docs/object_reference/Content/sforce_api_objects_user.htm
For example, the User object's FirstName field can be updated. Passing this JSON request body updates the field:
/services/data/v34.0/sobjects/User/005D0000001UEiD
{ "FirstName" : "Natalie" }