Open ghost opened 5 years ago
GroupV2.EditGroup is documented as as requiring the scope oauth2: EditUserData.
GroupV2.EditGroup
oauth2: EditUserData
However, making a request with the following data
{ uri : "https://www.bungie.net/Platform/GroupV2/Create/", post-data : { "name":"The Meadorians", "about":"We Guide Raids", "motto":"Be kind", "tags":"", "isDefaultPostAllicance":false, "isDefaultPostPublic":false, "callsign":"S117", "locale":"en", "avatarImageIndex":null, "isPublic":null, "isPublicTopicAdminOnly":null, "allowChat":null, "enableInvitationMessagingForAdmins":null, "membershipOption":null, "chatSecuritySetting":null, "groupHomepage":null, "platformMembershipType":null, "groupType":null } headers : { "X-API-KEY":REDACTED, "User-Agent":"node-bungie-lib/0.0.9 AppId/REDACTED(+REDACTED;REDACTED)", "Content-Type":"application/json","Content-Length":417,"Authorization":"REDACTED"} } }
Renders the following error
{ ErrorCode: 2108, ThrottleSeconds: 0, ErrorStatus: 'AccessNotPermittedByApplicationScope', Message: 'Access not permitted by application scope', MessageData: { RequiredScope: 'BnetWrite' } }
Creating a new group is a more global operation and requires BnetWrite.
https://bungie-net.github.io/multi/operation_post_GroupV2-CreateGroup.html#operation_post_GroupV2-CreateGroup
Indeed! For now, I'm going to go ahead and pull out any API calls that require scopes you can't request.
TFS 765563
GroupV2.EditGroup
is documented as as requiring the scopeoauth2: EditUserData
.However, making a request with the following data
Renders the following error