upload_image
Upload an image file to the Nettskjema API by base64-encoding it and sending it as JSON, with the filename supplied as a query parameter.
Instructions
Upload an image to the API, returning a response with string keys and values.
The entire file is read into memory, base64-encoded, and sent as a JSON string in the request body, per the published OpenAPI schema ({"type": "string", "format": "byte"} under application/json). The filename is derived from the file itself and sent as a query parameter.
The body format is most likely a Spring Boot serialisation artefact where a byte[] parameter was rendered as format: byte. The actual server may expect raw bytes; whether it accepts the JSON string can only be settled end-to-end.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Path to the image file to upload. May be relative or contain ~. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |