# dismissInboxItem

Dismiss one inbox row, the app inbox's Dismiss: it is hidden from the inbox of the line or mailbox it belongs to, and listInboxThreads no longer returns it. itemId is the row's id and itemType its type (MESSAGE | CALL | EMAIL); a CALL dismisses that number's whole day of calls, an EMAIL its whole thread. There is NO undo and no view of dismissed rows, in the app or here, so confirm with the user first; to clear an unread badge use markInboxThreadsRead instead. Organization admins only, like the app. A row outside your organization is refused (FORBIDDEN).

- Call: `POST https://server.goliathdata.com/api/v1/call` with `{ "operationId": "dismissInboxItem", "variables": {...} }`
- Scope: `ADMIN`
- Type: mutation
- Idempotency: honors `Idempotency-Key` (24 h)
- Rate-limited: no

## Variables

- `itemId`: `ID!` (required)
- `itemType`: `InboxItemType!` (required, one of `CALL`, `MESSAGE`, `EMAIL`)

## Response (data, an example)

```json
{
  "inboxMutation": {
    "dismissInboxItem": true
  }
}
```

## Example

```bash
curl https://server.goliathdata.com/api/v1/call \
  -H "Authorization: Bearer $GOLIATH_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "operationId": "dismissInboxItem",
    "variables": {
      "itemId": "<itemId>",
      "itemType": "CALL"
    }
  }'
```
