---
title: "Add a repository to the current user's recent list"
method: POST
path: "/api/v1/preferences/repos/recent"
tags: ["Preferences"]
---

# Add a repository to the current user's recent list

`POST /api/v1/preferences/repos/recent`

## Request body

- union
  - object
    - `repo_id` string, required — Internal repository id
  - object
    - `full_name` string, required — Repository full name

## Response `200`

Pinned and recent repositories after mutation

- object
  - `pinned` object[], required
    - `repo_id` string, required
    - `full_name` string, required
    - `runners_enabled` boolean, required
    - `trails_enabled` boolean, required
    - `provider` 'github' | 'entire'
  - `recent` object[], required
    - `repo_id` string, required
    - `full_name` string, required
    - `runners_enabled` boolean, required
    - `trails_enabled` boolean, required
    - `provider` 'github' | 'entire'

## Other responses

- `400` — Invalid request body
- `401` — Not authenticated

---

[API](https://skmtc.dev/entire/apis/entire-api.md) · [All operations](https://skmtc.dev/entire/apis/entire-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/entire/entire-api/revisions/c3d737ae064e/schema)
