PATCH
/
v1
/
teams
/
{teamId}
/
sources
/
{sourceId}
/
extraction
TypeScript client
import { OctosparkClient } from '@octospark/sdk'

const client = new OctosparkClient({
  token: process.env.OCTOSPARK_TOKEN
})

const response = await client.sources.editExtraction({
  teamId: process.env.OCTOSPARK_TEAM_ID ?? "teamId",
  sourceId: process.env.OCTOSPARK_SOURCE_ID ?? "sourceId",
  body: {},
})
{
  "extractedText": "<string>",
  "summary": "<string>",
  "imageUrls": [
    "<string>"
  ],
  "sourceMetadata": {}
}

Authorizations

Authorization
string
header
required

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

Path Parameters

teamId
string
required

Team (workspace) id (UUID). Discover ids via the list teams endpoint or the agent context.

sourceId
string
required

Content source id (UUID), as returned by the create source and list sources endpoints.

Body

application/json
extractedText
string

Replacement extracted text for the source; omit to leave it unchanged. The route rejects a patch with neither field.

summary
string | null

Replacement summary; null clears the stored summary, omit to leave it unchanged.

Response

Success

extractedText
string
required
summary
string | null
required
imageUrls
string[]
required
sourceMetadata
object
required