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

# Create a tier rule

> Creates a tier rule through the Portal API.

See the [Gateway API entry](/api-reference/gateway/tiers/create-a-tier-rule) for the full description.



## OpenAPI

````yaml /openapi/kintra-app.json post /tenant/{tenantId}/tiers
openapi: 3.0.0
info:
  description: >-
    Tenant portal API for the Kintra loyalty platform. Requests are
    authenticated with an Auth0 bearer token and address a tenant by id in the
    path.
  title: Kintra Portal API
  version: 1.0.0
servers:
  - description: Production environment
    url: https://api.kintra.io/api/v1
security: []
paths:
  /tenant/{tenantId}/tiers:
    post:
      tags:
        - Tiers
      summary: Create a tier rule
      description: >-
        Creates a tier rule through the Portal API.


        See the [Gateway API
        entry](/api-reference/gateway/tiers/create-a-tier-rule) for the full
        description.
      operationId: CreateTierRule
      parameters:
        - in: path
          name: tenantId
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ITierRuleCreateDto'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiResponse_ITierResponseDto_'
          description: ''
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiResponse_null_'
          description: Unauthorized
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiResponse_null_'
          description: Tenant not found
        '409':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiResponse_null_'
          description: Tier rule already exists
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiResponse_null_'
          description: Internal server error
      security:
        - auth0_jwt: []
components:
  schemas:
    ITierRuleCreateDto:
      additionalProperties: false
      properties:
        benefits_description:
          nullable: true
          type: string
        color:
          nullable: true
          type: string
        icon:
          nullable: true
          type: string
        min_xp_threshold:
          format: double
          type: number
        tier_name:
          type: string
      required:
        - tier_name
        - min_xp_threshold
      type: object
    ApiResponse_ITierResponseDto_:
      additionalProperties: false
      properties:
        data:
          $ref: '#/components/schemas/ITierResponseDto'
        errors:
          items:
            properties:
              message:
                type: string
              path:
                type: string
            required:
              - path
              - message
            type: object
          type: array
        message:
          type: string
        success:
          type: boolean
      required:
        - success
      type: object
    ApiResponse_null_:
      additionalProperties: false
      properties:
        data:
          enum:
            - null
          nullable: true
          type: number
        errors:
          items:
            properties:
              message:
                type: string
              path:
                type: string
            required:
              - path
              - message
            type: object
          type: array
        message:
          type: string
        success:
          type: boolean
      required:
        - success
      type: object
    ITierResponseDto:
      additionalProperties: false
      properties:
        benefits_description:
          description: Customer-facing perks/benefits description; null when unset.
          nullable: true
          type: string
        color:
          description: >-
            Optional accent colour (hex `#RRGGBB`) for tier rendering; null when
            unset.
          nullable: true
          type: string
        created_at:
          format: date-time
          type: string
        icon:
          description: >-
            Optional icon key (one of the shared tier-icon set); null when
            unset.
          nullable: true
          type: string
        id:
          type: string
        min_xp_threshold:
          type: string
        tenant:
          $ref: '#/components/schemas/ITenantBriefDto'
          description: Present on admin tier rule list/detail when tenant is joined.
        tenant_id:
          type: string
        tier_name:
          type: string
        updated_at:
          format: date-time
          type: string
      required:
        - id
        - tenant_id
        - tier_name
        - min_xp_threshold
      type: object
    ITenantBriefDto:
      additionalProperties: false
      description: Minimal tenant label for nested list/detail payloads (id, name, slug).
      properties:
        id:
          type: string
        name:
          type: string
        slug:
          type: string
      required:
        - id
        - name
        - slug
      type: object
  securitySchemes:
    auth0_jwt:
      bearerFormat: JWT
      description: Auth0 access token
      scheme: bearer
      type: http

````