Update an extractor
const url = 'http://127.0.0.1:8000/v1/extractors/example';const options = { method: 'PATCH', headers: {'Content-Type': 'application/json'}, body: '{"display_name":"example","instructions":"example","reasoning_effort":"none","provider_name":"openai","model":"example","schema":{},"examples":[{"input":{"type":"text","text":"example","file_id":"example"},"output":{}}]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url http://127.0.0.1:8000/v1/extractors/example \ --header 'Content-Type: application/json' \ --data '{ "display_name": "example", "instructions": "example", "reasoning_effort": "none", "provider_name": "openai", "model": "example", "schema": {}, "examples": [ { "input": { "type": "text", "text": "example", "file_id": "example" }, "output": {} } ] }'Partially update a custom extractor while preserving omitted fields.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Extractor ID or stable name.
Extractor ID or stable name.
Request Bodyrequired
Section titled “Request Bodyrequired”Partial update for an existing extractor.
object
Explicit reasoning effort for an extractor’s model.
The values mirror OpenAI’s reasoning_effort parameter. Extractors store
None by default, which means “send no reasoning parameter and use the
model’s own default” — the only setting that is safe for every model.
Which explicit values a model accepts is the provider’s call; incompatible
pairs surface the provider’s error at extraction time.
The fixed set of model providers ParseHawk ships.
Providers are preconfigured and configurable, not user-creatable, so the name doubles as the stable identifier extractors reference and as the discriminator the engine factory switches on.
Few-shot example pairing representative input with expected structured output.
object
Responses
Section titled “Responses”Successful Response
Public representation of a reusable extractor.
object
Immutable extractor identifier.
Stable URL-safe extractor name.
Human-readable extractor label.
Natural-language extraction instructions.
Explicit reasoning effort for an extractor’s model.
The values mirror OpenAI’s reasoning_effort parameter. Extractors store
None by default, which means “send no reasoning parameter and use the
model’s own default” — the only setting that is safe for every model.
Which explicit values a model accepts is the provider’s call; incompatible
pairs surface the provider’s error at extraction time.
The fixed set of model providers ParseHawk ships.
Providers are preconfigured and configurable, not user-creatable, so the name doubles as the stable identifier extractors reference and as the discriminator the engine factory switches on.
Extraction result JSON Schema.
object
Configured few-shot examples.
object
How the extractor was created.
Whether ParseHawk ships this extractor.
UTC creation time.
UTC last-update time.
Example
{ "name": "invoice", "reasoning_effort": "none", "provider_name": "openai", "source": "user"}The requested ParseHawk resource does not exist.
Error returned by request validation or a ParseHawk domain service.
object
object
Examplegenerated
{ "detail": [ {} ]}The request or domain input failed validation.
Error returned by request validation or a ParseHawk domain service.
object
object
Examplegenerated
{ "detail": [ {} ]}Unexpected server error.
Error returned by request validation or a ParseHawk domain service.
object
object
Examplegenerated
{ "detail": [ {} ]}