---
title: "Allow or revoke the raw capture archive for an internal tenant (operators only)"
method: PUT
path: "/v1/admin/tenants/{tenant}/raw-archive"
tags: ["admin"]
---

# Allow or revoke the raw capture archive for an internal tenant (operators only)

`PUT /v1/admin/tenants/{tenant}/raw-archive`

## Request

- Base URL: `https://api.sixminute.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.sixminute.ai/v1/admin/tenants/{tenant}/raw-archive`
- Auth: HTTP bearer

Sets `policy.raw_archive`. Allowing reads the tenant's mark under a row lock and refuses a tenant not marked internal with 409 `tenant-not-internal`, writing nothing; the database refuses it again. Revoking is allowed on every tenant.

## Path parameters

- `tenant` string, required

## Request body

- object
  - `allowed` boolean, required

## Response `200`

The mark and the raw archive flag as they now stand.

- object
  - `tenant` object, required
    - `id` string, required
    - `name` string, required
    - `internal` boolean, required
    - `raw_archive` boolean, required

## Other responses

- `400`: The body, query or path did not validate; `errors` lists the fields.
- `401`: No bearer token, or one that does not verify or has expired.
- `403`: The token verified but may not do this: no organisation, not provisioned, wrong role, or a device problem.
- `404`: No such row for this tenant.
- `409`: The id or the email already belongs to something else.
- `503`: A capability this service was not configured with, or a practice system that could not be reached; the `type` says which.

---

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