---
title: "Enable Stats Collection"
method: PUT
path: "/library/setenablestat/{mediaId}"
tags: ["library"]
---

# Enable Stats Collection

`PUT /library/setenablestat/{mediaId}`

Set Enable Stats Collection? to use for the collection of Proof of Play statistics for a media.

## Path parameters

- `mediaId` integer, required

## Response `204`

successful operation

---

[API](https://skmtc.net/xibosignage/apis/xibo-api.md) · [All operations](https://skmtc.net/xibosignage/apis/xibo-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/xibosignage/xibo-api/revisions/fe497e811c7f/schema)
