Vai al contenuto principale
PUT
Upsert Firebase Config

Autorizzazioni

Authorization
string
header
obbligatorio

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Corpo

application/json

Body of PUT /admin/firebase.

The service_account_json field accepts the raw text the operator pastes from the Firebase console "Generate new private key" dialog. We validate the structure (must look like a Google service-account file) before encrypting it.

Following the keep-on-omit pattern from tenant_integrations: omitting service_account_json preserves the existing one. To fully reset (e.g. compromised key), pass an explicit "" — the upsert refuses and forces a re-paste.

service_account_json
string | null

Full Google service-account JSON, pasted as a string.

android_apps
AndroidApp · object[]
ios_apps
IosApp · object[]
web_apps
WebApp · object[]
web_push_vapid_key
string | null
Maximum string length: 300
default_channel_id
string
predefinito:default
Required string length: 1 - 60
default_channel_name
string
predefinito:Notifications
Required string length: 1 - 120
is_active
boolean
predefinito:true

Risposta

Successful Response

data
FirebaseConfigOut · object | null

Redacted view — never includes the encrypted service-account.

meta
PaginationMeta · object | null
error
string | null
error_code
string | null