Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
AlokSan
8 years agoNew member | Level 2
Create new Dropbox user using Powershell
Code -------------------- Function New-DropBoxUser
{
[CmdletBinding()]Param(
[Parameter(Mandatory=$true,ValueFromPipeline=$true,Position=0)]
[string]$FullName)
# Split name into username #...
AlokSan
8 years agoNew member | Level 2
Update
---------------------
Found the error, the error is for two lines within the $Body
1. "send_welcome_email"="true";
Error: Error in call to API function "team/members/add": request body: new_members.send_welcome_email: u'true' is not a valid boolean
2. "role" = @{".tag" = "member_only"}
Error: Error in call to API function "team/members/add": request body: new_members.role: unknown tag 'System.Collections.Hashtable'
Hope now someone can help with this, any idea?
Greg-DB
Dropbox Community Moderator
8 years agoIt looks like you already got help with this on StackOverflow. As you found, whenever an API call fails, you should check the response body itself for a more detailed message.
In this case, the error indicated that there were unexpected values in the request. Specifically, you were passing in incorrect types for the "send_welcome_email" and "role" parameters.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!