# CodePipelineProcessStartConfig

An automation action (`$type` is `codepipeline`) that starts a code pipeline run. The code pipeline is named by `name` and `namespaceName`, not by `version`; `request` is the start request to send.

**Kind:** an object, used in requests and responses. In a request it is called `CodePipelineProcessStartConfigInput`.

## In a request

| Field | Type | Required | Description |
|---|---|---|---|
| `name` | `string` |  | The name of the code pipeline to start. |
| `namespaceName` | `string` |  | The name of the namespace the code pipeline is in. |
| `request` | [`CodePipelineProcessStartRequestInput`](https://docs.maitento.com/reference/types/code-pipeline-process-start-request.md#in-a-request) |  | The start request to send, exactly as for starting the code pipeline directly: inputs, repositories, extra steps, agent overrides, credentials, mounts, input files and so on. |
| `version` | [`VersionReference`](https://docs.maitento.com/reference/types/version-reference.md)`\| null` |  | The app, interaction or capsule to start, and the version of it. Required for those three; left out for `codepipeline` (named by `name`) and `interaction-message` (which names a run). |

```json
{
  "name": "...",
  "namespaceName": "...",
  "request": {
    "launchIntentId": "3f2b8c1e-5d4a-4e6b-9c7d-2a1b0c9d8e7f",
    "inputs": [
      {}
    ],
    "agentOverrides": [
      {}
    ],
    "additionalAgents": [
      {}
    ],
    "reviewPanel": {
      "phaseName": "...",
      "recheckPolicy": "AllMembers",
      "members": []
    },
    "maxParallelSteps": 0,
    "additionalSteps": [
      {}
    ],
    "credentials": [
      {
        "type": "apiKey"
      }
    ],
    "credentialStack": "...",
    "repos": [
      {
        "type": "http"
      }
    ],
    "vfsMounts": [
      {}
    ],
    "systemPromptOverride": "...",
    "inputFileIds": [
      "3f2b8c1e-5d4a-4e6b-9c7d-2a1b0c9d8e7f"
    ],
    "outputFilesPartitionId": "3f2b8c1e-5d4a-4e6b-9c7d-2a1b0c9d8e7f",
    "autoRebase": false,
    "rebaseAgent": "...",
    "maxCheckLoops": 0,
    "maxFixIterations": 0,
    "allowWebTools": false,
    "webDownloadPartitionId": "3f2b8c1e-5d4a-4e6b-9c7d-2a1b0c9d8e7f",
    "stepMax": "00:05:00",
    "stepActivity": "00:05:00",
    "phaseMax": "00:05:00",
    "phaseActivity": "00:05:00",
    "processMax": "00:05:00",
    "processActivity": "00:05:00",
    "hook": "00:05:00"
  },
  "version": {
    "id": "3f2b8c1e-5d4a-4e6b-9c7d-2a1b0c9d8e7f",
    "version": 0
  }
}
```

## In a response

Every field is present in a response; empty ones are `null`.

| Field | Type | Description |
|---|---|---|
| `name` | `string` | The name of the code pipeline to start. |
| `namespaceName` | `string` | The name of the namespace the code pipeline is in. |
| `request` | [`CodePipelineProcessStartRequest`](https://docs.maitento.com/reference/types/code-pipeline-process-start-request.md) | The start request to send, exactly as for starting the code pipeline directly: inputs, repositories, extra steps, agent overrides, credentials, mounts, input files and so on. |
| `version` | [`VersionReference`](https://docs.maitento.com/reference/types/version-reference.md)`\| null` | The app, interaction or capsule to start, and the version of it. Required for those three; left out for `codepipeline` (named by `name`) and `interaction-message` (which names a run). |

```json
{
  "name": "...",
  "namespaceName": "...",
  "request": {
    "launchIntentId": "3f2b8c1e-5d4a-4e6b-9c7d-2a1b0c9d8e7f",
    "inputs": [
      {}
    ],
    "agentOverrides": [
      {}
    ],
    "additionalAgents": [
      {}
    ],
    "reviewPanel": {
      "phaseName": "...",
      "recheckPolicy": "AllMembers",
      "members": []
    },
    "maxParallelSteps": 0,
    "additionalSteps": [
      {}
    ],
    "credentials": [
      {
        "type": "apiKey"
      }
    ],
    "credentialStack": "...",
    "repos": [
      {
        "type": "http"
      }
    ],
    "vfsMounts": [
      {}
    ],
    "systemPromptOverride": "...",
    "inputFileIds": [
      "3f2b8c1e-5d4a-4e6b-9c7d-2a1b0c9d8e7f"
    ],
    "outputFilesPartitionId": "3f2b8c1e-5d4a-4e6b-9c7d-2a1b0c9d8e7f",
    "autoRebase": false,
    "rebaseAgent": "...",
    "maxCheckLoops": 0,
    "maxFixIterations": 0,
    "allowWebTools": false,
    "webDownloadPartitionId": "3f2b8c1e-5d4a-4e6b-9c7d-2a1b0c9d8e7f",
    "stepMax": "00:05:00",
    "stepActivity": "00:05:00",
    "phaseMax": "00:05:00",
    "phaseActivity": "00:05:00",
    "processMax": "00:05:00",
    "processActivity": "00:05:00",
    "hook": "00:05:00"
  },
  "version": {
    "id": "3f2b8c1e-5d4a-4e6b-9c7d-2a1b0c9d8e7f",
    "version": 0
  }
}
```

## Where it's used

- Inside [`ProcessStartConfig`](https://docs.maitento.com/reference/types/process-start-config.md)
