Skip to main content
PATCH
Update asset group

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 the X-API-KEY header:

Example Request

Path Parameters

Request Body

Response

Success Response

Response Fields

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

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

Authorizations

X-API-KEY
string
header
required

Your API key. This is required by most endpoints to access our API programatically. Reach out to us at support@chainpatrol.io to get an API key for your use.

Path Parameters

groupId
integer
required

ID of the group to update

Required range: x > 0

Body

application/json
name
string
required
Required string length: 1 - 255

Response

Successful response

id
number
required
name
string
required