Request
Query parameters
The absolute local file system path to the file or folder you want to publish. The task name is set to the base filename (without extension).
Example
Behaviour
When called with a validpath:
- The path is checked to confirm it exists on disk (
fs.stat) - The task name is extracted:
path.basename(pathname, path.extname(pathname)) - A UUID is generated as the task’s
id - A task config object is constructed:
The task type is not set by this endpoint. WebPublish determines the correct type (file, directory, mbtiles, etc.) based on the path when the task is fully initialised through the UI.
Error responses
| Scenario | Response |
|---|---|
path parameter missing | No task is created; the endpoint returns without a response body |
| Path does not exist on disk | 404 with an error message |