Geek Social — Documentação
API ReferenceNotifications

POST /notifications/read-all

Marcar todas como lidas

POST/notifications/read-allAuth: accessToken

UPDATE notifications SET read=true WHERE recipient_id=? AND read=false.

Request

Esta requisição não tem corpo.

Response

204

object

Erros

Sem respostas de erro documentadas.

Exemplos

curl -X POST 'http://localhost:3003/notifications/read-all' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer SEU_ACCESS_TOKEN' \
  -d '{}'
await fetch('http://localhost:3003/notifications/read-all', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
    Authorization: 'Bearer ' + accessToken,
  },
  body: JSON.stringify({}),
})

Side effects

Relacionados

On this page