---
title: "Update a set with scores"
method: PATCH
path: "/v1/matches/{match_id}/sets/{id}"
tags: ["Match Sets"]
---

# Update a set with scores

`PATCH /v1/matches/{match_id}/sets/{id}`

## Request

- Base URL: `https://api.hify.club`
- URL: `https://api.hify.club/v1/matches/{match_id}/sets/{id}`
- Auth: API key in header `X-User-Token`

Updates the set by providing score_a and score_b. The winner_side is automatically computed from the scores.

## Request body

- object
  - `match_set` object, required
    - `score_a` integer, required
    - `score_b` integer, required

## Response `200`

Set updated

- MatchSet
  - `id` integer
  - `match_id` integer
  - `sequence_number` integer
  - `winner_side` 'side_a' | 'side_b', nullable
  - `score` object, nullable

## Other responses

- `401`: Unauthorized
- `404`: Match or set not found
- `422`: Invalid scores

---

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