> ## Documentation Index
> Fetch the complete documentation index at: https://apidocs.royalti.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Preview Resolved Defaults

> **POST /defaultsettings/preview/resolve**

## Description

**POST /defaultsettings/preview/resolve**

**Description:**
Preview how defaults will be resolved through the inheritance chain for a given
context (user, artist, label). This endpoint doesn't modify any data.

**Method:**
`POST`

**Request Body:**

| Parameter  | Type   | Description                                   | Required |
| ---------- | ------ | --------------------------------------------- | -------- |
| labelId    | uuid   | Label context                                 | No       |
| artistId   | uuid   | Artist context                                | No       |
| userId     | uuid   | User context (defaults to authenticated user) | No       |
| targetType | string | Target type (asset, product, release)         | No       |

## Code Examples

<CodeGroup>
  ```javascript Node.js theme={null}
  const response = await fetch('https://api.royalti.io/defaultsettings/preview/resolve', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json'
    },
    body: JSON.stringify({
      "labelId": "sample-labelId",
      "artistId": "sample-artistId",
      "userId": "sample-userId",
      "targetType": "sample-targetType"
    })
  });

  const data = await response.json();
  console.log(data);
  ```

  ```python Python theme={null}
  import requests

  response = requests.post(
    'https://api.royalti.io/defaultsettings/preview/resolve',
    json={"labelId":"sample-labelId","artistId":"sample-artistId","userId":"sample-userId","targetType":"sample-targetType"}
  )

  data = response.json()
  print(data)
  ```

  ```bash cURL theme={null}
  curl -X POST https://api.royalti.io/defaultsettings/preview/resolve \
    -H "Content-Type: application/json" \
    -d '{"labelId":"sample-labelId","artistId":"sample-artistId","userId":"sample-userId","targetType":"sample-targetType"}'

  ```
</CodeGroup>


## OpenAPI

````yaml post /defaultsettings/preview/resolve
openapi: 3.0.0
info:
  title: Royalti.io API
  description: "# Royalti API\r\n\r\nThis is the Royalti music royalty management platform API server.\r\n\r\n## Overview\r\n\r\nThe Royalti API provides comprehensive music royalty management services including:\r\n- Music publishing and writer management\r\n- Royalty processing and analytics\r\n- DDEX integration for music industry standards\r\n- File processing and pattern recognition\r\n- Payment processing and distribution\r\n\r\n## Authentication\r\n\r\nThe API uses JWT-based authentication with multiple protection levels:\r\n- Public endpoints for basic operations\r\n- Protected endpoints requiring valid JWT tokens\r\n- Admin endpoints for administrative functions\r\n\r\n## Features\r\n\r\n- Multi-dimensional royalty analytics\r\n- CWR (Collective Works Registration) support\r\n- DDEX integration for music metadata\r\n- Advanced file processing with pattern recognition\r\n- Real-time data processing with queue system"
  version: 2.6.0
  contact:
    name: Royalti.io Support
    email: support@royalti.io
    url: https://royalti.io
  license:
    name: Proprietary
    url: https://royalti.io/terms
servers:
  - url: https://api.royalti.io
    description: Production server
  - url: https://api-dev.royalti.io
    description: Development server
  - url: http://localhost:8084
    description: Local development
security:
  - bearerAuth: []
tags:
  - name: Accounting
    description: Accounting and financial transaction operations
  - name: DDEX
    description: DDEX operations (ERN/MEAD, messages, delivery, providers)
  - name: Label
    description: Label management operations
  - name: Internal Webhooks
    description: Internal system webhooks for royalty processing and downloads
  - name: Payment Webhooks
    description: Payment processor webhook endpoints
  - name: Billing Webhooks
    description: Stripe billing and subscription webhooks
  - name: Infrastructure Webhooks
    description: Cloudflare domain and SSL webhooks
  - name: Distribution Webhooks
    description: Digital distribution platform webhooks (FUGA)
paths:
  /defaultsettings/preview/resolve:
    post:
      tags:
        - Preview
      summary: Preview Resolved Defaults
      description: >-
        **POST /defaultsettings/preview/resolve**


        **Description:**

        Preview how defaults will be resolved through the inheritance chain for
        a given

        context (user, artist, label). This endpoint doesn't modify any data.


        **Method:**

        `POST`


        **Request Body:**


        | Parameter | Type | Description | Required |

        | --- | --- | --- | --- |

        | labelId | uuid | Label context | No |

        | artistId | uuid | Artist context | No |

        | userId | uuid | User context (defaults to authenticated user) | No |

        | targetType | string | Target type (asset, product, release) | No |
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                labelId:
                  type: string
                  format: uuid
                artistId:
                  type: string
                  format: uuid
                userId:
                  type: string
                  format: uuid
                targetType:
                  type: string
                  enum:
                    - asset
                    - product
                    - release
            example:
              artistId: 660e8400-e29b-41d4-a716-446655440001
              labelId: 770e8400-e29b-41d4-a716-446655440002
              targetType: release
      responses:
        '200':
          description: Defaults resolved successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
                  message:
                    type: string
                    example: Defaults resolved successfully
                  data:
                    $ref: '#/components/schemas/ResolvedDefaults'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '500':
          $ref: '#/components/responses/InternalServerError'
components:
  schemas:
    ResolvedDefaults:
      type: object
      description: Result of default settings resolution
      properties:
        resolved:
          $ref: '#/components/schemas/DefaultSettingsData'
          description: Final merged settings after applying inheritance chain
        chain:
          type: array
          items:
            type: object
            properties:
              entityType:
                type: string
              entityId:
                type: string
                format: uuid
                nullable: true
              category:
                type: string
              settings:
                $ref: '#/components/schemas/DefaultSettingsData'
              priority:
                type: integer
          description: >-
            Ordered list of settings that were merged (lowest to highest
            priority)
    DefaultSettingsData:
      type: object
      description: The actual settings data organized by category
      properties:
        content:
          type: object
          description: Content-related default settings
          properties:
            type:
              type: string
              enum:
                - Audio
                - Video
                - Ringtone
                - YouTube
              description: Media type
            format:
              type: string
              enum:
                - Single
                - EP
                - Album
                - LP
              description: Release format
            version:
              type: string
              description: Version information (e.g., "Deluxe Edition", "Remastered")
            explicit:
              type: string
              enum:
                - explicit
                - clean
              description: Explicit content flag
            language:
              type: string
              description: Primary language (ISO 639-1 code)
            mainGenre:
              type: array
              items:
                type: string
              description: Primary genre classifications
            subGenre:
              type: array
              items:
                type: string
              description: Secondary genre classifications
            contributors:
              type: object
              additionalProperties:
                type: array
                items:
                  type: string
              description: >-
                Contributors mapped by role (key: role name, value: array of
                contributor names)
        business:
          type: object
          description: Business-related default settings
          properties:
            label:
              type: string
              description: Record label name
            copyright:
              type: string
              description: Copyright notice (e.g., "© 2024 Label Name")
            publisher:
              type: string
              description: Music publisher name
            copyrightOwner:
              type: string
              description: Copyright owner/holder
            distribution:
              type: string
              description: Distribution method or partner
            status:
              type: string
              enum:
                - Live
                - Taken Down
                - Scheduled
                - Pending
                - Error
              description: Default release status
        ddex:
          type: object
          description: DDEX-specific default settings
          properties:
            enableDDEX:
              type: boolean
              description: Enable DDEX message generation
            labelName:
              type: string
              description: Label name for DDEX messages
            resourceReference:
              type: string
              description: Default resource reference pattern
            grid:
              type: string
              description: Global Release Identifier (GRid)
            icpn:
              type: string
              description: International Catalog Product Number
        validation:
          type: object
          description: Validation rules
          properties:
            requireGenre:
              type: boolean
              description: Require genre selection
            requireLyrics:
              type: boolean
              description: Require lyrics for tracks
            requireDescription:
              type: boolean
              description: Require description field
            minimumTrackCount:
              type: integer
              minimum: 0
              description: Minimum number of tracks
            maximumTrackCount:
              type: integer
              minimum: 1
              description: Maximum number of tracks
  responses:
    BadRequest:
      description: Bad request
      content:
        application/json:
          schema:
            type: object
            properties:
              status:
                type: string
                example: error
              message:
                type: string
                example: Invalid request parameters
    Unauthorized:
      description: Unauthorized
      content:
        application/json:
          schema:
            type: object
            properties:
              status:
                type: string
                example: error
              message:
                type: string
                example: Unauthorized
    InternalServerError:
      description: Internal server error
      content:
        application/json:
          schema:
            type: object
            properties:
              status:
                type: string
                example: error
              message:
                type: string
                example: Internal server error
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        JWT Authorization header using the Bearer scheme. Format: "Bearer
        {token}"

````