# Process routes: enable, pause

URL: /code/api/process/verbs · Id: `page:code/api/process/verbs`

> The Process Verbs enable, pause as api.sb routes, with inputs, result, refusals and an example.

Reference for [Process](/business/nouns/process), one group of [Process routes](/code/api/process).

### Process.enable
Enable turns a Process on for a Startup, so its Workflows start on their Triggers. [Verb page](/business/nouns/process/enable?interface=api).

```text
POST /{namespace}/processes/{process}/enable
```

Path: `process`. Emits [`Process.enabled`](/business/events/Process.enabled).

**Inputs**

| Input | Type | Required | Description |
| --- | --- | --- | --- |
| `process` | [Process](/business/nouns/process) | Yes | The Process to turn on. |

**Returns**

| Output | Type | Required | Description |
| --- | --- | --- | --- |
| `process` | [Process](/business/nouns/process) | Yes | The Process, now on. |

**Refuses when**

| Check | Error | Fix | Then call |
| --- | --- | --- | --- |
| The key is valid, but its scopes do not allow this operation. | [`forbidden`](/code/api/errors/forbidden) | Use a key whose scopes cover the operation, or ask an owner of the namespace to grant them. | None. |

**Example**

```bash
curl -X POST https://api.sb/leaseline.app/processes/process_X2zteZ3CQI/enable \
  -H "Authorization: Bearer $STARTUP_BUILDER_API_KEY"
```

```json
{
  "api": "https://api.sb/leaseline.app",
  "process": {
    "$id": "https://api.sb/leaseline.app/processes/process_X2zteZ3CQI",
    "$type": "Process",
    "name": "Leaseline"
  },
  "action": {
    "$id": "https://api.sb/leaseline.app/actions/act_br07HsG8MG",
    "operation": "Process.enable",
    "status": "done"
  },
  "links": {
    "self": "https://api.sb/leaseline.app/actions/act_br07HsG8MG"
  }
}
```

### Process.pause
Pause stops a Process from starting new Actions; Actions already in progress finish. [Verb page](/business/nouns/process/pause?interface=api).

```text
POST /{namespace}/processes/{process}/pause
```

Path: `process`. Emits [`Process.paused`](/business/events/Process.paused).

**Inputs**

| Input | Type | Required | Description |
| --- | --- | --- | --- |
| `process` | [Process](/business/nouns/process) | Yes | The Process to pause. |

**Returns**

| Output | Type | Required | Description |
| --- | --- | --- | --- |
| `process` | [Process](/business/nouns/process) | Yes | The paused Process. |

**Refuses when**

| Check | Error | Fix | Then call |
| --- | --- | --- | --- |
| The key is valid, but its scopes do not allow this operation. | [`forbidden`](/code/api/errors/forbidden) | Use a key whose scopes cover the operation, or ask an owner of the namespace to grant them. | None. |

**Example**

```bash
curl -X POST https://api.sb/leaseline.app/processes/process_X2zteZ3CQI/pause \
  -H "Authorization: Bearer $STARTUP_BUILDER_API_KEY"
```

```json
{
  "api": "https://api.sb/leaseline.app",
  "process": {
    "$id": "https://api.sb/leaseline.app/processes/process_X2zteZ3CQI",
    "$type": "Process",
    "name": "Leaseline"
  },
  "action": {
    "$id": "https://api.sb/leaseline.app/actions/act_br07HsG8MG",
    "operation": "Process.pause",
    "status": "done"
  },
  "links": {
    "self": "https://api.sb/leaseline.app/actions/act_br07HsG8MG"
  }
}
```