Skip to main content
PATCH
/
{org}
/
{repo}
/
bookmark
/
{bookmark}
Move bookmark
curl --request PATCH \
  --url https://api.mesa.dev/v1/{org}/{repo}/bookmark/{bookmark} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "commit_oid": "<string>",
  "from_commit_oid": "<string>"
}
'
{
  "name": "<string>",
  "commit_oid": "<string>",
  "is_default": true
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

org
string
required
Minimum string length: 1
repo
string
required
Minimum string length: 1
bookmark
string
required
Minimum string length: 1

Body

application/json
commit_oid
string
required
Pattern: ^[0-9a-f]{40}$
from_commit_oid
string
Pattern: ^[0-9a-f]{40}$

Response

Bookmark moved

name
string
required
commit_oid
string
required
Pattern: ^[0-9a-f]{40}$
is_default
boolean
required