---
title: "Manual preheat"
method: POST
path: "/projects/{project_name}/preheat/policies/{preheat_policy_name}"
tags: ["preheat"]
---

# Manual preheat

`POST /projects/{project_name}/preheat/policies/{preheat_policy_name}`

## Request

- Base URL: `http://localhost/api/v2.0`
- URL: `http://localhost/api/v2.0/projects/{project_name}/preheat/policies/{preheat_policy_name}`
- Auth: one of:
  - HTTP basic
  - none

Manual preheat

## Path parameters

- `project_name` string, required
- `preheat_policy_name` string, required

## Headers

- `X-Request-Id` string

## Request body

- PreheatPolicy
  - `id` integer: The ID of preheat policy
  - `name` string: The Name of preheat policy
  - `description` string: The Description of preheat policy
  - `project_id` integer: The ID of preheat policy project
  - `provider_id` integer: The ID of preheat policy provider
  - `provider_name` string: The Name of preheat policy provider
  - `filters` string: The Filters of preheat policy
  - `trigger` string: The Trigger of preheat policy
  - `enabled` boolean: Whether the preheat policy enabled
  - `extra_attrs` string: The extra attributes of preheat policy
  - `creation_time` string, date-time: The Create Time of preheat policy
  - `update_time` string, date-time: The Update Time of preheat policy

## Response `201`

Created

## Other responses

- `400`: Bad request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not found
- `500`: Internal server error

---

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