Skip to content

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

Terminal window
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

FieldTypeDescription
id requiredstring

Body

application/json

FieldTypeDescription
namestringUp to 100 characters.
stepsobject[]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[].conversionstringA conversion’s slug from GET /v1/operations, such as word-to-pdf Up to 100 characters.
steps[].fromstring (a format ID)What the file is; detected from its bytes when left out
steps[].tostring (a format ID)The format to make, when conversion is left out
steps[].optionsobject (map)The conversion’s options (options_schema in GET /v1/operations)
output_namestring | nullThe 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.
Example
{
"name": "Page to small PDF"
}

Responses

200 OK

The recipe

FieldTypeDescription
idstring
namestring
stepsobject[]
steps[].op"convert"
steps[].conversionstring
steps[].fromstring
steps[].tostring
steps[].optionsobject (map)
output_namestring | null
created_atstring
updated_atstring
Example
{
"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.

StatusCodeWhen
400invalid_requestThe body failed validation, or a step can’t follow the one before.
401unauthorizedNo API key, or one that’s unknown or revoked.
403forbiddenThe key lacks the convert scope, or the plan has no API.
404not_foundNo recipe of this organization has this ID.
422unsupported_conversionA step names a conversion we can’t run.
429rate_limitedMore requests than the plan allows in 10 seconds: wait Retry-After seconds.