For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
DiscordPlatform
DocumentationIntegrationsAPI referenceSDKsChangelog
DocumentationIntegrationsAPI referenceSDKsChangelog
  • API Reference
      • POSTCreate a dataset
      • POSTList datasets
      • GETRetrieve a dataset
      • PATCHUpdate a dataset
      • DELDelete a dataset
      • POSTCreate a dataset log
      • POSTList dataset logs
      • GETRetrieve a dataset log
      • PATCHUpdate a dataset log
      • DELDelete a dataset log
      • POSTBulk create dataset logs
      • POSTRun evaluators on a dataset
      • GETList dataset evaluation runs
      • PUTReplace a dataset log
      • POSTImport existing logs into a dataset
      • DELRemove logs from a dataset
      • GETGet dataset logs summary
      • POSTGet filtered dataset logs summary
  • Reference
    • Filters API Reference
LogoLogo
DiscordPlatform
API ReferenceDatasets

Update a dataset

PATCH
https://api.respan.ai/api/datasets/:dataset_id/
PATCH
/api/datasets/:dataset_id/
$curl -X PATCH https://api.respan.ai/api/datasets/dataset_id/ \
> -H "Authorization: Bearer sk_live_xxxxx" \
> -H "Content-Type: application/json" \
> -d '{
> "name": "Support Conversations - July (v2)",
> "description": "Renamed for the July refresh"
>}'
1{
2 "name": "Support Conversations - July (v2)",
3 "description": "Renamed"
4}
Update dataset metadata such as the name, description, starred state, or tags.
Was this page helpful?
Previous

Delete a dataset

Next
Built with

Path parameters

dataset_idstringRequired
Dataset Id

Headers

AuthorizationstringRequired

Bearer token. Use Bearer YOUR_API_KEY.

Request

This endpoint expects an object.
namestringOptional
Updated dataset name.
descriptionstringOptional
Updated dataset description.
starredbooleanOptional
Whether the dataset is starred.
tagslist of stringsOptional
List of tag IDs to assign. Replaces existing tags.

Response

Updated dataset.
idstring
namestring
typestring
descriptionstring
created_atstring
updated_atstring
organizationinteger
initial_log_filtersobject
unique_organization_idslist of strings
timestampslist of strings
log_countinteger
evaluatorstring
statusstring
running_statusstring
running_progressinteger
running_atstring
completed_annotation_countinteger

Errors

401
Unauthorized Error