This is a Legacy API. Use Update User or Update Subscription instead.
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
app_id | string | Yes | Your OneSignal App ID. |
external_user_id | string | Yes | The user’s External ID. |
Headers
| Header | Value | Required | Description |
|---|---|---|---|
Authorization | Basic YOUR_LEGACY_REST_API_KEY | Yes | Your Legacy OneSignal API key. |
Content-Type | application/json | Yes | The content type of the request. |
Request Body Parameters
| Field | Type | Required | Description |
|---|---|---|---|
tags | object | Yes | Key-value pairs to set or update. |
- To delete a tag, set its value to an empty string (
""). - Existing tags with the same keys will be overwritten.
Example Request
Response
Errors
- 400 Bad Request – Invalid request or payload.
- 401 Unauthorized – Invalid or missing keys.
- 403 Forbidden – Access denied due to insufficient permissions.
- 404 Not Found – No players found for given
external_user_id.