Update Parser
Reference for the PATCH /v1/parsers/:id endpoint.
PATCH /v1/parsers/:id
Updates specific configuration parameters of an existing parser. This is the preferred method for making partial updates.
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | ✅ | The unique ID of the parser to update. |
Body Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
name | string | ❌ | Updated name for the parser (max 100 chars). |
description | string | ❌ | Updated description text. |
result_mode | string | ❌ | one_per_file or one_per_page. |
fields | array | ❌ | Full replacement list of field definitions. Each field: name (required), type (optional: string, number, boolean, date, array, object), description (optional), required (optional boolean). Re-generates underlying parser schema. |
Response 200 OK
Common Error Responses
| HTTP Status | Error Code | Description |
|---|---|---|
400 | INVALID_PAYLOAD | Request body validation failed or malformed JSON. |
401 | UNAUTHORIZED | Invalid or missing API key. |
404 | PARSER_NOT_FOUND | The requested parser does not exist or belongs to another account. |
409 | CONFLICT | A parser with this name already exists. |