---
title: "Revoke a one-time view code"
method: DELETE
path: "/v1/artifacts/{id}/view-codes/{codeId}"
tags: ["Collaborators"]
---

# Revoke a one-time view code

`DELETE /v1/artifacts/{id}/view-codes/{codeId}`

## Request

- Base URL: `https://shareout.site`
- URL: `https://shareout.site/v1/artifacts/{id}/view-codes/{codeId}`
- Auth: HTTP bearer

That code no longer opens the page; a page it already opened loses its pass at once.

## Response `200`

Revoked

## Other responses

- `404`: No such code on this page

## Changes

- **2026-11-03** `1e3f7fd34f6d`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/shareout/apis/shareout-rest-api/changes/v1/artifacts/:id/view-codes/:codeId/delete.md)

---

[API](https://skmtc.dev/shareout/apis/shareout-rest-api.md) - [All operations](https://skmtc.dev/shareout/apis/shareout-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/shareout/apis/shareout-rest-api/revisions/1e3f7fd34f6d?raw)
