Harthelm Docs

Revoke a repository

Removes the repository from the workspace's list of repositories the git proxy lets it reach; the next git request for it gets 403. Audited as `git_access.remove`. Needs `workspace.git_access`.

Generated from openapi/harthelm.yaml at v1.5.0
DELETE
/workspaces/{ws}/git-access/{provider}/{owner}/{repo}

Authorization

cookie__Host-harthelm_session<token>

Browser session of the UI (12 h idle, 7 days absolute). State-changing requests also need the header Harthelm-CSRF: 1 and a matching Origin.

Path Parameters

ws*integer

Numeric resource id.

Formatint64
Range1 <= value
provider*string

Provider id from GET /git/providers.

Match^[a-z][a-z0-9-]{0,30}$
owner*string

Owner (user or organization) of the repository at the provider.

Match^[A-Za-z0-9][A-Za-z0-9._-]{0,99}$
repo*string

Repository name without .git.

Match^[A-Za-z0-9][A-Za-z0-9._-]{0,99}$

Response Body

Removed; the next git request for it gets 403.

curl -X DELETE 'https://console.example.com/api/v1/workspaces/1/git-access/string/string/string'
Empty