Skip to main content
POST
/
sites
/
environments
/
{env_id}
/
ssh
/
set-status
Enable/Disable SFTP/SSH
curl --request POST \
  --url https://api.kinsta.com/v2/sites/environments/{env_id}/ssh/set-status \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "is_enabled": true
}
'
{
  "result": null
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
is_enabled
boolean
required
Example:

true

Response

Site creation action started. Check MyKinsta for status

result
null
required