swsd_link_solution_to_incident
Link a solution to an incident, keeping existing links. Idempotent—no duplicate if solution already attached.
Instructions
Attach a knowledge-base solution to an incident. Fetches the incident first, reads its existing linked solutions, appends the new one (preserving others), then PUTs with solution_ids (the SWSD write shape — distinct from the read shape solutions). Idempotent — if the solution is already linked, returns success without modifying the record. WRITE — does not retry on transient failure.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| incident_id | Yes | SWSD incident reference. Accepts either the internal id (>=7 digits, e.g. 180457930) or the human-facing number (<=6 digits, e.g. 60310). The handler auto-detects via digit count. | |
| solution_id | Yes | SWSD solution reference. Accepts either the internal id (>=7 digits) or the human-facing number (<=4 digits). Use swsd_search_solutions to find one. The handler auto-detects via digit count. |