---
title: "购买/续费房间背景"
method: POST
path: "/api/room/bg/buy"
tags: ["房间背景接口"]
---

# 购买/续费房间背景

`POST /api/room/bg/buy`

## Request

- Base URL: `http://api.oloo.live`
- URL: `http://api.oloo.live/api/room/bg/buy`
- Auth: none declared

bgId > 0 购买或续费付费房间背景；bgId < 0 续费自定义背景，取值为 -room_bg_purse_record.id

## Query parameters

- `uid` integer, required
- `bgId` integer, required

## Response `200`

OK

- WebServiceMessageObject
  - `code` integer
  - `data` unknown
  - `message` string
  - `time` integer

---

[API](https://skmtc.dev/oloo/apis/oloo-api.md) - [All operations](https://skmtc.dev/oloo/apis/oloo-api/llms.txt) - [OpenAPI document](https://skmtc.dev/oloo/apis/oloo-api/revisions/ada91d3a60e4?raw)
