Skip to main content
PUT
/
notification
/
alert
/
{notification_id}
Update notification
curl --request PUT \
  --url https://ctechnology.io/api/v2.2/notification/alert/{notification_id} \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "read": true
}'
{
  "header": {
    "api_version": "<string>",
    "status": "<string>",
    "message": "<string>",
    "permission_via": [
      {
        "permission": "<string>",
        "via": "me",
        "organization_id": "<string>"
      }
    ]
  },
  "data": {
    "id": "<string>",
    "timestamp": "2023-11-07T05:31:56Z",
    "type": "VEHICLE_MOV",
    "priority": "ALERT",
    "title": "<string>",
    "message": "<string>",
    "data": "<unknown>",
    "read": true,
    "vehicle_id": "<string>",
    "action_id": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Note that the API key has to be sent as Token 123 where 123 is the key you received after logging in or by creating on the developer dashboard.

Path Parameters

notification_id
string
required

ID of notification to retrieve.

Body

application/json
read
boolean
required

If this notification is read or not.

Response

Successful update of this notification.

header
API Header Single · object
required

Default header sent along with single-resource responses.

data
Notification · object
required

A notification that was generated for / sent to a user.