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

Authorizations

Authorization
string
header
required

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

Path Parameters

org
string
required

Organization slug

Minimum string length: 1
repo
string
required

Repository name

Minimum string length: 1
bookmark
string
required
Minimum string length: 1

Body

application/json
change_id
string
required

Change to move the bookmark to. This may be the virtual root change id (zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz).

Pattern: ^[zyxwvutsrqponmlk]{32}$

Response

Bookmark moved

name
string
required
change_id
string
required

Change id the bookmark points to. When a bookmark points at the empty tree this is the virtual root change id (zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz).

Pattern: ^[zyxwvutsrqponmlk]{32}$
is_default
boolean
required
from_change_id
string | null
required
Pattern: ^[zyxwvutsrqponmlk]{32}$