# org.tangled.ci.approvePipeline

> Approve blocked pipeline.

- Kind: procedure
- Authority: ci.tangled.org
- Lexicon: 1
- Published by [tangled.org](https://lexicon.garden/identity/did:plc:wshs7t2adsemcrrd4snkeqli), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:wshs7t2adsemcrrd4snkeqli/org.tangled.ci.approvePipeline)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:wshs7t2adsemcrrd4snkeqli/org.tangled.ci.approvePipeline/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:wshs7t2adsemcrrd4snkeqli/org.tangled.ci.approvePipeline/analytics)

## Procedure (`org.tangled.ci.approvePipeline`)

Type: procedure · POST

### Input (application/json)

- `pipeline` (string · record-key, required): pipeline id
- `repo` (string · did, required): git repository DID

### Errors

- `PipelineNotFound`: Pipeline not found
- `PipelineNotBlocked`: Pipeline has no workflow waiting for approval

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Approve blocked pipeline.",
      "errors": [
        {
          "description": "Pipeline not found",
          "name": "PipelineNotFound"
        },
        {
          "description": "Pipeline has no workflow waiting for approval",
          "name": "PipelineNotBlocked"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "pipeline": {
              "description": "pipeline id",
              "format": "record-key",
              "type": "string"
            },
            "repo": {
              "description": "git repository DID",
              "format": "did",
              "type": "string"
            }
          },
          "required": [
            "repo",
            "pipeline"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "org.tangled.ci.approvePipeline",
  "lexicon": 1
}
```
