---
title: "Queue a model build for THIS environment (never another one, A14)."
method: POST
path: "/api/v1/admin/metrics/rebuild"
tags: ["Metrics Admin"]
---

# Queue a model build for THIS environment (never another one, A14).

`POST /api/v1/admin/metrics/rebuild`

## Request

- Base URL: `https://api.avatarfactory.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.avatarfactory.io/api/v1/admin/metrics/rebuild`
- Auth: one of:
  - API key in cookie `session`
  - HTTP bearer

## Request body

- RebuildRequest
  - `rebuild_from` string, date, nullable

## Response `202`

Accepted

- RebuildResponse
  - `env` string, required
  - `run_id` string, required
  - `status` 'queued', required

## Other responses

- `401`: Unauthorized
- `403`: Forbidden
- `422`: Unprocessable Entity
- `503`: Service Unavailable

---

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