Download a node file
GET/api/download_node_file
Serves one of a node's files as a download.
Separate from get_node_files, which hands the whole directory to the editor as text: this writes a file to the caller's own machine, so it requires the Edit node scripts permission rather than the read that opening a node on the Scripting page needs.
The bytes are served exactly as stored, so a file the editor cannot render - an attachment sitting beside the script, say - still downloads intact.
Request
Responses
- 200
- 400
- 404
- 422
The file's bytes, as an attachment.
Invalid path
Node or file not found
Validation Error