Update repository settings

patch/repositories/{owner}/{repo}

Request

  • Base URL
    https://app.gecko.security/api/v1
  • URL
    https://app.gecko.security/api/v1/repositories/{owner}/{repo}
  • Auth
    • API key in header X-API-Key
    • or HTTP bearer

Path parameters

ownerstring required
repostring required

Repository name; may contain / segments for GitLab subgroup paths. A name whose final segment is literally scans or vulnerabilities collides with the sub-resource routes. Address that repository by id instead.

Query parameters

provider'github' | 'gitlab' | 'zip'

Disambiguates when the same full name is tracked on multiple providers.

resource'repository'

Pass repository to pin the whole path as the repository name when it ends in scans or vulnerabilities.

Headers

Idempotency-Keystring

Safely retry a POST/PATCH; a replayed key returns the original response.

Request body

fail_on_severity'critical' | 'high' | 'medium' | 'low' nullable

Response

Success

object'repository' required
idstring uuid required
full_namestring required
namestring required
providerstring required
default_branchstring required
web_urlstring nullable required
last_scan_atstring nullable required
scan_countinteger required
created_atstring required

Changes

No recorded changes to this operation across all 1 revision of this API.