Grava Docs

Update a dataset

PATCH/v1/datasets/{datasetId}

Updates dataset metadata and schedule. Changing columns does not reinterpret existing rows and does not change the source recipe.

AuthorizationBearer <token>

API key shown once at creation and stored as a SHA-256 hash.

In: header

Path Parameters

datasetId*string

Dataset UUID.

Formatuuid

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Column updates require expectedSchemaVersion and preserve every existing Field ID. New columns must have ownership=user.

Properties1 <= properties

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X PATCH "https://example.com/v1/datasets/497f6eca-6276-4993-bfeb-53cbbbba6f08" \  -H "Content-Type: application/json" \  -d '{}'
{  "dataset": {    "schemaVersion": 1,    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "name": "string",    "question": "string",    "columns": [      {        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",        "label": "string",        "ownership": "collected",        "name": "string",        "type": "string",        "key": false,        "description": "string"      }    ],    "status": "draft",    "schedule": "string",    "rowCount": 0,    "lastRun": {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "status": "queued",      "completedAt": "2019-08-24T14:15:22Z"    },    "createdAt": "2019-08-24T14:15:22Z",    "updatedAt": "2019-08-24T14:15:22Z"  }}