> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# ActivityRequest (JSON)

> ActivityRequest (JSON)

# ActivityRequest (JSON)

要求取得一或多位使用者 Rich Presence 的相關資訊。

## ActivityRequest

ActivityRequest 物件具有下列規格。

| 成員 | 類型 | 描述 |
| - | - | - |
| richPresence | [RichPresenceRequest](https://docs.xbox.com/zh-TW/reference/live/rest/json/json-richpresencerequest.md) | 應使用之 Rich Presence 字串的易記名稱。 |
| media | MediaRequest | 使用者正在觀看或聆聽之內容的媒體資訊。 |

## JSON 語法範例

```json theme={null}
{
    richPresence:
    {
      id:"playingMapWeapon",
      scid:"abba0123-08ba-48ca-9f1a-21627b189b0f"
    }
  }
    
```

## 另請參閱

##### 上層

[JavaScript 物件標記法 (JSON) 物件參考](https://docs.xbox.com/zh-TW/reference/live/rest/json/atoc-xboxlivews-reference-json.md)


## Related topics

- [JavaScript 物件標記法 (JSON) 物件參考](https://docs.xbox.com/zh-TW/reference/live/rest/json/atoc-xboxlivews-reference-json.md)
- [透過 REST 更新使用者的線上狀態](https://docs.xbox.com/zh-TW/services/xbox-services/community/presence/how-to/live-updating-presence-rest.md)
- [TitleRequest (JSON)](https://docs.xbox.com/zh-TW/reference/live/rest/json/json-titlerequest.md)
- [Report Ad Activity](https://docs.xbox.com/api-reference/advertising/report-ad-activity.md)
- [ActivityRecord (JSON)](https://docs.xbox.com/zh-TW/reference/live/rest/json/json-activityrecord.md)
