Allocate a registry package name
POST/api/owners/{handle}/packages
createPackage
Creates `{handle}/{name}` as a pullable/pushable registry name. Authorized as `workspace:package:create` on the owning workspace and nothing else — a repo collaborator with no workspace membership cannot take a name. The optional `repo` link widens access to holders of `repo:registry:*` on that repo and must live in the same workspace.
Requires authentication using a bearer token or a session cookie — see tokens and scopes.
curl
curl -X POST 'https://neosource.dev/api/owners/HANDLE/packages' \
-H 'Authorization: Bearer $NEOSOURCE_TOKEN' \
-H 'Content-Type: application/json' \
-d '{"name":"server"}'fetch
fetch("https://neosource.dev/api/owners/HANDLE/packages", {
method: "POST",
headers: {
Authorization: "Bearer $NEOSOURCE_TOKEN",
"Content-Type": "application/json",
},
body: JSON.stringify({"name":"server"}),
});Path parameters
handlerequiredHandle of the owner — either a user account or an organization.
Request bodyrequired
application/json
Responses
201Package created
application/json
403Forbidden — one of: forbidden, needs_scope
application/json
one of
Standard errors
Bodies documented once for the whole API — see standard errors.
- 400Bad Request — one of: invalid_input
- 404Not Found — one of: not_found
- 409Conflict — one of: already_exists, conflict
- 429Rate limited — retry after the `Retry-After` header
- 500Internal server error
- 503Service temporarily unavailable / at capacity — retry after the `Retry-After` header
- 504Gateway timeout — the request exceeded the server's handling budget