---
title: "Toggle Pin Status of a Hub"
method: PUT
path: "/v1/user/hubs/{hub_id}/pin"
tags: ["User"]
---

# Toggle Pin Status of a Hub

`PUT /v1/user/hubs/{hub_id}/pin`

Change whether the hub is pinned for the currently logged in user

## Path parameters

- `hub_id` string, uuid, required

## Response `200`

Successfully toggled the pin status of the hub

- object
  - `metadata` object — Additional metadata
  - `data` object[]
    - `name` string — Name of the hub
    - `publicId` string, uuid — Public ID of the hub
    - `primaryColour` string — Primary colour of the hub
    - `contributors` integer — Number of contributors to the hub
    - `views` integer — Number of views of the hub

## Other responses

- `404` — User or hub not found

---

[API](https://skmtc.net/morta-technology/apis/morta-api-reference.md) · [All operations](https://skmtc.net/morta-technology/apis/morta-api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/morta-technology/morta-api-reference/versions/9c58c1c1e7e8/schema)
