sites

Update Configuration

Update the connected branch, destination path, or repository subdirectory on a site that is already connected to git. Omitted fields are left unchanged; pass an explicit empty string to destination_path or repository_subdirectory to clear that field.

put/sites/{site_id}/git

Request

Path parameters

site_idinteger required

Request body

branchstring
destination_pathstring

Response

Successful Response

messagestring
dataobject

Example response

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

Changes

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