Forum Discussion

kumargaurav0225's avatar
kumargaurav0225
Explorer | Level 3
7 years ago

docs/sharing_policy/set api not working fine

While setting sharing policy using docs/sharing_policy/set api,when I provide value for team_sharing_policy,I get invalid argument error.

 

 

'{"doc_id":"xyzvvn","sharing_policy":{"public_sharing_policy":{".tag":"invite_only"},"team_sharing_policy":{".tag":"invite_only"}}}'

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Staff rankDropbox Staff

    Note that per the documentation:
    "The default 'team_sharing_policy' can be changed only by teams, omit this field for personal accounts."

     

    Are you on a team account? If not, remove that parameter and try again.