Skip to content
merran
GitHubInstall

Merran documentation API & integrations

Cancel a timer

DELETE
/api/cooking/sessions/{sessionId}/timers/{timerId}
curl --request DELETE \
--url http://localhost:3000/api/cooking/sessions/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/timers/example \
--cookie merran.session_token=<merran.session_token>

Cook view calls this when a timer is cancelled before it goes off, sending timer.cancelled. Cancelling one that’s gone off changes nothing and sends nothing. A session that was left with timers running ends when its last one is cancelled. With an API key, it needs the plan: write permission.

sessionId
required
string format: uuid
timerId
required

The timer’s id, which cook view picks when it starts one.

string
/^[A-Za-z0-9_-]{1,64}$/

The timer’s id, which cook view picks when it starts one.

Cancelled, or it had gone off already.

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 cooking session of yours, or no such timer.

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.