Loading...

POST /api/alerts/copy

When a vehicle joins a route, you can use another tracker on that route as the model for its alerts and reminders. Copying transfers the full set of rules from the source tracker to the destination, such as the speed and zone alerts the vehicles should share.

Review both configurations before copying. Any destination rule that is absent from the source will be removed. If the source has no rules, the destination will have none either. Afterwards, look up the destination tracker to check the configuration it received.

Request Details

POST /api/alerts/copy

Request Parameters

JSON body parameters

ParameterTypeRequiredDescription
fromStringRequiredStringYesID of the source tracker, visible to the user.
toStringRequiredStringYesID of the destination tracker, visible to the user. Its rules will be replaced by those of the source.

Before copying, call GET /api/alerts/{deviceId} for both devices and review which rules the destination will lose or acquire.

Adding SMS or WhatsApp notifications to a new number requires the corresponding channel privilege. Adding a command requires permission to send commands, plus permission to send SMS commands if it uses SMS. When replacing the list, you can retain destinations and commands already configured for that alert type.

Copy both identifiers from the device list.

Authentication Required

You need access to the map and the edit privilege. Demo users have read-only access.

Send a valid bearer token in the authorization header. See Authentication.

Example Request

POST /api/alerts/copy HTTP/1.1 Host: api.plaspy.com Authorization: Bearer {token} Content-Type: application/json

Example Request Body

{ "from": "123456789012345", "to": "123456789012346" }

Response Parameters

success: true confirms that the source list has been saved on the destination. Retrieve the destination again to see its copied rules.

FieldTypePresenceDescription
successBooleanAlwaysBooleanAlwaysIn a successful response, true confirms the operation.
apiUsageIntegerAlwaysIntegerAlwaysUnits charged for this request.
apiDailyUsageIntegerAlwaysIntegerAlwaysDaily usage before the units for this request are added.

Example HTTP 200 response

{ "success": true, "apiUsage": 1, "apiDailyUsage": 24 }

Errors

FieldTypePresenceDescription
successBooleanDepends on the errorBooleanDepends on the errorIn the operation errors shown here, the value is false.
errorStringDepends on the errorStringDepends on the errorMessage explaining why the request was rejected.

HTTP 400 if either tracker is missing or not visible. HTTP 403 if edit access is missing or the copy would introduce notifications or commands that the user lacks permission to add to the destination.

Example error

{ "success": false, "error": "One of the devices was not found in the account." }
Index
Questions?

We answer all support request within 24 business hours approximately, If you have a question that needs an immediate resolution, please contact us by other way.

We answer you in business hours, as soon as possible. We are located in Bogotá, Colombia, time zone (GMT-5).

Last modification: 2026-11-30 11:00:52