# \_setTables

Adds data to all table fields

### Parameters

#### job\_id

The ID of the Job

#### table

The table and its data.

### Example (Single Column)

```
FM_api('Job_setTables',['job_id'=>'49','table'=>'{"122":[["1","2","3","4","5","6","7","8","9","YES"]]}']);
```

### Example (Multiple Columns)

```
FM_api('Job_setTables',['job_id'=>'49','table'=>'{"122":[["1","2","3","4","5","6","7","8","9","YES"],["1","2","3","4","5","6","7","8","9","YES"]]}']);
```

### Multiple Tables

```
FM_api('Job_setTables',['job_id'=>'49','table'=>'{"122":[["1","2","3","4","5","6","7","8","9","YES"]]},{"123":[["10","11","12","13","14","15","16","17","18","No"]]}']);
```

#### On Success

```
{'ok':1}
```

#### On Failure (Table Data)

```
{'error':'table parameter did not JSON-decode into an object'}
```

#### On Failure (Missing Data)

```
{'error':'table and job_id parameters are required'}
```
