The updatePackageFromRegistryV2() GraphQL mutation field may be used to update a package in a specified view in LogScale.

For more information on packages, see the Packages documentation page.

Syntax

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

updatePackageFromRegistryV2(UpdatePackageFromRegistryInput: UpdatePackageFromRegistryInput!): PackageUpdateResult!

Given Datatypes

For the given datatype, UpdatePackageFromRegistryInput, there are several parameters that may be given. Below is a list of them along with their datatypes and a description of each:

Table: UpdatePackageFromRegistryInput

ParameterTypeRequired[a]DefaultDescription
conflictResolutions[ConflictResolutionConfiguration]yes A list of resolutions to any conflicts encountered. See ConflictResolutionConfiguration.
packageIdVersionedPackageSpecifieryes The unique identifier for the package.
queryOwnershipTypeQueryOwnershipTypeyes Ownership of the query run by this filter alert. If value is User, ownership will be based on the runAsUserId field. See QueryOwnershipType.
viewNameRepoOrViewNameyes The name of the view related to the package. RepoOrViewName is a scalar.

[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.


Returned Datatypes

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

Table: PackageUpdateResult

ParameterTypeRequired[a]DefaultDescription
packagePackage2yes The package that was updated (see Package2 Table).

[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.