Overview

public. Move an attachment from one page to another

Uri Parameters
NameTypeDescription
fileidintidentifies a file by ID
Query Parameters
NameTypeDescription
authenticatebool?Force authentication for request (default: false)
tostringpage 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

The following code example moves the file with ID 456 to the home page:

Plug p = Plug.New("http://deki-hayes/@api/deki");
p.At("users", "authenticate").WithCredentials("admin", "password").Get();
p.At("files", "456", "move").With("to", "home").Post();
Tag page
You must login to post a comment.