Skip to content
merran
GitHubInstall

Merran documentation API & integrations

Rename or merge a tag

PATCH
/api/recipes/tags/{tagId}
curl --request PATCH \
--url http://localhost:3000/api/recipes/tags/example \
--header 'Content-Type: application/json' \
--cookie merran.session_token=<merran.session_token> \
--data '{ "name": "Weeknight" }'

Renaming a tag to another tag’s name merges them: every recipe with either has the one tag. With an API key, it needs the recipes: write permission.

tagId
required
string
Media typeapplication/json
object
name
required

A name another tag already has merges the two.

string
>= 1 characters <= 40 characters

Example

{
"name": "Weeknight"
}

All the tags, after the change.

Media typeapplication/json
Array<object>
object
id
required
string
name
required
string
recipes
required

How many recipes have it.

number

Example

[
{
"id": "0199e8b0-5a10-7a01-8b00-000000000008",
"name": "weeknight",
"recipes": 12
}
]

Not signed in.

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
fields
object
key
additional properties
string

Example

{
"error": {
"code": "not_found",
"message": "There's nothing here.",
"fields": {
"name": "Give it a name."
}
}
}

Not allowed.

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
fields
object
key
additional properties
string

Example

{
"error": {
"code": "not_found",
"message": "There's nothing here.",
"fields": {
"name": "Give it a name."
}
}
}

No such tag.

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
fields
object
key
additional properties
string

Example

{
"error": {
"code": "not_found",
"message": "There's nothing here.",
"fields": {
"name": "Give it a name."
}
}
}

© 2026 Kyle Johnson. Documentation: CC BY 4.0. Merran: AGPL-3.0-or-later.