---
title: "Link candidates to a skill"
method: POST
path: "/skills/{id}/candidates/_link"
tags: ["Skills"]
---

# Link candidates to a skill

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

## 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/_link/post.ts> (a function with typed inputs; its response is checked against the schema)

Link a set of candidates to a specific skill. Candidates already linked to the skill will be skipped.

## Path parameters

- `id` string, required

## Request body

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

## Response `204`

Candidates linked to 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)
