Skip to content

No examples of how to use subaction "addFile" #75

Description

@MatousAc

I've been having a lot of trouble just adding a file in a folder. The schema defines this subaction, but does not give an example when using source url:
"sourceUrl": {
"type": "string",
"description": "Optional parameter. The location in the tenant to copy the file from, as an absolute url. Provide either this or source."
}

What type of url is needed? This format results in a "Bad Request" error when creating site scripts:
company.sharepoint.com/Folder/Subfolder/Filename.xlsx
And these don't actually add the file in the desired destination:
http://company.sharepoint.com/Folder/Subfolder/Filename.xlsx
https://company.sharepoint.com/Folder/Subfolder/Filename.xlsx

Can anyone show how they did this?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions