Skip to main content
PUT
Update a context

Authorizations

Authorization
string
header
required

Session token from POST /auth/login, sent as Authorization: Bearer <token>.

Headers

X-Pinecone-Api-Version
string
default:2026-07

Date-based contract version, echoed back on the same header. Omit for the default (2026-07); send unstable for the in-development surface. An unrecognized value is rejected with 400 unsupported_api_version.

Path Parameters

slug
string
required

Context slug or UUID.

Body

application/json

All fields optional. Empty string for description/guide clears it; {} for manifest clears it back to defaults. Absent leaves untouched. kind is immutable and cannot be updated.

slug
string

Renames the context. Must stay unique within the project.

name
string

New display name.

description
string

New summary. Empty string clears it.

guide
string

New standing instructions. Empty string clears them.

manifest
object

The document that drives curate and search. Sparse: every field is optional and an omitted one falls back to its default, so absent fields are omitted rather than nulled. A change reaches the index on the next curate; rebuilding what is already indexed needs a forced one.

Response

The updated context

What context endpoints return — the stored context plus the lifecycle flags derived from its in-flight tasks.

id
string
required

Stable UUID. Accepted anywhere {slug} is.

slug
string
required

URL-safe name, unique within the project. Mutable via PUT.

name
string
required

Human-readable display name.

kind
string
default:search
required

How the context is built. search — built from source documents, and must be curated before it can be queried. work — built from traces of work done, queryable immediately, consolidated by groom rather than curate.

created_by
string
required

Principal that created the context.

description
string | null
required

Free-text summary of what the context holds.

is_optimizing
boolean
required

An optimize task is in flight.

has_sources
boolean
required

The source tree holds at least one file. False blocks curate.

is_curating
boolean
required

A curate task is in flight.

is_importing
boolean
required

An import task is in flight.

is_exploring
boolean
required

An explore task is in flight.

is_restoring
boolean
required

A restore task is in flight.

is_grooming
boolean
required

A groom task is in flight. Work contexts only.

created_at
string<date-time>
required

When the context was created.

updated_at
string<date-time>
required

When the context last changed.

workspace
string

Owning workspace. Absent off a workspace-enabled cluster.

guide
string

High-level standing instructions the query runtime reads on every turn.

manifest
object

Pinned manifest document. Absent when the context runs on validator defaults.

semantic_index
string | null

Host of the index backing this context's vector retrieval. Null until a curate resolves one.

keyword_index
string | null

Host of the index backing keyword retrieval. The same host as semantic_index today — the two names are separate seams over one index.

optimize_task_id
string | null

The optimize task — the running one, or the last to finish.

optimize_score
number<double> | null

Eval pass rate the last optimize's best iteration scored.

optimize_iterations
integer | null

How many candidate manifests the last run tried.

last_optimized_at
string<date-time> | null

When an optimize last persisted a tuned manifest.

last_curated_at
string<date-time> | null

When a curate last flipped a new index version live.

last_source_import_at
string<date-time> | null

When sources were last staged by an upload or import.

curate_task_id
string | null

The curate task — the running one, or the last to finish.

import_task_id
string | null

The import task — the running one, or the last to finish.

explore_task_id
string | null

The explore task — the running one, or the last to finish.

restore_task_id
string | null

The restore task — the running one, or the last to finish.

manifest_suggestion
object

Outcome of the last explore run, pinned to the context row. A proposal only — apply it by writing the manifest and forcing a curate.

sample_queries
string[]

Example questions the curated corpus can answer, written by the last curate.

One example question.

groom_task_id
string

The groom task — the running one, or the last to finish.

groom_artifact_count
integer<int64>

Artifacts the last groom left in the work context.

last_groomed_at
string<date-time>

When a groom last consolidated the work context.

stats
object

Aggregate task counters. Populated only on the list endpoint.