Merran documentation API & integrations
Set one day's meal time
PUT
/api/plan/calendar/slots/{date}/{meal}
const url = 'http://localhost:3000/api/plan/calendar/slots/2026-10-19/dinner';const options = { method: 'PUT', headers: { cookie: 'merran.session_token=<merran.session_token>', 'Content-Type': 'application/json' }, body: '{"start":"18:00","minutes":60}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url http://localhost:3000/api/plan/calendar/slots/2026-10-19/dinner \ --header 'Content-Type: application/json' \ --cookie merran.session_token=<merran.session_token> \ --data '{ "start": "18:00", "minutes": 60 }'With an API key, it needs the plan: write permission.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”date
required
string
Example
2026-10-19meal
required
string
Example
dinnerRequest Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
start
required
string
minutes
required
integer
Example
{ "start": "18:00", "minutes": 60}Responses
Section titled “Responses”Changed.
Media typeapplication/json
object
date
required
string format: date
meal
required
string
start
required
string
minutes
required
integer
Example
{ "date": "2026-10-19", "meal": "dinner", "start": "19:30", "minutes": 60}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.