Repositories

Create a repository

Admits a repository in the organization and returns its durable admission status: 201 when admission completed, otherwise 202 with a Location to poll. Reusing requestKey returns the same admission. Requires authenticated authority and enforces current resource policy.

post/api/orgs/{slug}/repos

Request

  • Base URL
    https://git.cafe
  • Auth
    • API key in cookie gc-session
    • or HTTP bearer
    • or HTTP basic
    • or HTTP token

Path parameters

slugstring required

Request body

namestring required
descriptionstring
homepagestring uri nullable
topicsstring[]
visibility'public' | 'private'
defaultBranchstring
requestKeystring required

Response

Response for status 201

repoIdstring required
state'pending' | 'running' | 'outcome_unknown' | 'complete' | 'blocked' required
ownerstring required
namestring required
visibility'public' | 'private' required
createdAtstring date-time required
completedAtstring date-time nullable required
attemptCountinteger required
nextAttemptAtstring date-time required

Changes

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