Overview
The label management system enables you to:Create labels
Set up record labels with contact information and location
Organize releases
Group releases under specific labels for distribution
Geographic data
Track label location by country code
Contact management
Store email and description for each label
Label entity structure
TheLabel entity contains the following fields:
Core fields
| Field | Type | Required | Description |
|---|---|---|---|
id | UUID | Yes | Unique identifier (inherited from AbstractEntity) |
name | string (255) | Yes | Label’s display name |
email | string (255) | No | Contact email address |
description | string (255) | No | Label description or bio |
userId | UUID | Yes | Reference to the owning user |
country | enum | Yes | ISO country code (default: RW) |
createdAt | timestamp | Yes | Record creation time (inherited) |
updatedAt | timestamp | Yes | Last update time (inherited) |
Relationships
User relationship
User relationship
Each label is owned by a single user who manages the label’s information and releases.
Release relationship
Release relationship
A label can have multiple releases. This relationship allows you to organize your catalog by imprint or sub-label.
Common operations
Create a label
Create a new label in your catalog:The
country code is automatically converted to uppercase. You can provide it in lowercase (us) or uppercase (US).Fetch labels
Retrieve labels with pagination:page- Page number (default: 0)size- Items per page (default: 10)- Any additional query parameters are applied as filter conditions
- Basic fetch
- With filters
Get label by ID
Retrieve a specific label’s details with related user data:Update a label
Modify an existing label’s information:The service validates that the label exists before updating. If not found, a
404 Not Found error is returned.Delete a label
Remove a label from the catalog:Country codes
Labels use ISO 3166-1 alpha-2 country codes. The system includes a comprehensive list of countries from thecountriesList constant.
Common country codes
United States
USUnited Kingdom
GBGermany
DEFrance
FRJapan
JPRwanda
RW (default)Country codes are automatically converted to uppercase when creating or updating a label.
Use cases
Independent label setup
Create a label for your own releases:Sub-label management
Create multiple labels for different genres or imprints:Distribution organization
Organize releases by label for distribution platforms:Validation rules
Name validation
Name validation
- Required field
- Maximum 255 characters
- Must be a non-empty string
Email validation
Email validation
- Optional field
- Must be a valid email format when provided
- Maximum 255 characters
Country validation
Country validation
- Must be a valid country code from the
countriesList - Automatically converted to uppercase
- Defaults to
RWif not provided
User validation
User validation
- The
userIdmust reference an existing user - Validated during label creation
- Returns error if user not found
Related features
Releases
Associate releases with labels
Artists
Manage artists on your label
Roles & Permissions
Control label management access