Skip to main content

Endpoint

PUT https://api.luarmor.net/v3/projects/{project_id}/scripts/{script_id}

Path parameters

Headers

Request body

The body is the script’s settings object, plus the new source code in script.
Fetch the script’s current settings from Get API Key Details, then send them back with only the fields you want to change. This keeps settings like heartbeat and silent as they were.

Success response

200: the script was updated.
If the script is processed in the background (use_reactor), the response includes a track_progress ID instead. Pass it to Get Update Progress to check when the update has finished.

Error responses

If the response mentions that the script is too large for this channel, the upload was rejected and retrying will not help.

Example request

To update your script from GitHub Actions, use luarmor-deploy-action, which handles progress tracking and timeouts for you.