sites

Get Git Configuration

Return the current git configuration for a site — repository URL, branch, repositorySubdirectory (the directory within the repository to deploy from), destinationPath (the path within the site's document root to deploy into), and whether a token is stored.

get/sites/{site_id}/git

Request

Path parameters

site_idinteger required

Response

Successful Response

messagestring
dataobject

Example response

{
  "message": "Success",
  "data": {
    "repository": "https://github.com/example/site.git",
    "branch": "main",
    "destinationPath": "wp-content",
    "repositorySubdirectory": "wp-content",
    "connected": true,
    "hasToken": true
  }
}

Changes

No recorded changes to this operation across all 2 revisions of this API.