promote
Promote a package.
This API is similar to a move operation. Once this API call completes successfull, the package being promoted will only exist in the destination.
The dependencies array for Debian packages will list dependencies for the following contexts: depends, recommends, suggests, enhances, pre-depends
The dependencies array for Debian Source packages (DSC) will list dependencies for the following contexts: build-depends and build-depends-indep
The dependencies array for Node.js packages will list dependencies for the following contexts: dependencies, devDependencies, optionalDependencies, bundleDependencies, and peerDependencies.
The dependencies array for Node.js packages will list dependencies for the following contexts: dependencies, devDependencies, optionalDependencies, bundleDependencies, and peerDependencies.
Example request:
curl -X POST \
-F "destination=julio/testrepo" \
"https://packagecloud.io/api/v1/repos/user/example-repo/el/7/jake-1.0-3.el6.x86_64.rpm/promote.json"
Path parameters
The user this repo belongs to.
The name of the repository.
The name of the distribution the package is in. (i.e. ubuntu)
The version name of the distribution the package is in. (i.e. precise)
The full name of the package.
Query parameters
The scope of the Node.JS package to promote. Only required if the package to promote is scoped. Include the escaped '@' (i.e. ?scope=%40example).
Response
PackageDetails A JSON object representing the package.
Example response
{
"name": "jake",
"distro_version": "fedora/22",
"architecture": "x86_64",
"repository": "test_repo",
"size": "3712",
"summary": "jake douglas is a very nice young man.",
"filename": "jake-1.0-1.el6.x86_64.rpm",
"description": "as it so happens, jake douglas is a very nice young man.",
"dependencies": [
{
"context": "requires",
"dependencies": [
"libc.so.6(GLIBC_2.2.5)(64bit)",
"rtld(GNU_HASH)"
]
}
],
"md5sum": "5abe922fc4bbf5bbdac9b85173371892",
"sha1sum": "062fd41ecf96587309ec9a3ae2035cc44c348b8f",
"sha256sum": "070da5370a96ba3ae679e7d02d7de6309e4d159340d9f3b555d6d5b4b7cf260a",
"sha512sum": "406fa288d5dfff194ec2b119b798c4658375a5d07b34f2d6350885cdf6b620f3fdeee45427fef8bcd37e6624049fba0c633b5b4030b79bf96028db6b4f01de87",
"private": false,
"uploader_name": "test_user",
"created_at": "2017-03-13T02:49:29.000Z",
"licenses": [
"GPL"
],
"version": "1.0",
"release": "1.el6",
"epoch": 0,
"indexed": false,
"scope": null,
"repository_url": "/api/v1/repos/test_user/test_repo",
"repository_html_url": "/test_user/test_repo",
"package_url": "/api/v1/repos/test_user/test_repo/package/rpm/fedora/22/jake/x86_64/1.0/1.el6.json",
"versions_url": "/api/v1/repos/test_user/test_repo/package/rpm/fedora/22/jake/x86_64/versions.json",
"promote_url": "/api/v1/repos/test_user/test_repo/fedora/22/jake-1.0-1.el6.x86_64.rpm/promote.json",
"total_downloads_count": 0,
"download_url": "https://packagecloud.io/test_user/test_repo/packages/fedora/22/jake-1.0-1.el6.x86_64.rpm/download",
"package_html_url": "/test_user/test_repo/packages/fedora/22/jake-1.0-1.el6.x86_64.rpm",
"downloads_detail_url": "/api/v1/repos/test_user/test_repo/package/rpm/fedora/22/jake/x86_64/1.0/1.el6/stats/downloads/detail.json",
"downloads_series_url": "/api/v1/repos/test_user/test_repo/package/rpm/fedora/22/jake/x86_64/1.0/1.el6/stats/downloads/series/daily.json",
"downloads_count_url": "/api/v1/repos/test_user/test_repo/package/rpm/fedora/22/jake/x86_64/1.0/1.el6/stats/downloads/count.json",
"destroy_url": "/api/v1/repos/test_user/test_repo/fedora/22/jake-1.0-1.el6.x86_64.rpm",
"self_url": "/api/v1/repos/test_user/test_repo/package/rpm/fedora/22/jake/x86_64/1.0/1.el6.json"
}