What the hell is the repositoryid? I cannot find any information about it (thanks to the non existing doc!)Where is the targetfolder specified?

I have got every parameter information but the repositoryid. Could it be, that the repositoryid, is the FolderName? But that would be strange, because there is another method "addDirectory" (if I remember right) which also needs a repositoryid as a parameter.