Automation

Run a one-off command in the project's container and wait for its bounded output

post/projects/{projectId}/run-command

Request

  • Base URL: https://hostingsurge.com/api/v1
  • URL: https://hostingsurge.com/api/v1/projects/{projectId}/run-command
  • Auth: one of:
    • HTTP bearer
    • API key in cookie __Host-hs_session

Path parameters

projectIdstring uuid required
Example:3f2b8a4e-5c1d-4e8f-9a7b-2c6d1e0f4a5b

Request body

commandstring required
containerstring

Response

Finished (or timed out)

status'success' | 'failed' | 'timeout' required
outputstring required
truncatedboolean required
durationMsinteger nullable required

Changes

No recorded changes to this operation across all 1 revision of this API.