Skip to main content
POST
/
sites
/
environments
/
{env_id}
/
ssh
/
set-allowed-ips
Update SFTP/SSH IP allowlist
curl --request POST \
  --url https://api.kinsta.com/v2/sites/environments/{env_id}/ssh/set-allowed-ips \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "ip_allowlist": [
    "127.0.0.1"
  ]
}
'
{
  "result": null
}

Authorizations

Authorization
string
header
required

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

Body

application/json
ip_allowlist
string[]
required
Example:
["127.0.0.1"]

Response

Update SFTP/SSH IP allowlist

result
null
required