Loading...

PUT /api/sms/settings

When adding trackers to a fleet, you can set how many SMS messages each device may send per day and choose a separate daily limit for each user. This lets the team set a text message allowance for each case.

Send both values to change one limit and retain the other. Omitting a field or sending null restores that limit to its default. The response shows the settings in effect after the update.

Request Details

HTTP method PUT
Path /api/sms/settings

Request Parameters

Request body parameters

ParameterTypeRequiredDescription
maxSmsDeviceIntegerOptionalIntegerNoDaily SMS limit per device.
maxSmsUserIntegerOptionalIntegerNoDaily SMS limit per user.

Omit a field or send it as null to restore its default. An empty object restores both defaults.

Authentication Required

Requires insert permission on the SMS page. Demo users cannot perform this operation.

Send the token in the Authorization: Bearer {token} header. See Authentication.

Example Request

PUT /api/sms/settings HTTP/1.1 Host: api.plaspy.com Authorization: Bearer {token} Content-Type: application/json

Example Request Body

{ "maxSmsDevice": 8, "maxSmsUser": 20 }

Response Parameters

The Presence column describes an HTTP 200 response. Conditional fields are omitted when they have no value.

The maxSmsDevice and maxSmsUser fields show the configured daily limits per device and per user, respectively. A field using its default is omitted.

FieldTypePresenceDescription
maxSmsDeviceIntegerConditionalIntegerConditionalDaily limit per device. Omitted when the default applies.
maxSmsUserIntegerConditionalIntegerConditionalDaily limit per user. Omitted when the default applies.
successBooleanAlwaysBooleanAlwaysSet to true on success.
apiUsageIntegerAlwaysIntegerAlwaysUsage units for this request.
apiDailyUsageIntegerAlwaysIntegerAlwaysAccount usage for the day before this request is added.

Example Successful Response

The example shows an HTTP 200 response.

{ "maxSmsDevice": 8, "maxSmsUser": 20, "success": true, "apiUsage": 1, "apiDailyUsage": 24 }

Errors

HTTP statusWhen it occurs
400For a negative value or one that cannot be read as an unsigned 32-bit integer. If the request quota has been reached, error contains the reason.
401If a valid Bearer token is missing.
403If the user lacks the required permission. The reason appears in error.
500An unexpected error occurred while processing the request.

In an error response that includes success, its value is false and error contains the message. Field validation failures can appear in the errors object, with a list of messages for each field.

Example Error Response

{ "success": false, "error": "Your user does not have permission to do this." }
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:52:21