---
updatedAt: 2025-11-12T22:38:45.000Z
agentTools:
  projectIndex: https://support.docsumo.com/llms.txt
---

# Update Field

Modify specific field values within documents in your Docsumo account. This endpoint enables you to update extracted data fields for accuracy and correction purposes.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "docsumo-web-apps",
    "version": "1.4"
  },
  "servers": [
    {
      "url": "https://app.docsumo.com"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "in": "header",
        "name": "X-API-KEY"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/api/v1/pik/apikey/{doc_id}/field/{field_id}/": {
      "patch": {
        "summary": "Update Field",
        "description": "Modify specific field values within documents in your Docsumo account. This endpoint enables you to update extracted data fields for accuracy and correction purposes.",
        "operationId": "update-a-fields-value",
        "parameters": [
          {
            "name": "doc_id",
            "in": "path",
            "description": "The unique identifier for the user document.",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "field_id",
            "in": "path",
            "description": "The unique identifier of the field to update.",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "apikey",
            "in": "header",
            "description": "Get your API key at: https://app.docsumo.com/settings/webhook-api/",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "value": {
                    "type": "string",
                    "description": "The new value for the field."
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"data\": {\n    \"doc_id\": \"daa7dee867084e05831a5f5d6383a78f\",\n    \"error\": false,\n    \"format\": \"%s\",\n    \"id\": 1002001,\n    \"label\": \"Name\",\n    \"original_value\": \"Sorina TEST 123\",\n    \"position\": [],\n    \"section_name\": \"Seller Detail\",\n    \"type\": \"string\",\n    \"value\": \"foobar\"\n  },\n  \"error\": \"\",\n  \"error_code\": \"\",\n  \"message\": \"Successfully updated field value.\",\n  \"status\": \"success\",\n  \"status_code\": 200\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "doc_id": {
                          "type": "string",
                          "example": "daa7dee867084e05831a5f5d6383a78f"
                        },
                        "error": {
                          "type": "boolean",
                          "example": false,
                          "default": true
                        },
                        "format": {
                          "type": "string",
                          "example": "%s"
                        },
                        "id": {
                          "type": "integer",
                          "example": 1002001,
                          "default": 0
                        },
                        "label": {
                          "type": "string",
                          "example": "Name"
                        },
                        "original_value": {
                          "type": "string",
                          "example": "Sorina TEST 123"
                        },
                        "position": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {}
                          }
                        },
                        "section_name": {
                          "type": "string",
                          "example": "Seller Detail"
                        },
                        "type": {
                          "type": "string",
                          "example": "string"
                        },
                        "value": {
                          "type": "string",
                          "example": "foobar"
                        }
                      }
                    },
                    "error": {
                      "type": "string",
                      "example": ""
                    },
                    "error_code": {
                      "type": "string",
                      "example": ""
                    },
                    "message": {
                      "type": "string",
                      "example": "Successfully updated field value."
                    },
                    "status": {
                      "type": "string",
                      "example": "success"
                    },
                    "status_code": {
                      "type": "integer",
                      "example": 200,
                      "default": 0
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          }
        },
        "deprecated": false,
        "security": []
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```