addParents (method)
Adds folders to the list of parents for a file or folder.
Syntax
- (void)addParents:(NSString*)resourceId :(NSString*)parentIds;
public func addParents(_ resourceId: String, _ parentIds: String) throws -> Void
Remarks
This method adds one or more folders, specified by ParentIds, to the list of parents for the file or folder specified by ResourceId.
ParentIds should be specified as a comma-separated list of one or more resource Ids.
Note that resources within a shared drive must always have exactly one parent, and that only shared drive members with the "file organizer" or "organizer" roles can move files and folders within a shared drive.