> 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/jobtype/_setdepartment.md).

# \_setDepartment

Sets the Description of the Job type.

### Parameters

#### id

The ID of the Job Type.

#### department

The department to be set for the Job Type.

### Example

```
FM_api(
    'JobType_setDepartment',[
        'id' => '122037',
        'department' => '337119'
    ]
);
```

### Result

#### On Success

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

#### On Failure

Occurs if the Job Type doesn't exist

```
{"error":"job type does not exist"}
```
