Update Notification Details

PUT /client/notifications/{id}/

Use the PUT /client/notifications/{id}/ endpoint to update the details of a specific notification. Provide the unique id of the notification and the updated data in the request body.


Parameters

Name
Type
In
Description
Required

id

integer

path

A unique integer value identifying the notification.

Yes

data

object

body

The updated notification details.

Yes


Request Body Example

{
  "header": "Updated Service Update",
  "body": "Your mechanic is running late and will arrive in 30 minutes.",
  "image": "https://example.com/images/updated-notification.jpg"
}

Responses

200 OK

Description: The notification details were successfully updated.

Example Response:

{
  "id": 101,
  "header": "Updated Service Update",
  "body": "Your mechanic is running late and will arrive in 30 minutes.",
  "image": "https://example.com/images/updated-notification.jpg",
  "created_at": "2024-11-17T10:30:00Z",
  "created_by": "System"
}

Last updated