---
title: "POST /datasource/diff/{dataName}"
method: POST
path: "/datasource/diff/{dataName}"
tags: ["datasource"]
---

# POST /datasource/diff/{dataName}

`POST /datasource/diff/{dataName}`

"生成增量迁移脚本"

## Path parameters

- `dataName` string, required

## Request body

- DatasourceDiffCmdOption
  - `databaseUrl` WgpbConfigurationVariable
    - `environmentVariableDefaultValue` string — [omitempty]
    - `environmentVariableName` string — [omitempty]
    - `kind` 0 | 1 | 2
    - `placeholderVariableName` string — [omitempty]
    - `staticVariableContent` string — [omitempty]
  - `type` 'migrations_to_dev' | 'dev_to_prod'

## Response `200`

生成的增量脚本

## Other responses

- `400` — Bad Request

## Changes

- **2026-07-17** `3864739d5128` — 1 info
  - endpoint added
- **2024-04-19** `ae1dc2e99e2f` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/fireboomio/apis/untitled-api/changes/datasource/diff/:dataName/post.md)

---

[API](https://skmtc.dev/fireboomio/apis/untitled-api.md) · [All operations](https://skmtc.dev/fireboomio/apis/untitled-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/fireboomio/untitled-api/revisions/3864739d5128/schema)
