Skip to main content
POST
/
v4
/
experiments
/
{id}
Update a experiment
curl --request POST \
  --url https://gentrace.ai/api/v4/experiments/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "OpenAI o3-mini prompt",
  "metadata": {
    "key": "value"
  },
  "status": "GENERATING"
}'
{
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "createdAt": "2025-04-01T00:00:00.000Z",
  "updatedAt": "2025-04-01T00:00:00.000Z",
  "name": "OpenAI o3-mini prompt",
  "pipelineId": "123e4567-e89b-12d3-a456-426614174000",
  "metadata": {
    "key": "value"
  }
}

Authorizations

Authorization
string
header
required

Enter Gentrace API key (Format: Authorization: Bearer <token>)

Path Parameters

id
string<uuid>
required

Experiment UUID

Example:

"123e4567-e89b-12d3-a456-426614174000"

Body

application/json
name
string | null

Friendly experiment name

Example:

"OpenAI o3-mini prompt"

metadata
object | null

Metadata

Example:
{ "key": "value" }
status
enum<string>

Status

Available options:
GENERATING,
EVALUATING
Example:

"GENERATING"

Response

Successful response

id
string<uuid>
required

Experiment UUID

Example:

"123e4567-e89b-12d3-a456-426614174000"

createdAt
string
required

Creation timestamp (ISO 8601)

Example:

"2025-04-01T00:00:00.000Z"

updatedAt
string
required

Last update timestamp (ISO 8601)

Example:

"2025-04-01T00:00:00.000Z"

name
string | null
required

Friendly experiment name

Example:

"OpenAI o3-mini prompt"

pipelineId
string
required

Pipeline UUID

Example:

"123e4567-e89b-12d3-a456-426614174000"

metadata
object | null
required

Metadata

Example:
{ "key": "value" }
I