---
title: "Grant access to live test output, if user has relevant access"
method: PUT
path: "/testRuns/{test_run_id}/liveTestOutput/grantAccess"
tags: ["TestRun"]
---

# Grant access to live test output, if user has relevant access

`PUT /testRuns/{test_run_id}/liveTestOutput/grantAccess`

Signals that the user will start viewing live test output for the given test run.
Evaluates access permissions and, if permitted, writes an access control key to Firebase
which triggers on-demand log replay by the test runner. Returns 401/403/404 if access is denied.

## Path parameters

- `test_run_id` string, required

## Response `204`

Access granted

## Other responses

- `401` — User not authenticated
- `403` — User not authorized
- `default` — Unknown error

---

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