---
title: "Make a variant the asset's default."
method: POST
path: "/organizations/{organizationId}/libraries/{libraryId}/assets/{assetId}/promote"
tags: ["Assets"]
---

# Make a variant the asset's default.

`POST /organizations/{organizationId}/libraries/{libraryId}/assets/{assetId}/promote`

## Request

- Base URL: `https://api.raster.app`
- URL: `https://api.raster.app/organizations/{organizationId}/libraries/{libraryId}/assets/{assetId}/promote`
- Auth: HTTP bearer

The variant's pixels replace what the asset serves, at the SAME URL, so anything already embedding that URL shows the new file. The previous default is preserved as a new variant and keeps the name it had; the asset keeps its id and URL and takes the promoted variant's name. Its description and the tags generated from its image follow the picture — the promoted variant hands over any it carries, and the preserved variant keeps the ones that described it, while tags you added yourself stay on the asset. Rejected while the asset is a video that is still being processed. The promote is accepted and the swap completes a moment later; re-fetch the asset to see it reflected.

## Path parameters

- `organizationId` string, required
- `libraryId` string, required
- `assetId` string, required

## Headers

- `Api-Version` string, required

## Request body

- object
  - `variantId` string, required

## Response `200`

OK

- object
  - `data` object, required
    - `assetId` string, required
    - `promotedVariantId` string, required
    - `demotedVariantId` string, required

## Other responses

- `400`: Invalid input (BAD_USER_INPUT), quota, or API-version error.
- `401`: Missing or invalid API key or access token.
- `403`: The credential may not perform this operation, or the organization's plan does not allow it. A key without access to a library gets 404, not 403.
- `404`: Resource not found, or the credential is not authorized for it.
- `429`: Rate limit exceeded. Wait for the number of seconds in `Retry-After` before retrying.
- `500`: Unexpected server fault (INTERNAL_SERVER_ERROR). Safe to retry an idempotent operation.

---

[API](https://skmtc.dev/raster/apis/raster-rest-api.md) · [All operations](https://skmtc.dev/raster/apis/raster-rest-api/llms.txt) · [OpenAPI document](https://skmtc.dev/raster/apis/raster-rest-api/revisions/5e1b9d912d01?raw)
