---
title: "Write Pr Links"
method: POST
path: "/github/pr-links"
tags: ["github-links"]
---

# Write Pr Links

`POST /github/pr-links`

## Request body

- WriteLinksRequest
  - `repo` string, required
  - `pr_number` integer, required
  - `installation_id` integer, required
  - `workspace_id` string, required
  - `snapshot_ids` string[], required

## Response `200`

Successful Response

- WriteLinksResponse
  - `linked_snapshot_ids` string[], required
  - `comment_patched` boolean, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/tryscott/apis/one-shot-api.md) · [All operations](https://skmtc.dev/tryscott/apis/one-shot-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/tryscott/one-shot-api/revisions/28bdface01df/schema)
