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:

graphql
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

ParameterTypeRequiredDefaultDescription
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 23, 2024
conflictResolutions[ConflictResolutionConfiguration]yes A list of resolutions to any conflicts encountered. See ConflictResolutionConfiguration.
packageIdVersionedPackageSpecifieryes The unique identifier for the package. VersionedPackageSpecifier is a scalar.
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.

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

ParameterTypeRequiredDefaultDescription
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 27, 2024
packagePackage2yes The package that was updated. See Package2.