Skip to main content
PUT
/
apps
/
{appSlug}
/
datasets
/
{externalId}
/
items
/
{itemId}
Python
from autoblocks.api.app_client import AutoblocksAppClient

client = AutoblocksAppClient(
  api_key="<YOUR_API_KEY>",
  app_slug="my-app",
)

update_result = client.datasets.update_item(
  external_id="my-dataset",
  item_id="item-123",
  data={"title": "Updated Title", "content": "Updated content"},
  split_names=["validation"]
)
{
  "success": true
}

Authorizations

Authorization
string
header
required

API Key created in the Autoblocks Webapp

Path Parameters

appSlug
string
required
externalId
string
required
itemId
string
required

Body

application/json
data
object
required

The data to update the dataset item with

Example:
{
"question": "What is the capital of France?",
"answer": "Paris"
}
splitNames
string[]

The names of the splits to update the dataset item in

Example:
["train", "test"]

Response

200 - application/json

The dataset item was updated successfully

success
boolean
required