Change a recipe
PATCH /v1/recipes/{id}
Change a recipe’s name, steps or output name.
Jobs already running keep the steps they started with.
API key with the convert scope.
Request
curl -X PATCH "https://api.formatjet.com/v1/recipes/rcp_01JBXA7M2P4R6T8V0X2Z4B6D8F" \ -H "Authorization: Bearer $FORMATJET_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "name": "Page to small PDF" }'Path parameters
| Field | Type | Description |
|---|---|---|
id required | string |
Body
application/json
| Field | Type | Description |
|---|---|---|
name | string | Up to 100 characters. |
steps | object[] | Up to 5 steps, as POST /v1/jobs takes them. The first names its conversion, or to with from; no step may hold a password. |
steps[].op required | "convert" | |
steps[].conversion | string | A conversion’s slug from GET /v1/operations, such as word-to-pdf Up to 100 characters. |
steps[].from | string (a format ID) | What the file is; detected from its bytes when left out |
steps[].to | string (a format ID) | The format to make, when conversion is left out |
steps[].options | object (map) | The conversion’s options (options_schema in GET /v1/operations) |
output_name | string | null | The output’s name without its extension: text and {name}, the input’s name, such as {name}-small. Null for the input’s name. Up to 100 characters. |
{ "name": "Page to small PDF"}Responses
200 OK
The recipe
| Field | Type | Description |
|---|---|---|
id | string | |
name | string | |
steps | object[] | |
steps[].op | "convert" | |
steps[].conversion | string | |
steps[].from | string | |
steps[].to | string | |
steps[].options | object (map) | |
output_name | string | null | |
created_at | string | |
updated_at | string |
{ "id": "rcp_01JBXA7M2P4R6T8V0X2Z4B6D8F", "name": "Word documents to Markdown", "steps": [ { "op": "convert", "conversion": "word-to-pdf" }, { "op": "convert", "conversion": "pdf-to-markdown" } ], "output_name": "{name}-text", "created_at": "2026-11-16T09:00:00.000Z", "updated_at": "2026-11-16T09:00:00.000Z"}Errors
Problem documents (application/problem+json); see Errors.
| Status | Code | When |
|---|---|---|
| 400 | invalid_request | The body failed validation, or a step can’t follow the one before. |
| 401 | unauthorized | No API key, or one that’s unknown or revoked. |
| 403 | forbidden | The key lacks the convert scope, or the plan has no API. |
| 404 | not_found | No recipe of this organization has this ID. |
| 422 | unsupported_conversion | A step names a conversion we can’t run. |
| 429 | rate_limited | More requests than the plan allows in 10 seconds: wait Retry-After seconds. |