- Introduction
- Getting Started
- Authentication
- Error Handling
- Contact Support
- Modaltrans API
- Get Auth Token
- Accounting
- Customs
- Logistics
- Depot
- Fleet Management
- CRM
- Timelines
- S3 Files
- Notifications
- User Details
Update a Notification Status
Developing
Testing Env
https://demo.modaltrans.com
Testing Env
https://demo.modaltrans.com
PATCH
/api/v1/notifications/{id}
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Path Params
id
integer
required
Example:
600281
Query Params
is_read
boolean
optional
Example:
true
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PATCH 'https://demo.modaltrans.com/api/v1/notifications/600281?is_read=true'
Responses
🟢200OK
application/json
Body
array of:
id
integer
required
action_type
string
required
title
string
required
target_type
string
required
target_id
integer
required
target_class_name
string
required
sender_id
integer
required
sender_name
string
required
sender_avatar_url
string
required
object_url
string
required
created_at
string <date-time>
required
is_it_read?
boolean
required
Example
[
{
"id": 0,
"action_type": "string",
"title": "string",
"target_type": "string",
"target_id": 0,
"target_class_name": "string",
"sender_id": 0,
"sender_name": "string",
"sender_avatar_url": "string",
"object_url": "string",
"created_at": "2019-08-24T14:15:22Z",
"is_it_read?": true
}
]
🟠400Bad Request
🟠403Forbidden
🟠404Record Not Found
Modified at 2024-09-09 13:10:29