/notifications/read-all

/notifications/read-all

Bulk mark read all of this auth user 's notifications

Responses
  • 204

    There is no content to send for this request, but the headers may be useful.

POST/notifications/read-all
Shell cURL
curl --request POST \
  --url https://dpt-api.finema.dev/notifications/read-all \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN'
No Body

/notifications/{id}/read

Single mark read notification by id : set mark_read = true

Path Parameters
  • id
    required
    string uuid
Responses
  • 200

    The request has succeeded.

POST/notifications/{id}/read
Shell cURL
curl --request POST \
  --url https://dpt-api.finema.dev/notifications/__ID__/read \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN'
{
  "id": "c667df88-4de8-442b-a64a-5fbce59086f0",
  "system": "dpt11",
  "user_id": "…",
  "title": "…",
  "description": "…",
  "url": "…",
  "mark_read": false,
  "created_at": "…",
  "created_by_id": "…"
}
0.0.0
OAS 3.0.0

Common API

Client Libraries
Shell
Ruby
Node.js
PHP
Python
C
More
Authentication
Bearer Authentication (BearerAuth)

/notifications

สร้างข้อความแจ้งเตือนสำหรับ user ทั้งประชาชนและเจ้าหน้าที่ อิงตาม user_id ที่ต้องการส่งถึง (call from backoffice auth by x-api-key)

Body
application/json
system
required
string enum
  • dpt11
  • dpt12
  • dpt13
  • dpt21
  • dpt22
  • dpt23
  • dpt31
  • dpt32
  • dpt51
  • dpt52
  • dpt53
  • dpt54
  • dpt55
  • dpt56
  • dpt6
  • dpt7
user_ids
required
array string[]
title
required
string
description
string
url
required
string uri
Responses
  • 200

    The request has succeeded.

POST/notifications
Shell cURL
curl --request POST \
  --url https://dpt-api.finema.dev/notifications \
  --header 'Content-Type: application/json' \
  --header 'X-Api-Key: YOUR_TOKEN' \
  --data '{
  "system": "dpt11",
  "user_ids": [
    ""
  ],
  "title": "",
  "description": "",
  "url": ""
}'
[
  {
    "id": "c667df88-4de8-442b-a64a-5fbce59086f0",
    "system": "dpt11",
    "user_id": "…",
    "title": "…",
    "description": "…",
    "url": "…",
    "mark_read": false,
    "created_at": "…",
    "created_by_id": "…"
  }
]