---
title: "Confirm, remove or move an event's task association [write]"
method: POST
path: "/tasks/{id}/graph/edges"
tags: ["Tasks"]
---

# Confirm, remove or move an event's task association \[write\]

`POST /tasks/{id}/graph/edges`

## Request

- Base URL: `https://api.agentsky.dev/v1`
- URL: `https://api.agentsky.dev/v1/tasks/{id}/graph/edges`
- Auth: HTTP bearer

Changes only the caller's task view and appends an edge.corrected audit event. Does not move the source event or share it. A move confirms the destination and excludes the source, atomically, within one workspace. expected_version is the current link version (0 before any correction).

## Path parameters

- `id` string, required

## Request body

- object
  - `event_id` string, required
  - `action` 'confirm' | 'remove' | 'move', required
  - `expected_version` integer, required
  - `target_task_id` string: Required only for move

## Response `200`

The updated associations and their versions

## Other responses

- `400`: Invalid query or correction
- `401`: Authentication required
- `403`: A person's identity is required for corrections
- `404`: Task or source event is unavailable to the caller
- `409`: The link changed; refresh and use its current version
- `503`: Associations are not migrated yet
- `default`: Error — { error: { code, message, request_id } }

## Changes

- **2026-11-02** `0d435187cd55`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/agentsky/apis/agentsky-developer-api/changes/tasks/:id/graph/edges/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)
