API Stability Long-Term

The updateRepositoryType() GraphQL mutation is used to change the type of repository. This is useful only in Cloud installations. It requires root permission.

For information on creating a repository, see the Creating a Repository or View documentation page. You may also want to look at the Repositories & Views and Repositories pages for related information.

Syntax

Below is the syntax for the updateRepositoryType() mutation field:

graphql
updateRepositoryType(
      name: string!
      type: string!
   ): BooleanResultType!

Below is an example of how this mutation field might be used:

Show:
graphql
mutation {
  updateRepositoryType(
       name: "Testeroo",
       type: "PERSONAL"
  )
  { result }
}
Example Responses
Show:
json
{
  "data": {
    "updateRepositoryType": {
      "result": true
    }
  }
}

Given Datatypes

The values accepted for type are contained in the enumerated list, RepositoryType:

Table: RepositoryType

ParameterTypeRequiredDefaultStabilityDescription
Some arguments may be required, as indicated in the Required column. For some fields, this column indicates that a result will always be returned for this column.
Table last updated: Mar 14, 2025
DEFAULTboolean  Long-TermWhether repository type is a default one.
MANAGEDboolean  Long-TermWhether repository type is managed.
PERSONALboolean  Long-TermWhether repository type is personal.
SYSTEMboolean  Long-TermWhether repository type is a system repository.
TRIALboolean  Long-TermWhether repository type is for a trial account.

Returned Datatypes

The returned datatype BooleanResultType has one parameter. It's described below:

Table: BooleanResultType

ParameterTypeRequiredDefaultStabilityDescription
Some arguments may be required, as indicated in the Required column. For some fields, this column indicates that a result will always be returned for this column.
Table last updated: Sep 24, 2024
resultsbooleanyes Long-TermWhether the mutation was performed.