---
title: "Update a tournament sponsor"
method: PATCH
path: "/v1/tournaments/{tournament_id}/sponsors/{id}"
tags: ["Tournament Sponsors"]
---

# Update a tournament sponsor

`PATCH /v1/tournaments/{tournament_id}/sponsors/{id}`

## Request

- Base URL: `https://api.hify.club`
- URL: `https://api.hify.club/v1/tournaments/{tournament_id}/sponsors/{id}`
- Auth: API key in header `X-User-Token`

Admin only. Upload a new logo to the path returned by s3_path before calling this.

## Request body

- object
  - `tournament_sponsor` object
    - `name` string
    - `position` 'top_right' | 'bottom_left' | 'bottom_right'
    - `display_order` integer
    - `s3_bucket` string
    - `s3_path` string

## Response `200`

Sponsor updated

- TournamentSponsor
  - `id` string, uuid
  - `tournament_id` string, uuid
  - `name` string
  - `s3_bucket` string: S3 bucket that holds the sponsor logo, derived from media_assets_bucket setting
  - `s3_path` string: S3 key path for the logo (e.g. /tournaments/{id}/sponsors/logos/{id}.jpeg)
  - `position` 'top_right' | 'bottom_left' | 'bottom_right'
  - `display_order` integer

## Other responses

- `401`: Unauthorized
- `403`: Forbidden — admin access required
- `404`: Tournament or sponsor not found
- `422`: Unprocessable entity

---

[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)
