---
title: "Link a collection instrument to a collection exercise"
method: POST
path: "/collection-instrument-api/1.0.2/link-exercise/{instrument_id}/{exercise_id}"
tags: ["collection-instrument"]
---

# Link a collection instrument to a collection exercise

`POST /collection-instrument-api/1.0.2/link-exercise/{instrument_id}/{exercise_id}`

## Request

- Base URL: `https://localhost:8002`
- URL: `https://localhost:8002/collection-instrument-api/1.0.2/link-exercise/{instrument_id}/{exercise_id}`
- Auth: HTTP basic

## Path parameters

- `instrument_id` string, uuid, required
- `exercise_id` string, uuid, required

## Response `200`

Successfully linked collection exercise and instrument.

## Other responses

- `500`: Failed to publish upload message.

---

[API](https://skmtc.dev/office-of-national-statistics/apis/collection-instrument.md) - [All operations](https://skmtc.dev/office-of-national-statistics/apis/collection-instrument/llms.txt) - [OpenAPI document](https://skmtc.dev/office-of-national-statistics/apis/collection-instrument/revisions/8897fbcfad31?raw)
