This endpoint allows you to partially update the details of an existing group using its unique identifier (groupId
). It is useful for modifying one or more attributes of a group without needing to send all the group's data.
Request Details
To partially update a group, you must send a PATCH request with the patch operations in the request body. Ensure the request is authorized with a valid token and that the group's identifier (groupId
) is correct.
Request Parameters
Path Parameters
Field | Type | Required | Description |
---|---|---|---|
groupId | string | Yes | Unique identifier of the group to update |
Request Body Parameters
The request body must include a list of patch operations to perform on the group. Each operation follows the JSON Patch format.
Field | Type | Required | Description |
---|---|---|---|
op | string | Yes | Operation to perform (e.g., "add", "remove", "replace"). |
path | string | Yes | Path to the group attribute to modify (e.g., "/name", "/description"). |
value | object | No | New value for the attribute specified in path . Required if op is "add" or "replace". |
Example Request Body
[
{
"op": "replace",
"path": "/name",
"value": "Updated Name"
},
{
"op": "replace",
"path": "/description",
"value": "Updated description of the group"
}
]
Authentication Required
Example Request
PATCH /api/groups/grp-125 HTTP/1.1
Host: api.plaspy.com
Authorization: Bearer eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXV...
Content-Type: application/json
[
{
"op": "replace",
"path": "/name",
"value": "Updated Name"
},
{
"op": "replace",
"path": "/description",
"value": "Updated description of the group"
}
]
Response Parameters
The response includes details of the updated group.
Field | Type | Required | Description |
---|---|---|---|
success | boolean | Yes | Indicates whether the request was successful. |
error | string | No | Error message if the request failed. |
apiUsage | integer | No | Total API usage at the time of the request. |
apiDailyUsage | integer | No | Daily API usage at the time of the request. |
id | string | No | Unique identifier of the updated group. |
name | string | Yes | Name of the group. |
description | string | No | Description of the group. |
devices | array | No | List of IDs of devices associated with the group. |
creation | string | No | Date and time of group creation (in ISO 8601 format). |
lastModified | string | No | Date and time of the last modification of the group (in ISO 8601 format). |
Example Successful Response
{
"success": true,
"error": null,
"apiUsage": 123,
"apiDailyUsage": 45,
"id": "grp-125",
"name": "Updated Name",
"description": "Updated description of the group",
"devices": ["dev-123", "dev-456"],
"creation": "2023-01-01T12:00:00Z",
"lastModified": "2023-06-01T12:00:00Z"
}
Example Error Response
{
"success": false,
"error": "Group not found",
"apiUsage": 123,
"apiDailyUsage": 45
}
This endpoint is essential for making partial updates to group information in the Net Domain Technologies application, allowing specific modifications without needing to send all the group's data.
- Welcome to Net Domain Technologies help
- Map
- Viewing a Device's Route History
- Device Control Panel
- Detailed Device Information
- Buttons on the Map
- Details
- Trip Statistics
- Device Menu
- GeoFences
- Bulk Alert Editing
- Enable map notifications
- Mileage Calculation
- Atributes
- Devices
- Marker Icon
- Information
- Sensors
- Reassign Digital Sensors
- Commands
- Alerts
- Types
- Configuration
- Reminders
- Limits
- History
- Setting Up a New Tracker
- Solution for Identifier Already in Use by Another Account
- Device Issues
- Email alerts sending limits
- Reports
- New Report
- My Account
- Password Change
- Email Notifications
- Telegram Accounts
- Update Mobile Phone Number
- Primary Email
- Alternative Email
- Activate Two-Factor Authentication (2FA)
- Access Log
- Password Recovery
- Recover Username
- Delete Your Account
- Statistics
- Activity Summary
- Groups
- Users
- Share Access
- Developers
- Enable the API
- Rest API
- Authentication
- Devices API
- GET /api/devices
- GET /api/devices/{deviceId}
- GET /api/devices/{deviceId}/lastLocation
- POST /api/devices/{deviceId}/locations
- POST /api/devices/{deviceId}/alerts
- Groups API
- GET /api/groups
- POST /api/groups
- GET /api/groups/{groupId}
- PUT /api/groups/{groupId}
- PATCH /api/groups/{groupId}
- DELETE /api/groups/{groupId}
- Users API
- GET /api/users
- POST /api/users
- GET /api/users/countries
- GET /api/users/timeZones
- GET /api/users/{userId}
- PUT /api/users/{userId}
- PATCH /api/users/{userId}
- DELETE /api/users/{userId}