Create asset group
Organization Asset Groups
Create Organization Asset Group
Create a new asset group for organizing your organization’s assets.
POST
Create asset group
Documentation Index
Fetch the complete documentation index at: https://chainpatrol-knowledge-update-hosting-providers-list-1775664.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Create a new asset group for organizing your organization’s assets. Groups help you categorize assets by type, project, purpose, or any other criteria that makes sense for your use case.Quick Start
Authentication
Include your API key in theX-API-KEY header:
Example Request
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
| name | string | Yes | Name for the new group (1-255 characters) |
Response
Success Response
Response Fields
| Field | Type | Description |
|---|---|---|
| id | number | Unique identifier for the group |
| name | string | Name of the created group |
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:409 Conflict
Returned when a group with the same name already exists:Best Practices
Naming Conventions
Use clear, descriptive names that reflect the group’s purpose:Check for Existing Groups
Before creating a group, check if one with the same name already exists:Batch Group Creation
Create multiple groups in sequence:Use Cases
Initialize Group Structure
Set up a standard group structure for a new organization:Project-Based Groups
Create groups for different projects:Environment-Based Groups
Organize by environment (production, staging, development):Dynamic Group Creation
Create groups dynamically based on asset type:Common Error Messages
| Error Message | Cause | Resolution |
|---|---|---|
| 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 |
| A group with this name already exists | Duplicate group name | Use a different name or use existing group |
Notes
- Group names must be unique within your organization
- Names are case-sensitive for uniqueness checks
- Group names have a maximum length of 255 characters
- Organization is automatically determined from your API key
- Newly created groups start with zero assets
- Groups can be renamed later using the update endpoint
- There is no hard limit on the number of groups per organization
Authorizations
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.
Body
application/json
Required string length:
1 - 255