---
title: "Turn a report's public link on"
method: PUT
path: "/v1/projects/{projectId}/reports/{reportId}/public-link"
tags: ["analytics"]
---

# Turn a report's public link on

`PUT /v1/projects/{projectId}/reports/{reportId}/public-link`

## Request

- Base URL: `https://api.prodantix.com`
- URL: `https://api.prodantix.com/v1/projects/{projectId}/reports/{reportId}/public-link`
- Auth: HTTP bearer

Turns the link on until expiresOn, a YYYY-MM-DD day after today and at most 90 days ahead, or moves the stop day of the link that is on; the link stops as that day begins, in UTC. Anyone with the address can then read the report's last run, without its cohort. Every run of the report refreshes what the link shows.

## Path parameters

- `projectId` string, required
- `reportId` string, required

## Request body

- object
  - `expiresOn` string, required

## Response `200`

The public link

- object
  - `reportId` string, required
  - `token` string, required
  - `url` string, required
  - `createdAt` string, required
  - `expiresAt` string, required
  - `expiresOn` string, required
  - `ranAt` string, nullable

## Other responses

- `400`: The request does not describe a share
- `403`: The caller may not do this
- `404`: The project or report is not there

---

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