Skip to content

POST /wpcom/v2/sites/$wpcom_site/hosting/ssh-user

Create a SSH user for a site. Only one SSH user is allowed per site.

Resource Information

   
Method POST
URL https://public-api.wordpress.com/wpcom/v2/sites/$wpcom_site/hosting/ssh-user
Requires authentication? Yes

Method Parameters

Parameter Type Required Description
wpcom_site string | integer Yes A domain or blog ID.

Response Example

					
						{
    "username": "shinyperfectly.wordpress.com",
    "password": "123PZkwrgHafVBPuzIne1"
}					
				

Resource Errors

This endpoint does not return any errors.