# \_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}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.fieldmotion.com/fieldmotion-api-docs/job/_settablecells.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
