Skip to content
merran
GitHubInstall

Merran documentation API & integrations

Set one day's meal time

PUT
/api/plan/calendar/slots/{date}/{meal}
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.

date
required
string

Example

2026-10-19
meal
required
string

Example

dinner
Media typeapplication/json
object
start
required
string
/^([01]\d|2[0-3]):[0-5]\d$/
minutes
required
integer
>= 15 <= 240

Example

{
"start": "18:00",
"minutes": 60
}

Changed.

Media typeapplication/json
object
date
required
string format: date
meal
required
string
Allowed values: breakfast lunch dinner snack
start
required
string
/^([01]\d|2[0-3]):[0-5]\d$/
minutes
required
integer
>= 15 <= 240

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.