Overview
Rename an existing asset group. This endpoint allows you to update the display name of a group belonging to your organization. All assets assigned to this group will remain assigned after the rename.Quick Start
Authentication
Include your API key in theX-API-KEY header:
Example Request
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| groupId | number | Yes | ID of the group to update |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
| groupId | number | Yes | ID of the group to update (must match path parameter) |
| name | string | Yes | New name for the group (1-255 characters) |
Response
Success Response
Response Fields
| Field | Type | Description |
|---|---|---|
| id | number | Group ID |
| name | string | Updated group name |
Error Responses
400 Bad Request
Returned when the request is malformed or validation fails:401 Unauthorized
Returned when the API key is missing, invalid, or doesn’t have organization access:403 Forbidden
Returned when the group doesn’t belong to your organization:404 Not Found
Returned when the group doesn’t exist:409 Conflict
Returned when a group with the new name already exists:Best Practices
Validation Before Rename
Check if a group with the target name already exists:Bulk Rename with Prefix/Suffix
Add a prefix or suffix to multiple groups:Audit Trail
Log group renames for audit purposes:Use Cases
Standardize Naming Convention
Rename groups to follow a consistent naming convention:Migrate Group Structure
Rename groups as part of a structural migration:Interactive Rename
Provide an interactive interface for renaming:Common Error Messages
| Error Message | Cause | Resolution |
|---|---|---|
| Group with ID not found | Invalid group ID | Verify the group ID exists |
| Group does not belong to your organization | Group belongs to a different organization | Use a group ID from your organization |
| A group with this name already exists | Duplicate group name | Choose a different name |
| Group name is required | Missing name field in request | Provide a name field |
| Group name must be between 1 and 255 characters | Name is too short or too long | Use a name with 1-255 characters |
| Path parameter groupId does not match body | Mismatch between URL and body group IDs | Ensure both group IDs match |
Notes
- Group names must be unique within your organization
- Names are case-sensitive for uniqueness checks
- All assets assigned to the group remain assigned after rename
- Organization is automatically determined from your API key
- The group ID must match in both the URL path and request body
- Renaming a group does not affect asset assignments or asset metadata
- Group’s asset count is not affected by rename operations