Monica
Log in
API v1
v1
View as Markdown

Delete a group

DELETE /api/v1/vaults/{vault}/groups/{group}

Delete a group. It can be restored.

The people in it are not deleted. Its memberships are kept, and come back with it when it is restored.

Groups are not yet available to every account. Until they are available to yours, every endpoint here answers 404.

Path parameters

Sent as JSON. Anything not listed here is ignored.

vault string Required

The vault the groups live in, named either by the readable name it reports as slug or by its id.

group uuid Required

The id of the group. 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://people.hansyeoh.com/api/v1/vaults/dunder-mifflin/groups/5d2a7c91-3e48-4b06-9f1d-a83c60e2b4f7 \
-X DELETE \
-H "Authorization: Bearer $MONICA_TOKEN"
const response = await fetch('https://people.hansyeoh.com/api/v1/vaults/dunder-mifflin/groups/5d2a7c91-3e48-4b06-9f1d-a83c60e2b4f7', {
method: 'DELETE',
headers: { Authorization: `Bearer ${token}` },
})
$response = Http::withToken($token)->delete('https://people.hansyeoh.com/api/v1/vaults/dunder-mifflin/groups/5d2a7c91-3e48-4b06-9f1d-a83c60e2b4f7');
Response 204

No content.

Keys act as you, with exactly the access you have. Make one per integration so you can revoke it alone.