External APIs
Invoke an externally-exposed swarm script
Changed onRuns the script bound to this endpoint and returns a JSON envelope { ok, result, error, durationMs } (HTTP 200) once execution is reached. Auth/routing failures use 401 (bad/missing bearer) and 404 (unknown or disabled endpoint). Optional X-Swarm-Timeout-Ms header (default 60000, clamped 1000–300000) sets the wall-clock timeout.
post/api/x/script/{endpointId}
Request
- Base URLhttp://localhost:3013
- URLhttp://localhost:3013/api/x/script/{endpointId}
- Authnone declared
Path parameters
endpointIdstring required
Response
Script executed — see ok in the envelope
Changes
- info
added the media type
application/jsonfor the response with the status - info
added the media type
application/jsonfor the response with the status - info
added the media type
application/jsonfor the response with the status - info
added the media type
application/jsonfor the response with the status
- info
- info
endpoint added
- info