---
title: "Upsert a push provider"
method: POST
path: "/push_providers"
tags: ["product:chat"]
---

# Upsert a push provider

`POST /push_providers`

Upsert a push provider for v2 with multi bundle/package support

## Request body

- UpsertPushProviderRequest, nullable
  - `push_provider` PushProviderRequest
    - `apn_auth_key` string
    - `apn_auth_type` string
    - `apn_development` boolean
    - `apn_host` string
    - `apn_key_id` string
    - `apn_notification_template` string
    - `apn_p12_cert` string
    - `apn_team_id` string
    - `apn_topic` string
    - `description` string
    - `disabled_at` string, date-time
    - `disabled_reason` string
    - `firebase_apn_template` string
    - `firebase_credentials` string
    - `firebase_data_template` string
    - `firebase_host` string
    - `firebase_notification_template` string
    - `firebase_server_key` string
    - `huawei_app_id` string
    - `huawei_app_secret` string
    - `name` string, required
    - `type` string
    - `xiaomi_app_secret` string
    - `xiaomi_package_name` string

## Response `201`

Response

- UpsertPushProviderResponse, nullable — Basic response information
  - `duration` string, required — Duration of the request in milliseconds
  - `push_provider` PushProviderResponse, required
    - `apn_auth_key` string
    - `apn_auth_type` string
    - `apn_development` boolean
    - `apn_host` string
    - `apn_key_id` string
    - `apn_p12_cert` string
    - `apn_sandbox_certificate` boolean
    - `apn_supports_remote_notifications` boolean
    - `apn_supports_voip_notifications` boolean
    - `apn_team_id` string
    - `apn_topic` string
    - `created_at` string, date-time, required
    - `description` string
    - `disabled_at` string, date-time
    - `disabled_reason` string
    - `firebase_apn_template` string
    - `firebase_credentials` string
    - `firebase_data_template` string
    - `firebase_host` string
    - `firebase_notification_template` string
    - `firebase_server_key` string
    - `huawei_app_id` string
    - `huawei_app_secret` string
    - `name` string, required
    - `type` string, required
    - `updated_at` string, date-time, required
    - `xiaomi_app_secret` string
    - `xiaomi_package_name` string

## Other responses

- `400` — Bad request
- `429` — Too many requests

---

[API](https://skmtc.net/getstream/apis/stream-api.md) · [All operations](https://skmtc.net/getstream/apis/stream-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/getstream/stream-api/versions/3dba86aaa0d8/schema)
