Skip to main content
GET
/
projects
/
{projectId}
/
git
/
refs
/
{repositoryRefId}
Get a ref object
curl --request GET \
  --url {schemes}://api.upsun.com/projects/{projectId}/git/refs/{repositoryRefId} \
  --header 'Authorization: Bearer <token>'
{
  "id": "<string>",
  "ref": "<string>",
  "object": {
    "type": "<string>",
    "sha": "<string>"
  },
  "sha": "<string>"
}

Authorizations

Authorization
string
header
required

Path Parameters

projectId
string
required
repositoryRefId
string
required

Response

default - application/json
id
string
required

The identifier of Ref

ref
string
required

The name of the reference

object
Object · object
required

The object the reference points to

sha
string
required

The commit sha of the ref