Update Extraction Agent
PUT/api/v1/extraction/extraction-agents/{extraction_agent_id}
Update Extraction Agent
Path Parameters
extraction_agent_id: string
Cookie Parameters
session: optional string
Body Parameters
Returns
Update Extraction Agent
curl https://api.cloud.llamaindex.ai/api/v1/extraction/extraction-agents/$EXTRACTION_AGENT_ID \
-X PUT \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer $LLAMA_CLOUD_API_KEY" \
-d '{
"config": {},
"data_schema": {
"foo": {
"foo": "bar"
}
}
}'{
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"config": {
"chunk_mode": "PAGE",
"citation_bbox": true,
"cite_sources": true,
"confidence_scores": true,
"extract_model": "openai-gpt-4-1",
"extraction_mode": "FAST",
"extraction_target": "PER_DOC",
"high_resolution_mode": true,
"invalidate_cache": true,
"multimodal_fast_mode": true,
"num_pages_context": 1,
"page_range": "page_range",
"parse_model": "openai-gpt-4o",
"priority": "low",
"system_prompt": "system_prompt",
"use_reasoning": true
},
"data_schema": {
"foo": {
"foo": "bar"
}
},
"name": "name",
"project_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"created_at": "2019-12-27T18:11:19.117Z",
"custom_configuration": "default",
"updated_at": "2019-12-27T18:11:19.117Z"
}Returns Examples
{
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"config": {
"chunk_mode": "PAGE",
"citation_bbox": true,
"cite_sources": true,
"confidence_scores": true,
"extract_model": "openai-gpt-4-1",
"extraction_mode": "FAST",
"extraction_target": "PER_DOC",
"high_resolution_mode": true,
"invalidate_cache": true,
"multimodal_fast_mode": true,
"num_pages_context": 1,
"page_range": "page_range",
"parse_model": "openai-gpt-4o",
"priority": "low",
"system_prompt": "system_prompt",
"use_reasoning": true
},
"data_schema": {
"foo": {
"foo": "bar"
}
},
"name": "name",
"project_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"created_at": "2019-12-27T18:11:19.117Z",
"custom_configuration": "default",
"updated_at": "2019-12-27T18:11:19.117Z"
}