Skip to main content

PUT /events/:event_id

PUThttps://api.courier.com/events/:event_id
Replace an existing event with the supplied values or create a new event if one does not already exist.
PATH PARAMS
event_idstringrequired
A unique identifier associated with the event you wish to retrieve.
BODY PARAM
idstringrequired
The ID of the notification this event maps to
typestringrequired
Responses
AUTH TOKEN
curl --request PUT \
--url https://api.courier.com/events/new-user \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '
{
"id": "notification-id-1",
"type": "notification"
}
'
Response Example
{
"status": "SUCCESS"
}

Example

Method: PUT

URL: https://api.courier.com/events/abcdefgh12345678

Body: ​

{
"id": "12345678abcdefgh",
"type": "notification"
}