Overview
Use this API to update the properties of a specific Rich Authentication Token (App API Key) for a OneSignal app. You can change the name, IP allowlist mode, or the list of allowed IPs. This is helpful for adjusting access rules without needing to recreate the key.How to use this API
Using your Organization API key (available in Organizations > Keys & IDs) you can update an app token associated with a given app. Thetoken_id
is a OneSignal-generated ID specific for the API key. This is not the API key itself. It is returned when creating an API key with Create API key. It can be found in the OneSignal dashboard and in the response body of the View API keys request.
Path Parameters
Your OneSignal App ID in UUID v4 format. See Keys & IDs.
The OneSignal-generated ID specific to the API key. This is not the API key itself. It is returned when creating an API key with Create API key. It can be found in the OneSignal dashboard and in the response body of the View API keys request.
Body
An internal name you set to help organize and track API keys (Rich Authentication Tokens). Maximum 128 characters.
Defaults to disabled
, can be set to explicit
. If set to explicit
, a list of network addresses in the form of CIDRs has to be specified in the ip_allowlist
parameter.
disabled
, explicit
An array of allowed networks in CIDRs notation. Only IPs in those ranges will be permitted to use the API key.
Response
200
The response is of type object
.