Save pipeline version
create_custom_pipeline_versionSave Pipeline Version
When to use: 사용자가 파이프라인의 지금 구성을 버전으로 저장해 달라고 명시적으로 요청할 때 — 배포와 별개인 저장 이력이다.
When NOT to use: 사용자가 명시적으로 만들기·수정·배포를 요청하지 않았으면 호출하지 않는다 — 분석 질문에 답하려고 에셋·파이프라인·소스·스텝을 만들거나 고치지 않는다. 대시보드에 반영하려는 경우에는 publish_custom_asset 을 쓴다.
Limitations: 저장 버전만 추가하고 초안·배포 버전은 바꾸지 않는다 — 대시보드에 반영하려면 publish_custom_asset 으로 배포한다. 먼저 get_custom_pipeline 으로 읽고 그 draft_revision 을 expected_revision 으로 넘긴다. 409 면 그 사이 파이프라인 초안이 바뀐 것이다 — 409 응답의 current_revision 을 그대로 다시 보내 덮어쓰지 말고, 다시 읽어 바뀐 내용을 사용자에게 확인받은 뒤 다시 시도한다. 저장·배포 전에 preview_custom_pipeline(force_build=true)으로 결과를 확인하는 것을 검증 단계로 쓴다.
Examples:
Q: 지금 파이프라인 구성을 버전으로 저장해줘 params: {'path': {'pipeline_id': 34}, 'body': {'expected_revision': '…', 'description': '수수료 룩업 추가'}}
Output shape: object: {id, pipeline_id, version_number, description, created_by, created_at, snapshot}
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"pipeline_id": "<pipeline_id>",
"expected_revision": "<expected_revision>"
},
"name": "create_custom_pipeline_version"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project-id | No | ||
| description | No | ||
| pipeline_id | Yes | ||
| expected_revision | Yes | Concurrency token for operations that act on a whole draft — the `draft_revision` (or column-meta `revision`) this client last read. When the draft changed since, the request is rejected with 409 and the live token. Omit to keep the legacy last-write-wins behaviour. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||