product:chat

Upsert a push notification template

Changed on

Create or update a push notification template for a specific event type and push provider

post/push_templates

Request

  • Base URL
    https://chat.stream-io-api.com
  • URL
    https://chat.stream-io-api.com/push_templates
  • Auth
    • API key in header Authorization and API key in query parameter api_key and API key in header Stream-Auth-Type
    • or API key in query parameter api_key and API key in header Stream-Auth-Type

Request body

enable_pushboolean

Whether to send push notification for this event

event_type'message.new' | 'message.updated' | 'reaction.new' | 'notification.reminder_due' | 'feeds.activity.added' | 'feeds.comment.added' | 'feeds.activity.reaction.added' | 'feeds.comment.reaction.added' | 'feeds.follow.created' | 'feeds.notification_feed.updated' required

Event type. One of: message.new, message.updated, reaction.new, notification.reminder_due, feeds.activity.added, feeds.comment.added, feeds.activity.reaction.added, feeds.comment.reaction.added, feeds.follow.created, feeds.notification_feed.updated

push_provider_namestring

Push provider name

push_provider_type'firebase' | 'apn' | 'huawei' | 'xiaomi' required

Push provider type. One of: firebase, apn, huawei, xiaomi

templatestring

Push template

Response

Response

durationstring required

Duration of the request in milliseconds

Changes

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      removed the feeds.activity.added enum value from the / response property for the response status

    • info

      removed the feeds.activity.reaction.added enum value from the / response property for the response status

    • info

      removed the feeds.comment.added enum value from the / response property for the response status

    • info

      removed the feeds.comment.reaction.added enum value from the / response property for the response status

    • info

      removed the feeds.follow.created enum value from the / response property for the response status

    • info

      removed the feeds.notification_feed.updated enum value from the / response property for the response status

    • info

      removed the message.new enum value from the / response property for the response status

    • info

      removed the message.updated enum value from the / response property for the response status

    • info

      removed the notification.reminder_due enum value from the / response property for the response status

    • info

      removed the reaction.new enum value from the / response property for the response status

    • info

      added the required property / to the response with the status