When I tried to update a member, I got the result 401 "unauthorized member permission requested.".
The request I used to update the member is
PUT https://api.trello.com/1/members/{id}?fullName={full_name}&initials={initials}&username={user_name}&prefs%2Flocale={locale}&key={app_key}&token={token}
The token has been generated using the API
https://trello.com/1/authorize?expiration=never&scope=read,write,account&response_type=token&name={app_name}&key={app_key}
While generating token do we need to add any other scope to get the necessary access rights?
Consent tokens, like the ones obtained via /1/authorize, are not allowed to modify member fields, like fullName, initials, username, or locale.
Only "authentication" tokens, like a web session cookie, are allowed to make these kinds of updates.
This is to ensure that updates to a member's profile and preferences are only made by the member themselves, and third-party applications don't override a member's personal preferences, or how a member appears to others in Trello.
If you provide some more info around your use-case, maybe we can find an alternative solution?
Hope this helps,
Felix
It looks like you're new here. Sign in or register to get started.