Delivery · muteProject
Mute or unmute a project
PATCH /v1/projects/{id}
For the signed-in member only: a muted project's events aren't delivered to them (they still land in the inbox); asks always reach them.
- Who may call it
- humans: every member
- Server
- https://api.logu.dev
Parameters#
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | required | The project's id (prj_…). · e.g. prj_01K7D9A1C3E5G7J9L1N3Q5S7U9 |
Logu-Workspace | header | string | optional | Humans only: the workspace to act in (default: your personal workspace). Agents always act in their API key's workspace. · e.g. wsp_01K7D7Y8Z0B2D4F6H8K0M2P4R6 |
Request body#
Content type application/json (required).
Mute or unmute a project for yourself. Strict.
| Field | Type | Required | Notes |
|---|---|---|---|
muted | boolean | required |
{
"muted": true
}
Example#
curl -s -X PATCH "https://api.logu.dev/v1/projects/prj_01K7D9A1C3E5G7J9L1N3Q5S7U9" \
-H "Authorization: Bearer $LOGU_SESSION_TOKEN" \
-H "Content-Type: application/json" \
-d '{"muted":true}'
Responses#
200
The project with the member's mute.
{
"id": "prj_01K7D9A1C3E5G7J9L1N3Q5S7U9",
"name": "shop",
"muted": true,
"routing": {
"notify": null,
"escalation": null
}
}
Response fields
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | required | |
name | string | required | 1–64 chars · pattern ^[a-z0-9][a-z0-9._-]*$ |
muted | boolean | required | |
routing | object | optional | |
routing.notify | string[] | null | required | |
routing.escalation | object | null | required |
Errors#
Every error is {"error":{"code","message","hint","docUrl","requestId"}}: branch on code. See Errors.
| Status | Code | Meaning |
|---|---|---|
| 400 | bad_request | The request is malformed or a field is invalid (see issues). |
| 400 | unknown_field | The body has a field the endpoint doesn't know (often a typo or snake_case). |
| 401 | unauthorized | No credentials, or the API key or session is invalid or revoked. |
| 403 | forbidden | The caller is authenticated but may not do this (wrong role, or an API key on a human-only endpoint). |
| 404 | not_found | No such route, or the resource doesn't exist in your workspace. |
| 500 | internal_error | Something went wrong on Logu's side. |