---
title: "Overwrites a badge icon with a new one."
method: POST
path: "/v1/badges/{badgeId}/icon#publish.roblox.com"
tags: ["Assets", "Badges", "Thumbnails"]
---

# Overwrites a badge icon with a new one.

`POST /v1/badges/{badgeId}/icon#publish.roblox.com`

## Request

- Base URL: `https://publish.roblox.com`
- URL: `https://publish.roblox.com/v1/badges/{badgeId}/icon#publish.roblox.com`
- Auth: one of:
  - none
  - API key in cookie `.ROBLOSECURITY`

## Path parameters

- `badgeId` integer, required

## Request body `multipart/form-data`

- object
  - `Files` string, binary

## Response `200`

OK

- RobloxPublishApiUploadResponse: A response used when an upload has completed.
  - `targetId` integer: The target Id of the uploaded item.

## Other responses

- `400`: 2: File not present in request. 12: Name or description is moderated.
- `401`: 0: Authorization has been denied for this request.
- `403`: 0: Token Validation Failed 5: You do not have permission to manage this item.
- `404`: 4: Target item is invalid or does not exist.
- `429`: 3: You're uploading too much, please wait and try again later.

---

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