---
title: "PUT /user/mainSite"
method: PUT
path: "/user/mainSite"
tags: ["User"]
---

# PUT /user/mainSite

`PUT /user/mainSite`

Set logged user's main site

## Request body

- object
  - `siteId` string

## Response `200`

Json with user's main site data

- MainSite
  - `id` string
  - `name` string
  - `url` string
  - `icon` string
  - `isTemplate` boolean
  - `showInPortfolio` boolean
  - `description` string
  - `tags` string
  - `imageUrl` string
  - `readmeContent` string

## Other responses

- `404` — Error not found
- `500` — Server error

## Changes

- **2023-06-13** `c9159f20c562` — 1 breaking, 10 info
  - the response's body type changed from no type to `object` for status `200`
  - added the optional property `description` to the response with the `200` status
  - added the optional property `icon` to the response with the `200` status
  - added the optional property `id` to the response with the `200` status
  - …7 more
- **2023-06-09** `b7c6ba235941` — 1 breaking, 10 warning
  - the response's body type changed from `object` to no type for status `200`
  - removed the optional property `description` from the response with the `200` status
  - removed the optional property `icon` from the response with the `200` status
  - removed the optional property `id` from the response with the `200` status
  - …7 more

[Change history](https://skmtc.dev/bohr-io/apis/bohr-io-api/changes/user/mainSite/put.md)

---

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