# \_setTableCellImage

### Parameters

#### appointment\_id

The ID of the Job.

#### table\_id

The ID of the Form table

#### x

Co-ordinates of which table row the image will be in.\
(e.g 0 = 1st row in the table, 2 = 3rd)

#### y

Co-ordinates of where the image will be within the same table row\
(e.g 1 = 2nd cell within a table row)

#### jpeg

The image data to be set to the Table cell.

### Example

```
FM_api('Job_setTableCellImage', [
    'appointment_id' => '90274',
    'table_id' => '46105',
    'x' => '1',
    'y' => '1',
    'jpeg' => data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/4gHYSUNDX1BST0ZJTEUAAQEAAAHIAAAAAAQwAABtbnRyUkdCIFhZWiAH4AABAAEAAAAAAABhY3NwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAA9tYAAQAAAADTLQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAlkZXNjAAAA8AAAACRyWFlaAAABFAAAABRnWFlaAAABKAAAABRiWFlaAAABPAAAABR3dHB0AAABUAAAABRyVFJDAAABZAAAAChnVFJDAAABZAAAAChiVFJDAAABZAAAAChjcHJ0AAABjAAAADxtbHVjAAAAAAAAAAEAAAAMZW5VUwAAAAgAAAAcAHMAUgBHAEJYWVogAAAAAAAAb6IAADj1AAADkFhZWiAAAAAAAABimQAAt4UAABjaWFlaIAAAAAAAACSgAAAPhAAAts9YWVogAAAAAAAA9tYAAQAAAADTLXBhcmEAAAAAAAQAAAACZmYAAPKnAAANWQAAE9AAAApbAAAAAAAAAABtbHVjAAAAAAAAAAEAAAAMZW5VUwAAACAAAAAcAEcAbwBvAGcAbABlACAASQBuAGMALgAgADIAMAAxADb/2wBDAAMCAgICAgMCAgIDAwMDBAYEBAQEBAgGBgUGCQgKCgkICQkKDA8MCgsOCwkJDRENDg8QEBEQCgwSExIQEw8QEBD/2wBDAQMDAwQDBAgEBAgQCwkLEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBD/wAARCAANABEDASIAAhEBAxEB/8QAGAAAAgMAAAAAAAAAAAAAAAAAAAIEBgn/xAAjEAACAQQCAQUBAAAAAAAAAAABAgMABAYRBSESFSIjMVFx/8QAFQEBAQAAAAAAAAAAAAAAAAAAAwX/xAAgEQEAAAYBBQAAAAAAAAAAAAABAAIDESExQRITFFHx/9oADAMBAAIRAxEAPwDNK0lwZsKuFvLN1yCNikLLLLuQFgQ/0YwACQVPZCHsEgiRl+EWPDcbbcxjvKerWQ+G8njZHWKbrR2p9oby6B3rrZPkKp9Mk0sayJHK6rKvhIFYgOuwdH9GwD/QKHtTE15ZnenPyJ/h1adUqUqrbqVHIjbByBsty+sQtFFFNFCP/9k=
    ]
);
```

### Results

#### On Success

```
{"ok":1,"val":"{\"src\":\"appointment-772025-1774943260.4074.jpg\",\"cid\":\"92447\"}"}
```

#### On Failure

if the "jpeg" parameter is not set:

```
{"error":"no jpeg parameter supplied"}
```


---

# 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/_settablecellimage.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.
