---
title: "Draft Form Dataset Diff"
method: GET
path: "/v1/projects/{projectId}/forms/{xmlFormId}/draft/dataset-diff"
tags: ["Related Datasets"]
---

# Draft Form Dataset Diff

`GET /v1/projects/{projectId}/forms/{xmlFormId}/draft/dataset-diff`

This endpoint reflects the change to a Dataset that will go into effect once the form is Published. Like the endpoint above, it lists the Dataset name and Properties, but it also includes the `isNew` flag on both the Dataset, and on each individual property. This flag is true only if the Dataset/Property is new and is going to be created by publishing the Draft Form.

## Path parameters

- `projectId` number, required
- `xmlFormId` string, required

## Response `200`

This is the standard response

- DraftDatasetDiff[]
  - `name` string, required — The name of the Dataset.
  - `isNew` boolean, required — Whether or not this Dataset is new (will be created by publishing the Draft Form).
  - `properties` unknown[] — All properties of the Dataset.
    - unknown

## Changes

- **2025-12-20** `022694254f0d` — 1 info
  - api operation id `Draft Form Dataset Diff` removed and replaced with `draftFormDatasetDiff`
- **2025-03-13** `e8c2858fd4eb` — 1 info
  - api operation id `draftFormDatasetDiff` removed and replaced with `Draft Form Dataset Diff`

[Change history](https://skmtc.dev/getodk/apis/odk-central-api/changes/v1/projects/:projectId/forms/:xmlFormId/draft/dataset-diff/get.md)

---

[API](https://skmtc.dev/getodk/apis/odk-central-api.md) · [All operations](https://skmtc.dev/getodk/apis/odk-central-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/getodk/odk-central-api/revisions/d4f5ba77f644/schema)
