Npm - Set Scoped Upstreaming Behavior
Set the upstreaming behavior of a (scoped) package within the context of a feed
The package does not need to necessarily exist in the feed prior to setting the behavior. This assists with packages that are not yet ingested from an upstream, yet the feed owner wants to apply a specific behavior on the first ingestion.
PATCH https://pkgs.dev.azure.com/{organization}/{project}/_apis/packaging/feeds/{feedId}/npm/packages/@{packageScope}/{unscopedPackageName}/upstreaming?api-version=7.1
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
feed
|
path | True |
string |
The name or id of the feed |
organization
|
path | True |
string |
The name of the Azure DevOps organization. |
package
|
path | True |
string |
The scope of the package |
unscoped
|
path | True |
string |
The name of the scoped package |
project
|
path |
string |
Project ID or project name |
|
api-version
|
query | True |
string |
Version of the API to use. This should be set to '7.1' to use this version of the api. |
Request Body
Name | Type | Description |
---|---|---|
versionsFromExternalUpstreams |
Indicates whether external upstream versions should be considered for this package |
Responses
Name | Type | Description |
---|---|---|
200 OK |
successful operation |
Security
oauth2
Type:
oauth2
Flow:
accessCode
Authorization URL:
https://app.vssps.visualstudio.com/oauth2/authorize&response_type=Assertion
Token URL:
https://app.vssps.visualstudio.com/oauth2/token?client_assertion_type=urn:ietf:params:oauth:client-assertion-type:jwt-bearer&grant_type=urn:ietf:params:oauth:grant-type:jwt-bearer
Scopes
Name | Description |
---|---|
vso.packaging_manage | Grants the ability to create, read, update, and delete feeds and packages. |
Definitions
Name | Description |
---|---|
Upstreaming |
Describes upstreaming behavior for a given feed/protocol/package |
Upstream |
Indicates whether external upstream versions should be considered for this package |
UpstreamingBehavior
Describes upstreaming behavior for a given feed/protocol/package
Name | Type | Description |
---|---|---|
versionsFromExternalUpstreams |
Indicates whether external upstream versions should be considered for this package |
UpstreamVersionVisibility
Indicates whether external upstream versions should be considered for this package
Name | Type | Description |
---|---|---|
allowExternalVersions |
string |
|
auto |
string |