Actions60
- Alarm Actions
- Asset Actions
- Customer Actions
- Dashboard Actions
- Device Actions
- Entity Group Actions
- Relation Actions
- Telemetry Actions
Telemetry → Save Device Attributes
AI-generatedSummary
Submits attribute data for a ThingsBoard device to be stored in the specified scope.
Inputs
- Authentication — Selects API Key or Username/Password authentication.
- Attributes Scope — Specifies the scope to save attributes: SERVER_SCOPE or SHARED_SCOPE.
- Device ID (required) — The unique identifier string of the device (e.g., '784f394c-42b6-435a-983c-b7beff2784f9').
- Attributes JSON (required) — JSON object containing key-value pairs to save. Supports string, boolean, number, and nested values.
Output shape
no body — success/failure only
Returns an object with a status message indicating successful submission.
Examples
Example 1: Persist device configuration settings
Save SERVER_SCOPE attributes for a device with ID 'my-device-id' containing configuration keys.
Example 2: Share state across customers
Save SHARED_SCOPE attributes for a device so all customers with access can read them.