webdiet_upload_anexo
Upload a file (PDF, image, etc.) to a patient's attachments in WebDiet. Three ways to provide the file (use ONE):
upload_code — from webdiet_get_upload_command curl (RECOMMENDED for large files)
file_url — direct URL to download the file (e.g. https://example.com/report.pdf)
file_base64 — base64-encoded file content (small files only) Supported tipos: anexo (patient attachment — default), cloud (WebDiet Cloud storage), prontuario (clinical record), antropometria (body measurement report), exame (lab exam), perfil (patient photo), evolucao (photo evolution).
Bulk support: accepts patient_ids for batched execution.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tipo | No | anexo | |
| account | No | ||
| file_url | No | ||
| file_name | No | ||
| nome_anexo | No | ||
| patient_id | Yes | ||
| file_base64 | No | ||
| patient_ids | No | ||
| upload_code | No | ||
| salvar_cloud | No |