POST /wpcom/v2/sites/$wpcom_site/hosting/ssh-access
Sets the SSH access setting for a site. Use sftp to disable or ssh to enable SSH access.
Resource Information
| Method | POST |
|---|---|
| URL | https://public-api.wordpress.com/wpcom/v2/sites/$wpcom_site/hosting/ssh-access |
| Requires authentication? | Yes |
Method Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| wpcom_site | string | integer | Yes | A domain or blog ID. |
| setting | string | Yes | Use sftp to disable or ssh to enable SSH access. |
Response Example
{
"setting": "ssh"
}
Resource Errors
This endpoint does not return any errors.