Enviroment

Get .env from site

Get the .env file from a website, this will only work if the file is present

GET api/servers/{server}/sites/{id}/env

Example request:

curl -X GET "https://ploi.io/api/servers/{server}/sites/{id}/env" \
-H "Authorization: Bearer {token}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"

Example response:

null

Update .env from site

Updates the .env file, this will only work if the file is present

PATCH api/servers/{server}/sites/{id}/env

Example request:

curl -X PATCH "https://ploi.io/api/servers/{server}/sites/{id}/env" \
-H "Authorization: Bearer {token}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"

Example response:

null