---
title: "Update campaign metadata"
method: POST
path: "/api/campaign/{id}/meta"
tags: ["Campaign"]
---

# Update campaign metadata

`POST /api/campaign/{id}/meta`

## Request

- Base URL: `https://api.sponsorunited.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.sponsorunited.com/api/campaign/{id}/meta`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/sponsorunited/apis/sponsorunited-api/docs/api/campaign/:id/meta/post.ts> (a function with typed inputs; its response is checked against the schema)

Creates or replaces metadata entries for a specific campaign.

## Path parameters

- `id` integer, required

## Request body

- object
  - `type` string, required: The metadata type prefix
  - `data` object, required: Key-value pairs of metadata

## Response `200`

Campaign metadata updated.

- object
  - `success` boolean
  - `message` string
  - `data` object, nullable

## Other responses

- `401`: Unauthenticated
- `403`: Forbidden

---

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