Skip to Content
propeller logo
API ReferenceTasksTask_id

Update Task

Update a task (e.g. set file as base64-encoded Wasm)

PUT
/tasks/{TASK_ID}

Path Parameters

TASK_ID*string

Request Body

application/json
  1. body
name?string
file?string

Base64-encoded Wasm binary

inputs?array<string|number>

Input values passed to the Wasm module (strings or numbers; numbers are coerced to strings)

proplet_id?string

Target proplet ID; mutually exclusive with broadcast

broadcast?boolean

If true, task runs on all proplets simultaneously; mutually exclusive with proplet_id

metadata?

Arbitrary key-value metadata attached to the task (max 1 MB serialized)

Response Body

Task updated (the file field is redacted in the response)

Example Request
curl -X PUT 'http://localhost:7070/tasks/string' \  -H 'Content-Type: application/json' \  -d '{  "name": "add",  "inputs": [    10,    20  ]}'
Example Response200
Empty