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
- Base URLhttps://my.pressable.com/v1
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
site_idinteger required
Response
Successful Response
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.