---
title: "create pipeline context values"
method: POST
path: "/api/v1/projects/{projectName}/pipelines/{pipelineName}/contexts"
tags: ["pipeline"]
---

# create pipeline context values

`POST /api/v1/projects/{projectName}/pipelines/{pipelineName}/contexts`

## Request

- The document declares no server URL.
- Auth: none declared
- TypeScript: <https://skmtc.dev/kubevela/apis/kubevela-api-doc/docs/api/v1/projects/:projectName/pipelines/:pipelineName/contexts/post.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `projectName` string, required
- `pipelineName` string, required

## Request body

- V1CreateContextValuesRequest
  - `name` string, required
  - `values` ModelValue[], required
    - `key` string, required
    - `value` string, required

## Response `200`

OK

- V1Context
  - `name` string, required
  - `values` ModelValue[], required
    - `key` string, required
    - `value` string, required

## Other responses

- `400`: Bad Request

---

[API](https://skmtc.dev/kubevela/apis/kubevela-api-doc.md) - [All operations](https://skmtc.dev/kubevela/apis/kubevela-api-doc/llms.txt) - [OpenAPI document](https://skmtc.dev/kubevela/apis/kubevela-api-doc/revisions/f2cd6d5cf4c6?raw)
