File Management
Create File
Request
Project, file name and file content to create. The /files/create
API accepts requests in the following format:
CreateProjectFileRequest Model - Request to add a file to a project. | |
---|---|
projectId | integer Project Id to which the file belongs. |
name | string The name of the new file. |
content | string The content of the new file. |
Example |
{ "projectId": 0, "name": "main.py", "content": "string" } |
Responses
The /files/create
API provides a response in the following format:
200 Success
RestResponse Model - Base API response class for the QuantConnect API. | |
---|---|
success | boolean Indicate if the API request was successful. |
errors | string Array List of errors with the API call. |
Example |
{ "success": true, "errors": [ "string" ] } |
401 Authentication Error
UnauthorizedError Model - Unauthorized response from the API. Key is missing, invalid, or timestamp is too old for hash. | |
---|---|
www_authenticate | string Header |