# Workgroup Relations

This is a base object that contains all you can do about workgroups.

## constructor


Constructor

### Parámetros

| Nombre | Tipo | Opcional | Descripción |
| :--- | :--- | :---: | :--- |
| **Reference** | `InternalOpenGateAPI` | ❌ | to the API object. |


---
## update()


Update not allowed



---
## withChannel(channel)


Set the channel attribute

### Parámetros

| Nombre | Tipo | Opcional | Descripción |
| :--- | :--- | :---: | :--- |
| **channel** | `string` | ❌ | required field for creation or update |

### Retorna

{{% notice tip %}}
**Tipo:** `WorkgroupRelations`
<br>

{{% /notice %}}

---
## withWorkgroup(workgroup)


Set the workgroup attribute

### Parámetros

| Nombre | Tipo | Opcional | Descripción |
| :--- | :--- | :---: | :--- |
| **workgroup** | `string` | ❌ | required field |

### Retorna

{{% notice tip %}}
**Tipo:** `WorkgroupRelations`
<br>

{{% /notice %}}

---

