---
title: "Unlink candidates from a skill"
method: POST
path: "/skills/{id}/candidates/_unlink"
tags: ["Skills"]
---

# Unlink candidates from a skill

`POST /skills/{id}/candidates/_unlink`

## Request

- The document declares no server URL.
- Auth: API key in header `x-api-key`
- TypeScript: <https://skmtc.dev/spott/apis/spott-webhooks/docs/skills/:id/candidates/_unlink/post.ts> (a function with typed inputs; its response is checked against the schema)

Unlink a set of candidates from a specific skill. Candidates not linked to the skill will be skipped.

## Path parameters

- `id` string, required

## Request body

- UnlinkCandidatesFromSkillDto
  - `selection` object, required
    - `type` 'included', required
    - `ids` object, required
      - `include` string[], required

## Response `204`

Candidates unlinked from skill successfully

## Other responses

- `400`: Bad request - invalid candidate IDs or selection
- `401`: Unauthorized - invalid or missing authentication
- `404`: Skill not found
- `500`: Error response

---

[API](https://skmtc.dev/spott/apis/spott-webhooks.md) - [All operations](https://skmtc.dev/spott/apis/spott-webhooks/llms.txt) - [OpenAPI document](https://skmtc.dev/spott/apis/spott-webhooks/revisions/ad1f8c51cf0a?raw)
