---
title: "Remove issue relation"
method: DELETE
path: "/api/v1/issues/{code}/relations"
tags: ["issues"]
---

# Remove issue relation

`DELETE /api/v1/issues/{code}/relations`

## Request

- Base URL: `https://api.capy.ai`
- URL: `https://api.capy.ai/api/v1/issues/{code}/relations`
- Auth: HTTP bearer

## Path parameters

- `code` string, required

## Request body

- UnrelateIssueRequest
  - `issue` string, required

## Response `200`

IssueDetail

- IssueDetailEncoded
  - `id` string, required
  - `code` string, required
  - `number` integer, required
  - `projectId` string, required
  - `title` string, required
  - `state` IssueStateRefEncoded, required
    - `id` string, required
    - `name` string, required
    - `type` union, required
      - 'open' | 'closed'
      - string
  - `priority` union, required
    - 'urgent' | 'high' | 'normal' | 'low'
    - string
  - `dueAt` string, nullable, required
  - `parentId` string, nullable, required
  - `visibility` union, required
    - 'org' | 'private'
    - string
  - `assignees` IssueActorEncoded[], required
    - `kind` union, required
      - 'user' | 'thread'
      - string
    - `id` string, required: A user id for `user`, resolved by `GET /users`, or a thread id for `thread`.
    - `code` string, nullable, required: The thread's reference, such as `SCO-123`; null for a user or a thread the key cannot read.
  - `labels` IssueLabelRefEncoded[], required
    - `id` string, required
    - `name` string, required
  - `subIssueCount` integer, required
  - `closedSubIssueCount` integer, required
  - `openBlockerCount` integer, required: Open issues the key can read that block this one.
  - `createdAt` string, required
  - `updatedAt` string, required
  - `closedAt` string, nullable, required
  - `description` string, required: Markdown. An embedded file appears as `capy-file:<fileId>`, one of `files`.
  - `creator` IssueActorEncoded, required
    - `kind` union, required
      - 'user' | 'thread'
      - string
    - `id` string, required: A user id for `user`, resolved by `GET /users`, or a thread id for `thread`.
    - `code` string, nullable, required: The thread's reference, such as `SCO-123`; null for a user or a thread the key cannot read.
  - `parent` IssueEncoded, required
    - `id` string, required
    - `code` string, required
    - `number` integer, required
    - `projectId` string, required
    - `title` string, required
    - `state` IssueStateRefEncoded, required
      - `id` string, required
      - `name` string, required
      - `type` union, required
        - 'open' | 'closed'
        - string
    - `priority` union, required
      - 'urgent' | 'high' | 'normal' | 'low'
      - string
    - `dueAt` string, nullable, required
    - `parentId` string, nullable, required
    - `visibility` union, required
      - 'org' | 'private'
      - string
    - `assignees` IssueActorEncoded[], required
      - `kind` union, required
        - 'user' | 'thread'
        - string
      - `id` string, required: A user id for `user`, resolved by `GET /users`, or a thread id for `thread`.
      - `code` string, nullable, required: The thread's reference, such as `SCO-123`; null for a user or a thread the key cannot read.
    - `labels` IssueLabelRefEncoded[], required
      - `id` string, required
      - `name` string, required
    - `subIssueCount` integer, required
    - `closedSubIssueCount` integer, required
    - `openBlockerCount` integer, required: Open issues the key can read that block this one.
    - `createdAt` string, required
    - `updatedAt` string, required
    - `closedAt` string, nullable, required
  - `subIssues` IssueEncoded[], required
    - `id` string, required
    - `code` string, required
    - `number` integer, required
    - `projectId` string, required
    - `title` string, required
    - `state` IssueStateRefEncoded, required
      - `id` string, required
      - `name` string, required
      - `type` union, required
        - 'open' | 'closed'
        - string
    - `priority` union, required
      - 'urgent' | 'high' | 'normal' | 'low'
      - string
    - `dueAt` string, nullable, required
    - `parentId` string, nullable, required
    - `visibility` union, required
      - 'org' | 'private'
      - string
    - `assignees` IssueActorEncoded[], required
      - `kind` union, required
        - 'user' | 'thread'
        - string
      - `id` string, required: A user id for `user`, resolved by `GET /users`, or a thread id for `thread`.
      - `code` string, nullable, required: The thread's reference, such as `SCO-123`; null for a user or a thread the key cannot read.
    - `labels` IssueLabelRefEncoded[], required
      - `id` string, required
      - `name` string, required
    - `subIssueCount` integer, required
    - `closedSubIssueCount` integer, required
    - `openBlockerCount` integer, required: Open issues the key can read that block this one.
    - `createdAt` string, required
    - `updatedAt` string, required
    - `closedAt` string, nullable, required
  - `pullRequests` IssuePullRequestEncoded[], required
    - `repoFullName` string, required
    - `number` integer, required
    - `state` union, required
      - 'open' | 'draft' | 'merged' | 'closed'
      - string
  - `threads` IssueThreadEncoded[], required
    - `id` string, required
    - `code` string, nullable, required
  - `files` IssueFileEncoded[], required
    - `id` string, required: Pass it to `GET /issues/{code}/files/{fileId}/download`.
    - `name` string, required
    - `mediaType` string, required
    - `sizeBytes` integer, required
    - `commentId` string, nullable, required: The comment the file came with; null for a file on the description.

## Other responses

- `400`: capy/InvalidRequest
- `401`: capy/Unauthorized
- `403`: capy/Forbidden
- `404`: capy/IssueNotFound
- `429`: capy/RateLimited

## Changes

- **2026-10-31** `e3be47264feb`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/capy/apis/capy-api/changes/api/v1/issues/:code/relations/delete.md)

---

[API](https://skmtc.dev/capy/apis/capy-api.md) - [All operations](https://skmtc.dev/capy/apis/capy-api/llms.txt) - [OpenAPI document](https://skmtc.dev/capy/apis/capy-api/revisions/4663f7dc4e39?raw)
