> Markdown versions of all pages of this connector library are available by appending `.md` to the page URL. For the full index of connectors, see [llms.txt](https://connectors.appmixer.com/llms.txt).

# appmixer.ragieai.core.UpdateDocumentFromUrl

- Component: `appmixer.ragieai.core.UpdateDocumentFromUrl`
- Kind: Action
- Version: 1.0.0
- Visibility: Public
- Connector: [appmixer.ragieai 1.1.4](https://connectors.appmixer.com/connector/appmixer.ragieai/1.1.4.md)
- Component page: <https://connectors.appmixer.com/connector/appmixer.ragieai/1.1.4/component/appmixer.ragieai.core.UpdateDocumentFromUrl>

Updates a document from a publicly accessible URL. The document goes through processing steps (pending, partitioning, partitioned, refined, chunked, indexed, summary_indexed, keyword_indexed, ready, failed) before it is ready for retrieval. PDF files over 2000 pages are not supported in hi_res mode.

## Input ports

### Port `in`

| Field | Type | Description |
| --- | --- | --- |
| Document Id (`documentId`) | text | The id of the document to update |
| Url (`url`) | text | Url of the file to download. Must be publicly accessible and HTTP or HTTPS scheme |
| Mode (`mode`) | select | Partition strategy for the document. Different strategies exist for textual, audio and video file types. For textual documents: 'hi_res' (extracts images and tables, ~20x slower) or 'fast' (text only, default). For audio: true/false. For video: 'audio_only', 'video_only', 'audio_video'. Use 'all' for highest quality processing of all media types |

## Output ports

### Port `out`

| Field | Type | Description |
| --- | --- | --- |
| Status (`status`) | string | - |

## Full metadata (component.json)

```json
{
  "name": "appmixer.ragieai.core.UpdateDocumentFromUrl",
  "author": "Appmixer <info@appmixer.com>",
  "description": "Updates a document from a publicly accessible URL. The document goes through processing steps (pending, partitioning, partitioned, refined, chunked, indexed, summary_indexed, keyword_indexed, ready, failed) before it is ready for retrieval. PDF files over 2000 pages are not supported in hi_res mode.",
  "version": "1.0.0",
  "auth": {
    "service": "appmixer:ragieai"
  },
  "inPorts": [
    {
      "name": "in",
      "schema": {
        "type": "object",
        "properties": {
          "documentId": {
            "type": "string"
          },
          "url": {
            "type": "string"
          },
          "mode": {
            "type": "string",
            "default": "fast"
          }
        },
        "required": [
          "documentId",
          "url"
        ]
      },
      "inspector": {
        "inputs": {
          "documentId": {
            "type": "text",
            "tooltip": "The id of the document to update",
            "label": "Document Id",
            "index": 0
          },
          "url": {
            "type": "text",
            "tooltip": "Url of the file to download. Must be publicly accessible and HTTP or HTTPS scheme",
            "label": "Url",
            "index": 1
          },
          "mode": {
            "type": "select",
            "tooltip": "Partition strategy for the document. Different strategies exist for textual, audio and video file types. For textual documents: 'hi_res' (extracts images and tables, ~20x slower) or 'fast' (text only, default). For audio: true/false. For video: 'audio_only', 'video_only', 'audio_video'. Use 'all' for highest quality processing of all media types",
            "label": "Mode",
            "index": 2,
            "options": [
              {
                "label": "fast",
                "value": "fast"
              },
              {
                "label": "hi_res",
                "value": "hi_res"
              },
              {
                "label": "all",
                "value": "all"
              },
              {
                "label": "audio_only",
                "value": "audio_only"
              },
              {
                "label": "video_only",
                "value": "video_only"
              },
              {
                "label": "audio_video",
                "value": "audio_video"
              }
            ]
          }
        }
      }
    }
  ],
  "outPorts": [
    {
      "name": "out",
      "options": [
        {
          "label": "Status",
          "value": "status",
          "schema": {
            "type": "string",
            "example": "working"
          }
        }
      ]
    }
  ],
  "icon": "(data URI omitted)"
}
```
