---
title: "Replace office (until the next server restart)"
method: POST
path: "/api/admin/replaceOffice"
tags: ["Admin"]
---

# Replace office (until the next server restart)

`POST /api/admin/replaceOffice`

## Request body

- OfficeConfiguration
  - `groups` Group[]
    - `id` string, required
    - `name` string, required
  - `rooms` RoomCreation[]
    - `id` string, required
    - `group` string
    - `name` string, required
    - `joinUrl` string
    - `temporary` boolean
    - `links` Link[]
      - `href` string, required
      - `text` string, required
      - `icon` string
    - `icon` string

## Response `200`

Success

## Changes

- **2020-04-24** `bd22bb480374` — 1 breaking, 3 info
  - the request's body type/format changed from `array`/`` to `object`/``
  - the endpoint scheme security `basicAuth` was added to the API
  - added the new optional request property `groups`
  - added the new optional request property `rooms`
- **2020-04-24** `3ea50aeb71b2` — 1 info
  - endpoint added
- **2020-03-29** `7d0e3757f332` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/tng/apis/virtual-office/changes/api/admin/replaceOffice/post.md)

---

[API](https://skmtc.dev/tng/apis/virtual-office.md) · [All operations](https://skmtc.dev/tng/apis/virtual-office/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/tng/virtual-office/revisions/bd22bb480374/schema)
