---
title: "Put a file on the phone (push) - body is the file, path under /sdcard/ or /data/local/tmp/"
method: PUT
path: "/devices/{name}/files"
tags: ["Files and media"]
---

# Put a file on the phone (push) - body is the file, path under /sdcard/ or /data/local/tmp/

`PUT /devices/{name}/files`

## Request

- Base URL: `https://api.clousd.com/v1`
- URL: `https://api.clousd.com/v1/devices/{name}/files`
- Auth: HTTP bearer

## Query parameters

- `path` string, required

## Response `200`

OK

- object
  - `ok` boolean
  - `data` object
    - `rc` integer
    - `err` string
    - `bytes` integer

## Other responses

- `403`: Error
- `413`: Error

---

[API](https://skmtc.dev/clousd/apis/clousd-api.md) · [All operations](https://skmtc.dev/clousd/apis/clousd-api/llms.txt) · [OpenAPI document](https://skmtc.dev/clousd/apis/clousd-api/revisions/0291ffd26ae3?raw)
