API referenceSections

GitConnection

GitConnection object
  • provider string required
    Allowed values: "github" "gitlab" "gitea" "bitbucket"
  • url string required
  • branch string required
  • has_token boolean required
  • webhook_path string required
  • last_commit string required
  • last_state string required
    Allowed values: "" "succeeded" "failed"
  • last_error string required
  • last_at string (date-time) | null required

Used by

GET/api/v1/tenants/{tid}/sites/{id}/gitThe site's Git connection (ADR 0027); never the token or the webhook secret
PUT/api/v1/tenants/{tid}/sites/{id}/gitConnect the site to a GitHub, GitLab, Gitea or Bitbucket branch; the webhook secret is returned once