Repositories

Fork a repository

Admits a fork under the requested owner, copying only the default branch unless branches adds selected branches or allBranches copies every branch and tag. Returns 200 when complete or 202 with durable admission status; poll GET /orgs/{owner}/admissions/{repoId} for progress. requestKey, or the source-owner-name default, makes retries with the same selection converge. Requires authenticated authority and enforces current resource policy.

post/api/repos/{owner}/{repo}/fork

Request

  • Base URL
    https://git.cafe
  • Auth
    • API key in cookie gc-session
    • or HTTP bearer
    • or HTTP basic
    • or HTTP token
    • or OAuth 2
      Authorization code: /api/oauth/authorize
      Token URL: /api/oauth/token scopes: repo:contents:read

Path parameters

ownerstring required
repostring required

Request body

ownerstring required
namestring
requestKeystring
branchesstring[]
allBranchesboolean

Response

Response for status 200

repoIdstring required
state'pending' | 'running' | 'outcome_unknown' | 'complete' | 'blocked' required
ownerstring required
namestring required

Changes

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