Skip to main content
PATCH
/
api
/
v2
/
projects
/
{project_id}
/
agent-datasets
/
{dataset_id}
Update Agent Dataset
curl --request PATCH \
  --url https://{host}.freeplay.ai/api/v2/projects/{project_id}/agent-datasets/{dataset_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "description": "<string>",
  "compatible_agent_ids": [
    "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  ]
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "name": "<string>",
  "description": "<string>",
  "compatible_agent_ids": [
    "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

project_id
string
required
dataset_id
string
required

Body

application/json
name
string | null
description
string | null
compatible_agent_ids
string<uuid>[] | null

Response

200 - application/json

AgentDatasetResponse(id: uuid.UUID, name: str, description: Optional[str], compatible_agent_ids: list[uuid.UUID])

id
string<uuid>
required
name
string
required
description
string | null
required
compatible_agent_ids
string<uuid>[]
required