Configures PTC to route package manager traffic for the specified package type through a specific Artifactory remote repository. This call does three things: it tells PTC which Artifactory remote repository to use for each package type, creates the _package-reroute system user that handles redirected traffic, and (by default) auto-enrolls the repository in Curation. PTC does not work for a package type until this step completes for that type.
The repo_key is required and must reference an existing Artifactory remote repository (virtual repositories are not supported and will be rejected by the API in a future release; max 64 characters; must not be ".", "..", or "&"; must not contain / \ : | ? * " < >).
When linked_curation is true (the default), the target remote repository is auto-enrolled in Curation (curated=true) if not already enabled. This requires that Curation is enabled in Artifactory and that the package type is supported by Curation. Set linked_curation: false to skip Curation enrollment entirely.
Security: Requires admin role.
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
400Bad Request - Unsupported package type, repo_key is required, or the assigned repo should be an existing remote repo.
401Bad Credentials - Authentication failed. A valid token is required.
403Forbidden — the caller is not an admin, or package reroute is not available under the current license or entitlement.
407Proxy Authentication Required - The request must be authenticated with the proxy.
409Conflict - Another package reroute configuration change is in progress. Retry the request.
422Unprocessable Entity - Curation cannot be enabled because it is disabled or does not support the package type. Only returned when linked_curation is true (the default).
500Internal Server Error - The service user or package reroute configuration could not be synchronized. Retry the request.
503Service Unavailable - Curation could not be enabled for the repository. Only returned when linked_curation is true (the default).
