PIERRE COMPUTER COMPANY █
CODE STORAGE
2026
[ LOG IN ]
[ CHANGELOG ]
[ DOCS ]
[H]Home[C]Changelog[M]Manual[P]Pricing[S]Status
← Back
------
Feature:

Upstream Paths

Date:October 07, 2026Author:Nicolas GallagherCategory:ENGINEERING
------

The two upstream operations of a repository now have their own paths under /upstream. A repository has an upstream when you create it with the upstream field. The new paths take the same requests and return the same responses as the old paths.

Pull from the upstream

POST /api/repos/{repo_name}/upstream/pull starts a sync from the upstream:

curl "$PIERRE_API_BASE_URL/repos/hello-world/upstream/pull" \
  -X POST \
  -H "Authorization: Bearer $PIERRE_TOKEN"

The request returns 202, and the sync runs in the background:

{ "message": "Repository sync initiated successfully" }

Remove the upstream

DELETE /api/repos/{repo_name}/upstream removes the upstream. The repository keeps its branches, and it stops syncing:

curl "$PIERRE_API_BASE_URL/repos/hello-world/upstream" \
  -X DELETE \
  -H "Authorization: Bearer $PIERRE_TOKEN"
{ "message": "repository detached" }

A repository without an upstream returns 200 with repository already detached.

Deprecated paths

The old paths still work. They are deprecated, and each response has a Deprecation header. Move each call to its replacement:

Deprecated pathReplacement
POST /api/repos/{repo_name}/pull-upstreamPOST /api/repos/{repo_name}/upstream/pull
POST /api/v1/repos/pull-upstreamPOST /api/repos/{repo_name}/upstream/pull
DELETE /api/repos/{repo_name}/baseDELETE /api/repos/{repo_name}/upstream
DELETE /api/v1/repos/baseDELETE /api/repos/{repo_name}/upstream

The SDK method repo.pullUpstream() still calls /api/v1/repos/pull-upstream, and it keeps working.

See the API reference for repos.upstream.pull and repos.upstream.delete.

+ Recently +

  • Oct 06, 2026
    Repository Upstream Field
    Nicolas Gallagher
  • Oct 05, 2026
    Webhook Custom Headers
    Sean Lingren
  • Oct 02, 2026
    Rendered Markdown
    Mark Otto
[See all]
+ + + + + + + + + + + + + + + + + + + + + +
© Pierre Computer Company, Inc. All rights reserved.
[ LOG IN ]
[ CHANGELOG ]
[ DOCS ]
Docs|Status|Pricing|Log in|Legal