This endpoint requires authentication. Include your Bearer token in the Authorization header.
Code Examples
Authorizations
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"
Body
application/json
ISO 3166-1 alpha-2 code
curl --request POST \
  --url https://server26-dot-royalti-project.uc.r.appspot.com/labels/ \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "Future Sound Records",
  "website": "https://futuresound.example.com",
  "country": "US",
  "labelCode": "LC12345",
  "dpid": "DPID-123456",
  "contacts": {
    "email": "contact@futuresound.example.com"
  },
  "socialLinks": {
    "twitter": "https://twitter.com/futuresound"
  }
}'{
  "status": "success",
  "data": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "TenantId": 123,
    "name": "<string>",
    "logo": "<string>",
    "website": "<string>",
    "country": "US",
    "foundedDate": "2023-12-25",
    "labelCode": "<string>",
    "dpid": "<string>",
    "contacts": {},
    "socialLinks": {},
    "distributionSettings": {},
    "catalogSettings": {},
    "ddexSettings": {},
    "parentLabelId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "distribution": "<string>",
    "genres": [
      "<string>"
    ],
    "isActive": true,
    "metadata": {},
    "tradingName": "<string>",
    "pLinePrefix": "<string>",
    "cLinePrefix": "<string>",
    "isrcPrefix": "<string>",
    "upcPrefix": "<string>",
    "defaultReleaseType": "full",
    "parentLabel": {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "name": "<string>",
      "logo": "<string>"
    },
    "childLabels": [
      {
        "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "name": "<string>",
        "logo": "<string>"
      }
    ],
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z"
  }
}Creates a new label within the authenticated tenant. All operations are tenant-scoped.
curl --request POST \
  --url https://server26-dot-royalti-project.uc.r.appspot.com/labels/ \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "Future Sound Records",
  "website": "https://futuresound.example.com",
  "country": "US",
  "labelCode": "LC12345",
  "dpid": "DPID-123456",
  "contacts": {
    "email": "contact@futuresound.example.com"
  },
  "socialLinks": {
    "twitter": "https://twitter.com/futuresound"
  }
}'{
  "status": "success",
  "data": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "TenantId": 123,
    "name": "<string>",
    "logo": "<string>",
    "website": "<string>",
    "country": "US",
    "foundedDate": "2023-12-25",
    "labelCode": "<string>",
    "dpid": "<string>",
    "contacts": {},
    "socialLinks": {},
    "distributionSettings": {},
    "catalogSettings": {},
    "ddexSettings": {},
    "parentLabelId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "distribution": "<string>",
    "genres": [
      "<string>"
    ],
    "isActive": true,
    "metadata": {},
    "tradingName": "<string>",
    "pLinePrefix": "<string>",
    "cLinePrefix": "<string>",
    "isrcPrefix": "<string>",
    "upcPrefix": "<string>",
    "defaultReleaseType": "full",
    "parentLabel": {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "name": "<string>",
      "logo": "<string>"
    },
    "childLabels": [
      {
        "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "name": "<string>",
        "logo": "<string>"
      }
    ],
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z"
  }
}const response = await fetch('https://server26-dot-royalti-project.uc.r.appspot.com/labels/', {
  method: 'POST',
  headers: {
    'Authorization': `Bearer ${token}`,
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    "name": "sample-name",
    "logo": "sample-logo",
    "website": "sample-website",
    "country": "sample-country",
    "foundedDate": "2024-01-21",
    "labelCode": "sample-labelCode",
    "dpid": "sample-dpid",
    "contacts": {},
    "socialLinks": {},
    "distributionSettings": {},
    "catalogSettings": {},
    "parentLabelId": "sample-parentLabelId",
    "distribution": "sample-distribution",
    "genres": [
      {}
    ],
    "isActive": true,
    "metadata": {}
  })
});
const data = await response.json();
console.log(data);
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"
ISO 3166-1 alpha-2 code