Push Notifications
Update Event
REST API
- Overview
- Limits
- Errors
- GETGet Account Settings
- Authentication
- Users
- Chat
- Content
- Push Notifications
- Custom Objects
- Address Book
- AI
Push Notifications
Update Event
Edit event.
PUT
/
events
/
{event_id}
.json
curl -X PUT \
-H "Content-Type: application/json" \
-H "QB-Token: 37d3a10a1843ac780cb6f2c683bddad2b0012bba" \
-d '{
"event":{
"date":"1568839180",
"period":"86400",
"name":"My New Event"
}
}' \
https://api.quickblox.com/events/30529342.json
{
"event": {
"id": 30529342,
"event_type": "period_date",
"message": "payload=eyJhcHMiOnsiYWxlcnQiOiJQdXNoIG5vdGlmaWNhdGlvbiBmcm9tIFRheWxvciIsInNvdW5kIjoiZGVmYXVsdCJ9fQ==",
"date": 1568839180,
"period": 86400,
"name": "My New Event",
"occured_count": 0,
"created_at": "2019-09-01T20:19:08Z",
"updated_at": "2019-09-03T19:45:42Z",
"end_date": 1569359375,
"active": false,
"application_id": 76730,
"user_id": 91141808,
"kind": "API",
"environment": "production",
"tag_query": null,
"notification_channel": {
"name": "apns"
}
}
}
Path Parameters
ID of the event.
Body Parameters
Marks event as active/inactive. Possible values are: true
and false
.
Encoded message payload. Can be Base64 encoded plain text or push notification payload (Push notifications formats).
The date of the event. If event_type=fixed_date
, the date cannot be in the past.
The period of the event in seconds.
The name of the event.
Headers
A user session token. See our Authentication page to learn more about the session token.
Responses
A successful response
An error response
curl -X PUT \
-H "Content-Type: application/json" \
-H "QB-Token: 37d3a10a1843ac780cb6f2c683bddad2b0012bba" \
-d '{
"event":{
"date":"1568839180",
"period":"86400",
"name":"My New Event"
}
}' \
https://api.quickblox.com/events/30529342.json
{
"event": {
"id": 30529342,
"event_type": "period_date",
"message": "payload=eyJhcHMiOnsiYWxlcnQiOiJQdXNoIG5vdGlmaWNhdGlvbiBmcm9tIFRheWxvciIsInNvdW5kIjoiZGVmYXVsdCJ9fQ==",
"date": 1568839180,
"period": 86400,
"name": "My New Event",
"occured_count": 0,
"created_at": "2019-09-01T20:19:08Z",
"updated_at": "2019-09-03T19:45:42Z",
"end_date": 1569359375,
"active": false,
"application_id": 76730,
"user_id": 91141808,
"kind": "API",
"environment": "production",
"tag_query": null,
"notification_channel": {
"name": "apns"
}
}
}
Was this page helpful?
curl -X PUT \
-H "Content-Type: application/json" \
-H "QB-Token: 37d3a10a1843ac780cb6f2c683bddad2b0012bba" \
-d '{
"event":{
"date":"1568839180",
"period":"86400",
"name":"My New Event"
}
}' \
https://api.quickblox.com/events/30529342.json
{
"event": {
"id": 30529342,
"event_type": "period_date",
"message": "payload=eyJhcHMiOnsiYWxlcnQiOiJQdXNoIG5vdGlmaWNhdGlvbiBmcm9tIFRheWxvciIsInNvdW5kIjoiZGVmYXVsdCJ9fQ==",
"date": 1568839180,
"period": 86400,
"name": "My New Event",
"occured_count": 0,
"created_at": "2019-09-01T20:19:08Z",
"updated_at": "2019-09-03T19:45:42Z",
"end_date": 1569359375,
"active": false,
"application_id": 76730,
"user_id": 91141808,
"kind": "API",
"environment": "production",
"tag_query": null,
"notification_channel": {
"name": "apns"
}
}
}