Merran documentation API & integrations
Change several things at home at once
POST
/api/pantry/items/bulk
const url = 'http://localhost:3000/api/pantry/items/bulk';const options = { method: 'POST', headers: { cookie: 'merran.session_token=<merran.session_token>', 'Content-Type': 'application/json' }, body: '{"ids":["0199e8b0-5a10-7a01-8b00-000000000026"],"action":"storedIn","storedIn":"freezer"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://localhost:3000/api/pantry/items/bulk \ --header 'Content-Type: application/json' \ --cookie merran.session_token=<merran.session_token> \ --data '{ "ids": [ "0199e8b0-5a10-7a01-8b00-000000000026" ], "action": "storedIn", "storedIn": "freezer" }'Used up, moved to the fridge, freezer or cupboard, or given a use-by date (null for none): all or none. The answer says what they were before, for Undo with /pantry/restore. Ids not in the pantry are passed over. With an API key, it needs the pantry: write permission.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
ids
required
Array<string>
action
required
string
storedIn
Where it’s kept.
string | null
useBy
string | null
Example
2026-10-20Example
{ "ids": [ "0199e8b0-5a10-7a01-8b00-000000000026" ], "action": "storedIn", "storedIn": "freezer"}Responses
Section titled “Responses”Done.
Media typeapplication/json
object
changed
required
integer
before
required
Array<object>
Something at home as it was, to put it back (Undo).
object
id
required
string
name
required
string
foodKey
required
string
quantity
required
number | null
unit
required
string | null
amountText
required
string | null
aisle
required
string | null
storedIn
required
Where it’s kept.
string | null
useBy
required
string | null
forMeals
required
Array<object> | null
object
meal
required
string
quantity
required
number | null
unit
required
string | null
createdAt
required
string format: date-time
Example
{ "changed": 1, "before": [ { "id": "0199e8b0-5a10-7a01-8b00-000000000026", "name": "chicken thighs", "foodKey": "chicken thigh", "quantity": 2, "unit": "pound", "amountText": null, "aisle": "0199e8b0-5a10-7a01-8b00-000000000021", "storedIn": "fridge", "useBy": "2026-10-18", "forMeals": [ { "meal": "0199e8b0-5a10-7a01-8b00-00000000001b", "quantity": 2, "unit": "pound" } ], "createdAt": "2026-10-15T18:30:00.000Z" } ]}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." } }}© 2026 Kyle Johnson. Documentation: CC BY 4.0. Merran: AGPL-3.0-or-later.