# Connector Functions

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

## constructor


Constructor

### Parámetros

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


---
## create()


Create a new Connector Function


### Retorna

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

{{% /notice %}}

---
## delete()


Deletes the selected connector function


### Retorna

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

{{% /notice %}}

---
## update()


Updates a connector function


### Retorna

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

{{% /notice %}}

---
## withChannel(channel)


Set the channel attribute

### Parámetros

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

### Retorna

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

{{% /notice %}}

---
## withDescription(description)


Set the description attribute

### Parámetros

| Nombre | Tipo | Opcional | Descripción |
| :--- | :--- | :---: | :--- |
| **description** | `string` | ❌ |  |

### Retorna

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

{{% /notice %}}

---
## withIdentifier(identifier)


Set the identifier attribute

### Parámetros

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

### Retorna

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

{{% /notice %}}

---
## withJavascript(javascript)


Set the javascript attribute

### Parámetros

| Nombre | Tipo | Opcional | Descripción |
| :--- | :--- | :---: | :--- |
| **javascript** | `string` | ❌ |  |

### Retorna

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

{{% /notice %}}

---
## withName(name)


Set the name attribute

### Parámetros

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

### Retorna

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

{{% /notice %}}

---
## withNorthCriterias(criterias)


Set the north criterias attribute

### Parámetros

| Nombre | Tipo | Opcional | Descripción |
| :--- | :--- | :---: | :--- |
| **criterias** | `array` | ❌ |  |

### Retorna

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

{{% /notice %}}

---
## withOperationalStatus(operationalStatus)


Set the operational status attribute

### Parámetros

| Nombre | Tipo | Opcional | Descripción |
| :--- | :--- | :---: | :--- |
| **operationalStatus** | `boolean` | ❌ |  |

### Retorna

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

{{% /notice %}}

---
## withOperationName(operationName)


Set the operation name attribute

### Parámetros

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

### Retorna

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

{{% /notice %}}

---
## withOrganization(organization)


Set the organization attribute

### Parámetros

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

### Retorna

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

{{% /notice %}}

---
## withPayloadType(payloadType)


Set the payload type attribute

### Parámetros

| Nombre | Tipo | Opcional | Descripción |
| :--- | :--- | :---: | :--- |
| **payloadType** | `string` | ❌ |  |

### Retorna

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

{{% /notice %}}

---
## withSouthCriterias(criterias)


Set the south criterias attribute

### Parámetros

| Nombre | Tipo | Opcional | Descripción |
| :--- | :--- | :---: | :--- |
| **criterias** | `array` | ❌ |  |

### Retorna

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

{{% /notice %}}

---
## withType(type)


Set the type attribute

### Parámetros

| Nombre | Tipo | Opcional | Descripción |
| :--- | :--- | :---: | :--- |
| **type** | `string` | ❌ |  |

### Retorna

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

{{% /notice %}}

---

