Skip to main content
POST
/
{org}
/
{repo}
/
bookmarks
Create bookmark
curl --request POST \
  --url https://api.mesa.dev/v1/{org}/{repo}/bookmarks \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "change_id": "<string>"
}
'
{
  "name": "<string>",
  "change_id": "<string>",
  "is_default": true
}
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

Body

application/json
name
string
required
Minimum string length: 1
change_id
string
required

Change id to point the new bookmark at. This may be the virtual root change id (zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz).

Pattern: ^[zyxwvutsrqponmlk]{32}$

Response

Bookmark created

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