Skip to content

Replace a push provider

Request

OAuth 2.0 scope:
  • okta.pushProviders.manage

Replaces a push provider by pushProviderId

Path
pushProviderIdstringrequired

Id of the push provider

Bodyapplication/jsonrequired
namestring

Display name of the push provider

providerTypestring(ProviderType)
Enum:"APNS""FCM"
Discriminator
configurationobject(APNSConfiguration)
curl -i -X PUT \
  'https://subdomain.okta.com/api/v1/push-providers/{pushProviderId}' \
  -H 'Content-Type: application/json' \
  -d '{
    "name": "APNs Example",
    "providerType": "APNS",
    "configuration": {
      "keyId": "KEY_ID",
      "teamId": "TEAM_ID",
      "tokenSigningKey": "-----BEGIN PRIVATE KEY-----\\nPRIVATE_KEY\\n-----END PRIVATE KEY-----\\n",
      "fileName": "fileName.p8"
    }
  }'

Responses

OK

Bodyapplication/json
idstringread-only

Unique key for the Push Provider

lastUpdatedDatestringread-only

Timestamp when the Push Provider was last modified

namestring

Display name of the push provider

providerTypestring(ProviderType)
Enum:"APNS""FCM"
Discriminator
configurationobject(APNSConfiguration)
Response
{ "id": "ppctekcmngGaqeiBxB0g4", "name": "APNs Example", "providerType": "APNS", "lastUpdatedDate": "2022-01-01T00:00:00.000Z", "configuration": { "keyId": "KEY_ID", "teamId": "TEAM_ID", "fileName": "fileName.p8" }, "_links": { "self": { … } } }