---
title: "Clear a retired intent's source binding [write]"
method: POST
path: "/consumer/artifact-adoptions/{sourceId}/cancel"
tags: ["artifacts"]
---

# Clear a retired intent's source binding \[write\]

`POST /consumer/artifact-adoptions/{sourceId}/cancel`

## Request

- Base URL: `https://api.agentsky.dev/v1`
- URL: `https://api.agentsky.dev/v1/consumer/artifact-adoptions/{sourceId}/cancel`
- Auth: HTTP bearer

Requires an unrestricted personal owner write bearer or a platform-issued agent-use-web consumer bearer. Read-only, restricted, team, app, task, fixed-workspace and workspace-identity credentials are refused. Read and proof operations also require write scope. Ownership comes from the actual bearer and exactly one consumer identity mapping, never an input owner or email. The target stays inactive: no content is copied, no revision is committed and no writer is activated. First retire the canonical target. This clears only the matching source binding and retains a monotonic epoch tombstone; it never deletes content or sharing history. A stale request cannot clear a newer binding.

## Path parameters

- `sourceId` string, required

## Request body

- object
  - `target_id` string, required
  - `request_id` string, required

## Response `200`

Cleared binding

- object
  - `source_id` string, required
  - `adoption_epoch` integer, required: Monotonic source fence, advanced even for unbound cancellation. Retries preserve the cancelled end state but may advance this counter; concurrent stale epochs return 409 and require an explicit re-read.
  - `retired` unknown, required

## Other responses

- `default`: Error — { error: { code, message } }

## Changes

- **2026-11-02** `e5e8f0229a99`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/agentsky/apis/agentsky-developer-api/changes/consumer/artifact-adoptions/:sourceId/cancel/post.md)

---

[API](https://skmtc.dev/agentsky/apis/agentsky-developer-api.md) - [All operations](https://skmtc.dev/agentsky/apis/agentsky-developer-api/llms.txt) - [OpenAPI document](https://skmtc.dev/agentsky/apis/agentsky-developer-api/revisions/8280a065ef6a?raw)
