Loading...

PATCH /api/groups/{groupId}

A group stores a name and the trackers you want to view together. If the “Central” route is renamed “Old town” but keeps the same vehicles, you can update just the name. Applications that already use the group ID can keep using it.

Send a list of changes in JSON Patch format. Each change specifies what to do and which field it affects. To rename the group, supply the new name. If you change its membership, include all trackers that should remain. Plaspy validates the resulting group before saving it.

Request Details

PATCH /api/groups/{groupId}

The example identifiers are fictional. Use the identifiers returned by your account’s list for the resource you want to look up or change.

Request Parameters

Send a JSON array containing at least one operation.

Path parameters

ParameterTypeRequiredDescription
groupIdStringRequiredStringYesPublic identifier of the saved group. Copy the grp-… value from the group list.

Fields in each operation

ParameterTypeRequiredDescription
opStringRequiredStringYesJSON Patch operation. The example uses replace.
pathStringRequiredStringYesField path to change, starting with /.
valueField typeConditionalField typeConditionalFor replace, supply the new value with the field’s type.

Send an array with at least one operation. Set op to the operation and path to the field, such as /name, /description or /devices. For replace, set value to the new value with the field’s type.

To change membership, replace /devices with the complete tracker list. The result must have a name and at least one visible device.

Authentication Required

Send the access token in the Authorization: Bearer <token> header. See Authentication.

You need access to Groups with a user who can make changes. Administrators manage the account’s groups and other authorised users manage their own. Demo users have read access only.

Example Request

PATCH /api/groups/{groupId} HTTP/1.1 Host: api.plaspy.com Authorization: Bearer {token} Content-Type: application/json

Example Request Body

[ { "op": "replace", "path": "/description", "value": "City routes" } ]

Response Parameters

The response includes the saved group, its device list and its creation and last modification times.

FieldTypePresenceDescription
idStringAlwaysStringAlwaysPublic group ID with the grp- prefix.
nameStringAlwaysStringAlwaysName of the group or special access option.
descriptionStringWhen setStringWhen setGroup description, when set.
devicesString arrayAlwaysString arrayAlwaysIDs of the trackers assigned to the group.
creationDate-timeWhen setDate-timeWhen setCreation time in the requesting user’s time zone.
lastModifiedDate-timeWhen setDate-timeWhen setLast modification time in the requesting user’s time zone.
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

{ "id": "grp-JkLmNZpQvW", "name": "City deliveries", "description": "City routes", "devices": [ "123456789012345" ], "creation": "2027-01-08T09:15:00", "lastModified": "2027-01-10T13:30:00", "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 401 if a valid Bearer token is missing.
  • HTTP 400 if the ID is recognised but the group does not exist among those you can manage. HTTP 404 if the route or ID is unrecognised.
  • HTTP 400 with success: false and a message in error for an empty list or a result that breaks group validation rules. An unknown field path or incompatible value type can return HTTP 500.
  • HTTP 403 if the user lacks the required permission. The reason appears in error.

Example error

{ "success": false, "error": "No patch operations were provided." }
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:48:29