GET
/
repos
/
{repo_id}
/
shelves
/
{shelf_id}
curl --request GET \
  --url https://api.diversion.dev/v0/repos/{repo_id}/shelves/{shelf_id} \
  --header 'Authorization: Bearer <token>'
{
  "id": "<string>",
  "name": "<string>",
  "created_timestamp": 123,
  "branch_id": "<string>"
}

Authorizations

Authorization
string
headerrequired

This API uses OAuth 2 with the implicit grant flow

Path Parameters

repo_id
string
required

The repo ID of the repository. Repo name can be used instead of the ID, but usage of ID for permanent linking and API requests is preferred.

shelf_id
string
required

Shelf identifier

Response

200 - application/json
id
string
required

Shelf identifier in Diversion

name
string
required

Display name of the shelf

created_timestamp
integer
required

Seconds since epoch UTC

branch_id
string

Optional branch ID from which the changes were shelved