Skip to main content
POST
Create asset group

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

Example Request

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:

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

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

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.

Body

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

Response

Successful response

id
number
required
name
string
required