> For the complete documentation index, see [llms.txt](https://docs.fieldmotion.com/fieldmotion-api-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.fieldmotion.com/fieldmotion-api-docs/job/_settablecells.md).

# \_setTableCells

Adds data to an array of table cells

### Parameters

#### job\_id

The id of the Job

#### changes

JSON array of changes to make

the array is 2-level. the top level has keys which ID the table that the data is for, and within that is a hash-array of data indexed by row\_col coordinates. The coordinates are zero-indexed.

### Example

```
FM_api('Job_setTables',['job_id'=>'322888','changes'=>'{"220335":{"0_1":"2"}}']);
```

In this example, the number 2 is placed into the second column of the first row of table 220335, linked to job 322888

### Example 2

```
FM_api('Job_setTables',['job_id'=>'322888','changes'=>'{"220335":{"0_1":"2"},"321321":{"3_7":"4"}}']);
```

In this example, two pieces of data are edited for two separate tables.

#### On Success

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