Delete a life event
DELETE
/api/v1/vaults/{vault}/life-events/{lifeEvent}
Take a life event off the timeline of everybody who was there. It can be restored.
Path parameters
Sent as JSON. Anything not listed here is ignored.
vault
string
Required
The vault the life events live in, named either by the readable name it reports as slug or by its id.
lifeEvent
uuid
Required
The id of the life event. One addressed through the wrong vault, or belonging to another account, answers 404.
Returns
Nothing at all.
Rate limit
Sixty requests per minute, per user, shared by every key and device. Every answer carries the budget left in X-RateLimit-Remaining.
DELETE
curl https://my.monicahq.com/api/v1/vaults/dunder-mifflin/life-events/7c1e5a92-4b3d-4f80-a6e2-93d0b1c4f857 \
-X DELETE \
-H "Authorization: Bearer $MONICA_TOKEN"
const response = await fetch('https://my.monicahq.com/api/v1/vaults/dunder-mifflin/life-events/7c1e5a92-4b3d-4f80-a6e2-93d0b1c4f857', {
method: 'DELETE',
headers: { Authorization: `Bearer ${token}` },
})
$response = Http::withToken($token)->delete('https://my.monicahq.com/api/v1/vaults/dunder-mifflin/life-events/7c1e5a92-4b3d-4f80-a6e2-93d0b1c4f857');
Response
204
No content.
Keys act as you, with exactly the access you have. Make one per integration so you can revoke it alone.