cURL
curl --request POST \ --url https://api.cyberdesk.io/v1/computer/{machine_id}/fs/write \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "path": "<string>", "content": "<string>", "mode": "write" } '
{}
Write file contents to the machine.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Target file path
Base64 encoded file content
Write mode - 'write' or 'append'
Successful Response
The response is of type Response Fs Write V1 Computer Machine Id Fs Write Post · object.
Response Fs Write V1 Computer Machine Id Fs Write Post · object
Was this page helpful?