Reference

Diff branches

What changed from the branch from to this one, in path order.

GET
/namespaces/{namespace}/branches/{branch}/diff

Authorization

bearer
headerAuthorizationBearer <token>

Path Parameters

namespace*string

A namespace of your organization, such as prod/app, or <org>:<namespace> for a public namespace of another one. Encode / as %2F.

branch*string

A branch, such as main or agents/fix-1. Encode / as %2F.

Query Parameters

from*string
Match^[A-Za-z0-9_-][A-Za-z0-9._-]*(\/[A-Za-z0-9_-][A-Za-z0-9._-]*)*$
Lengthlength <= 200
against?string

head compares with from as it is now. base compares with the newest commit both branches share, so only what this branch changed shows, as in git diff from...branch.

Default"head"
Value in"head""base"
limit?|

The most changes to return, at most 1000. 1000 by default.

after?string

The next page: the path of the last one of the page before.

Lengthlength <= 4096

Response Body

The changes.

application/json
  1. response
[index: integer]?
Example Request
curl -X GET 'https://example.com/v1/namespaces/string/branches/string/diff?from=string'
Example Response
[  {    "kind": "added",    "path": "string"  }]