---
title: "Publish a diff result to a shareable URL"
method: POST
path: "/api/v1/tools/openapi-diff/share"
tags: ["tools"]
---

# Publish a diff result to a shareable URL

`POST /api/v1/tools/openapi-diff/share`

## Request

- Base URL: `https://monit.rs`
- URL: `https://monit.rs/api/v1/tools/openapi-diff/share`
- Auth: none declared

## Request body

- ShareDiffIn: Save a previously-computed diff result for shareable permalink. Inputs (old_spec/new_spec) are NOT in this payload — only the diff RESULT. The visitor's specs often contain business-sensitive field names that they wouldn't want indexed. The diff output is what would be shown to anyone visiting the share URL anyway.
  - `result` object, required: Output of /openapi-diff verbatim.

## Response `200`

Successful Response

- object

## Other responses

- `400`: Invalid request.
- `413`: Payload too large.
- `422`: Validation Error

---

[API](https://skmtc.dev/monit/apis/monit-rs-public-api.md) · [All operations](https://skmtc.dev/monit/apis/monit-rs-public-api/llms.txt) · [OpenAPI document](https://skmtc.dev/monit/apis/monit-rs-public-api/revisions/7e1923981112?raw)
