# Copy up to 100 rows of an allowed table into memory, on purpose

`POST /datasources/{id}/ingest` · Rivier · hosting

Copy up to 100 rows of an allowed table into memory, on purpose.

- Scope: hosting:write
- Sdk: hosting.dataSource.ingest
- Cli: hosting data source ingest

## Parameters

- `id` (path, required), string

## Request body

`application/json`

```json
{
  "type": "object",
  "properties": {
    "table": {
      "type": "string"
    },
    "columns": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "minItems": 1
    }
  },
  "required": [
    "table",
    "columns"
  ],
  "additionalProperties": true
}
```

## Responses

- `200`: 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/datasources/{id}/ingest' \
  -H 'Authorization: Bearer $KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "table": "string",
  "columns": [
    "string"
  ]
}'
```
