Actions4
- Notification Actions
- Device Actions
- Topic Actions
Overview
The node integrates with PNTA.io, a service for sending push notifications and managing devices. Specifically, the "Update Device Metadata" operation allows users to update metadata associated with a device identified by a unique token or identifier within a specified project. This is useful for enriching device records with custom key-value pairs such as user IDs, platform types, or other contextual information that can be used for targeting notifications or analytics.
Common scenarios:
- Updating user-specific data on a device after login or profile changes.
- Tagging devices with platform or app version info for segmentation.
- Adding custom attributes to devices for personalized notification campaigns.
Example:
Updating a device's metadata to include a user ID and platform:
{
"project_id": "your-project-ID",
"identifier": "device-token-abc123",
"metadata": {
"user_id": "12345",
"platform": "mobile"
}
}
Properties
| Name | Meaning |
|---|---|
| Project ID | The PNTA.io project ID where the device exists. |
| Device Identifier | The unique token or identifier of the device whose metadata will be updated. |
| Metadata | A JSON object containing key-value pairs representing the metadata to update on the device. |
Output
The node outputs JSON data reflecting the result of the metadata update operation. Typically, this includes confirmation of the update or the updated device object returned from PNTA.io. The exact structure depends on the API response but generally contains fields such as device identifier, updated metadata, timestamps, or status messages.
No binary data output is involved in this operation.
Dependencies
- Requires an active PNTA.io account and project.
- Needs an API authentication token credential configured in n8n to authorize requests to PNTA.io.
- Network access to
https://app.pnta.ioendpoint.
Troubleshooting
- Invalid Project ID or Device Identifier: Ensure the project ID and device token are correct and exist in your PNTA.io account.
- Malformed Metadata JSON: The metadata must be valid JSON. Invalid JSON syntax will cause errors.
- Authentication Errors: Verify that the API authentication token is correctly set up and has sufficient permissions.
- Network Issues: Check connectivity to
https://app.pnta.io. - API Rate Limits: If updates fail intermittently, consider if you have hit any rate limits imposed by PNTA.io.
Links and References
- PNTA.io Documentation (for API details and metadata usage)
- PNTA.io API Reference