Was this page helpful?

POST:files/{fileid}/move

    Overview

    public. Move an attachment from one page to another and/or change the filename

    Uri Parameters
    NameTypeDescription
    fileidintidentifies a file by ID
    Query Parameters
    NameTypeDescription
    authenticatebool?Force authentication for request (default: false)
    namestring?new filename
    tostring?page id of target page
    Return Codes
    NameValueDescription
    BadRequest400Invalid input parameter or request body
    Forbidden403Update access to the page is required
    NotFound404Requested file could not be found
    Ok200The request completed successfully

    Message Format

    None

    Implementation Notes

    A file cannot be moved to a template page or a destination page that already contains a file with the same name.

    Code Samples

    C# Samples

     

    Curl Samples

     

    PHP Samples

     

    Other Code Samples

     

    Was this page helpful?
    Tag page
    You must login to post a comment.

    Copyright © 2011 MindTouch, Inc. Powered by