Update Task Location
update_task_locationUpdate the location of a Draft task. Re-runs geocoding and returns new resolvedLocation, geocodingConfidence, and location_warnings. Precondition: task must be in Draft or Published status. Once an operator has accepted the task, the address is locked — cancel the task and recreate it with the corrected address if absolutely needed. Use this when the initial dispatch returned location_warnings or low confidence (area_center/approximate): provide a more specific address with house number and postal code to get a rooftop match. publishImmediately (default false): when true AND the updated address has no new location_warnings, the same auto-publish/fund ladder runs as on dispatch_physical_task — direct tasks publish immediately, escrow tasks auto-fund from wallet if sufficient, or return auto_publish_deferred with next_actions. Use this to correct a typo + go live in a single call. Requires authentication.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| apiKey | Yes | Your API key (m2m_...) | |
| taskId | Yes | Task ID to update — must be in Draft status | |
| locationAddress | No | New address (leave null to only update lat/lng). Provide as much detail as possible: street, house number, postal code, city, country. | |
| locationLatitude | No | Optional: override latitude (decimal degrees, e.g. 52.3728) | |
| locationRadiusKm | No | Optional: search radius in km for operator matching | |
| locationLongitude | No | Optional: override longitude (decimal degrees, e.g. 4.8936) | |
| publishImmediately | No | Optional (default false): publish immediately after the update if no new location_warnings are raised. For escrow tasks, auto-funds from wallet when balance is sufficient. For direct-settlement, publishes without funding. |