createRepo
Create an empty repo in the org and answer it. Takes createRepos on the org. The body is {"name": name, "idempotency_key": key}, with an optional "description" of at most 280 characters: retrying with the same key resumes the same creation, and a new key creates another repo. The repo's slug, its address in the org, comes from its name: lowercase ASCII letters and digits in words joined by single hyphens, at most 64 characters, so "Acme Standards" gives acme-standards. A name another repo in the org holds, in any case and archived or not, is refused with RepoNameTaken; a name whose slug another repo holds, such as one that differs only in punctuation, with RepoSlugTaken; and a name with no ASCII letter or digit with RepoNameNeedsLetterOrDigit.
/orgs/{org_id}/reposPath parameters
Request body JSON required
Returns
201
Repo
400
InvalidRequest | RequestBodyTooDeep
One of the following:
- InvalidRequestEncoded
- RequestBodyTooDeepEncoded
403
Forbidden | ForbiddenOrigin | RequiresPersonalSession | RunBranchRequired
One of the following:
- ForbiddenEncoded
- ForbiddenOriginEncoded
- RequiresPersonalSessionEncoded
- RunBranchRequiredEncoded
404
OrgNotFound | RepoNotFound
One of the following:
- OrgNotFoundEncoded
- RepoNotFoundEncoded
409
RepoCreationConflict | RepoNameTaken | RepoSlugTaken
One of the following:
- RepoCreationConflictEncoded
- RepoNameTakenEncoded
- RepoSlugTakenEncoded
413
RequestBodyTooLarge
500
OrgFailure | RepoFailure
One of the following:
- OrgFailureEncoded
- RepoFailureEncoded
503
SessionUnavailable | RateLimitUnavailable
One of the following:
- SessionUnavailableEncoded
- RateLimitUnavailableEncoded