sites
Connect Repository
Attach a GitHub repository to the site and trigger an initial deploy. The site's account must already have a bearer token stored — call POST /sites/{site_id}/git/token first if it does not.
post/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
Request body
Response
Successful Response
Example response
{
"message": "Created",
"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.