List repositories

List all sub-repositories installed on a WordPress site.


GET/api/servers/{server}/sites/{id}/wordpress/repositories

List repositories

Returns all sub-repositories installed on this WordPress site. These are separate Git repositories cloned into subdirectories (e.g. themes or plugins managed via Git).

Request

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

Response

{
  "data": [
    {
      "id": 1,
      "user": "acme",
      "name": "custom-theme",
      "branch": "main",
      "type": "github",
      "target_directory": "public/wp-content/themes/custom-theme",
      "deploy_script": "cd /home/ploi/domain.com/public/wp-content/themes/custom-theme\ngit pull origin main\n\necho \"acme/custom-theme deployed!\"",
      "status": "installed"
    }
  ]
}