The updateRepositoryType() GraphQL mutation is used to change the type of repository. This is useful only in Cloud setups. 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!

Returned Datatypes

The returned datatype BooleanResultType has its own parameters. Below is a list of them along with their datatypes and a description of each:

Table: BooleanResultType

ParameterTypeRequired[a]DefaultDescription
resultsbooleanyes Whether the mutation was performed or not.

[a] Some arguments may be required, as indicated in this column. For some fields, this column indicates that a result will always be returned for it.