Conduitrepository.create

API Method: repository.create

  • Unstable Method: Repository methods are new and subject to change.
  • Login Required: This method requires authentication. You must log in before you can make calls to it.
Returns
nonempty dict
Errors
  • ERR-DUPLICATE: Duplicate repository callsign.
  • ERR-BAD-CALLSIGN: Callsign is required and must be ALL UPPERCASE LETTERS.
  • ERR-UNKNOWN-REPOSITORY-VCS: Unknown repository VCS type.
  • ERR-CONDUIT-CORE: See error message for details.
Description

Create a new repository.

Call Method

Enter parameters using JSON. For instance, to enter a list, type: ["apple", "banana", "cherry"]

required string
required string-constant<"git", "hg", "svn">
required string
optional string
optional string
optional bool
required string
optional string
optional string
optional list<string>
optional list<string>
optional int
optional string
optional bool, default = true
optional bool, default = true
optional string

Examples

Use the Conduit API Tokens panel in Settings to generate or manage API tokens.
$ echo <json-parameters> | arc call-conduit --conduit-uri https://phabricator.cooltrainer.org/ --conduit-token <conduit-token> repository.create