---
title: "DEPRECATED Reset an automated recipe from its template"
method: POST
path: "/api/v3/automated-recipes/{recipe_id}/resetup/"
tags: ["Recipes"]
deprecated: true
---

# DEPRECATED Reset an automated recipe from its template

`POST /api/v3/automated-recipes/{recipe_id}/resetup/`

## Request

- Base URL: `https://embedded.improvado.io`
- URL: `https://embedded.improvado.io/api/v3/automated-recipes/{recipe_id}/resetup/`
- Auth: one of:
  - HTTP bearer
  - API key in cookie `dts_session_id`
- TypeScript: <https://skmtc.dev/improvado/apis/improvado-embedded-api-v3/docs/api/v3/automated-recipes/:recipe_id/resetup/post.ts> (a function with typed inputs; its response is checked against the schema)

> **Deprecated.**

Deprecated: use [`POST /api/v3.1/automated-recipes/{recipe_id}/resetup/`](/api/automated-recipes#recreate-a-recipe-from-its-template). This version stays available until it is switched off; see [Moving recipes to v3.1](/recipes-migration).

When the recipes service fails, this version answers `500` with an HTML page, and an error in the `4xx` range can arrive with a body that is not JSON. It also repeats the request to the recipes service up to three times, create included, so a create can run twice. v3.1 does neither: every error is `{code, message, details}`, and a request is repeated only when it provably never reached the service.

Rebuilds the recipe from the template it was created from, and starts the build. Every recipe in the dependency tree is snapshotted first, then their cells are dropped and recreated from the current template.

This is how a fix made to a template reaches the recipes already deployed from it. The existing configuration - data sources, connections, accounts, sync_from_date - is preserved, and unlike a configuration PUT the build does not have to be triggered separately afterwards.

Takes no request body. A 200 means the reset was accepted and the build was started, not that the build will succeed - as with POST /build/, a failure arrives asynchronously in the `error` field of the recipe detail.

## Path parameters

- `recipe_id` string, required

## Response `200`

Recipe reset from its template and the build started

- AutomatedRecipeResetupResponse: Response from a reset operation
  - `status` 'reset': Reset operation status
  - `recipe_id` string: ID of the recipe that was reset

## Other responses

- `400`: Bad Request
- `401`: Forbidden
- `403`: The embedded API is not enabled for this agency, or the recipe belongs to another workspace, or to another agency. The three answer with different `detail` strings.
- `404`: Not Found

---

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