API Stability Short-Term

The updateRepositoryDataType() GraphQL mutation may be used to change the data type of a repository.

Syntax

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

graphql
updateRepositoryDataType(
      input: UpdateRepoDataTypeInputObject!
   ): boolean!

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

Show:
graphql
mutation {
  updateRepositoryDataType( input:
    {
      dataspaceId: "cfeQriTyDwPerwIPCGw505lp",
      repoDataType: ANYDATA
    }
  ) 
}
Example Responses
Show:
json
{
  "data": {
    "updateRepositoryDataType": true
  }
}

Given Datatypes

For UpdateRepoDataTypeInputObject, there are a couple of parameters, and a few sub-parameters. Below is a list of them along with a description of each:

Table: UpdateRepoDataTypeInputObject

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: Feb 26, 2025
dataspaceIdstringyes  The dataspace identifier.
repoDataTypeRepositoryDataTypeyes  The type of repository. See RepositoryDataType.