Merran documentation API & integrations
Rename or merge a tag
PATCH
/api/recipes/tags/{tagId}
const url = 'http://localhost:3000/api/recipes/tags/example';const options = { method: 'PATCH', headers: { cookie: 'merran.session_token=<merran.session_token>', 'Content-Type': 'application/json' }, body: '{"name":"Weeknight"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”tagId
required
string
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
name
required
A name another tag already has merges the two.
string
Example
{ "name": "Weeknight"}Responses
Section titled “Responses”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.