Update deploy script
Update the deploy script for a site.
PATCH/api/servers/{server}/sites/{id}/deploy/script
Update deploy script
This endpoint allows you to update the deploy script for a specific site.
Required parameters
- Name
deploy_script- Type
- string
- Description
The new deploy script content.
Request
PATCH
/api/servers/{server}/sites/{id}/deploy/scriptcurl -X PATCH "https://ploi.io/api/servers/{server}/sites/{id}/deploy/script" \
-H "Authorization: Bearer {token}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"deploy_script": "cd /home/ploi/domain1.com......"}'
Response
{
"message": "Deploy script has been updated"
}