v5

latestOpenAPI 3.1.0raw.githubusercontent.com2026-06-167122208.0 KB
repositories

create

Example request:

curl -X POST                                                  \
     -H "Content-Type: application/json"                      \
     -d '{"repository": {"name": "thename", "private": "1"}}' \
     "https://packagecloud.io/api/v1/repos.json"
post/api/v1/repos

Request body

Response

String The URL of the new repository resource.

urlstring required

The API URL of the newly created repository.