# Upload a file as the request body, streamed

`POST /assets/stream` · Rivier · files

Upload a file as the request body, streamed.

- Scope: files:write
- Sdk: files.asset.stream
- Cli: files asset stream
- Events: files.asset.created

## Parameters

- `name` (query), string
- `assetId` (query), string
- `allowDuplicate` (query), string

## Request body

`application/octet-stream`

```json
{
  "type": "string",
  "format": "binary"
}
```

## Responses

- `201`: Success
- `400`: The request was malformed
- `401`: No valid credential
- `403`: The credential lacks the scope, origin or address
- `429`: Over the key's rate limit; see Retry-After

## Example

```sh
curl -X POST 'https://api.rivier.ai/assets/stream' \
  -H 'Authorization: Bearer $KEY' \
  -H 'Content-Type: application/octet-stream'
```
