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

# List rule assignments for a member

> Returns all rule assignments for a member. Optionally filter by allowance type.



## OpenAPI

````yaml https://api.absentify.com/api/v1/openapi.json get /members/{member_id}/rule-assignments
openapi: 3.1.0
info:
  title: absentify CRUD API
  description: OpenAPI compliant REST API
  version: 1.0.0
servers:
  - url: https://api.absentify.com/api/v1
security: []
tags:
  - name: Departments
  - name: Leave types
  - name: Members
  - name: Requests
  - name: Public holidays
  - name: Workspace
  - name: Absences
  - name: Allowance Management
  - name: Out of office
externalDocs:
  url: https://absentify.com/docs/en/api-reference
paths:
  /members/{member_id}/rule-assignments:
    get:
      tags:
        - Allowance Management
      summary: List rule assignments for a member
      description: >-
        Returns all rule assignments for a member. Optionally filter by
        allowance type.
      operationId: allowanceRule-listAssignments
      parameters:
        - in: path
          name: member_id
          schema:
            type: string
            format: uuid
            pattern: >-
              ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$
          required: true
        - in: query
          name: allowance_type_id
          schema:
            type: string
            format: uuid
            pattern: >-
              ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  properties:
                    id:
                      type: number
                    rule_start_date:
                      description: >-
                        First day the assignment itself applies (inclusive).
                        This is the assignment's own validity, which is
                        independent of the member: it does not account for a
                        member who joined after it began. Matches what POST and
                        PATCH accept, so values can be round-tripped — use
                        coverage_start_date to see when the member actually
                        starts accruing.
                      type: string
                    coverage_start_date:
                      description: >-
                        First day this MEMBER actually accrues under the
                        assignment (inclusive): rule_start_date, moved forward
                        to the member's employment_start_date when they joined
                        after the assignment began and before it ended. For an
                        assignment that ended on or before the member's
                        employment start, the member never accrued under it at
                        all and this field simply equals rule_start_date (that
                        state is detectable as rule_end_date <=
                        employment_start_date). Read-only and derived — POST and
                        PATCH do not accept it, and writing it back into
                        rule_start_date would freeze a hire date that is still
                        editable.
                      type: string
                    rule_end_date:
                      anyOf:
                        - type: string
                        - type: 'null'
                      description: >-
                        Last day the rule applies (inclusive), or null for
                        open-ended. Matches what POST and PATCH accept, so
                        values can be round-tripped.
                    allowance_type_id:
                      type: string
                    rule_id:
                      type: string
                    rule:
                      type: object
                      properties:
                        id:
                          type: string
                        name:
                          type: string
                        rule_amount:
                          type: number
                        accrual_cycle:
                          type: string
                          enum:
                            - month
                            - year
                            - biweek
                        accrual_month:
                          type: number
                        max_carry_forward:
                          anyOf:
                            - type: number
                            - type: 'null'
                      required:
                        - id
                        - name
                        - rule_amount
                        - accrual_cycle
                        - accrual_month
                        - max_carry_forward
                      additionalProperties: false
                  required:
                    - id
                    - rule_start_date
                    - coverage_start_date
                    - rule_end_date
                    - allowance_type_id
                    - rule_id
                    - rule
                  additionalProperties: false
        '400':
          description: Invalid input data
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error.BAD_REQUEST'
        '401':
          description: Authorization not provided
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error.UNAUTHORIZED'
        '403':
          description: Insufficient access
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error.FORBIDDEN'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error.NOT_FOUND'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error.INTERNAL_SERVER_ERROR'
      security:
        - ApiKey: []
components:
  schemas:
    error.BAD_REQUEST:
      type: object
      properties:
        message:
          type: string
          description: The error message
          example: Invalid input data
        code:
          type: string
          description: The error code
          example: BAD_REQUEST
        issues:
          description: An array of issues that were responsible for the error
          example: []
          type: array
          items:
            type: object
            properties:
              message:
                type: string
            required:
              - message
            additionalProperties: false
      required:
        - message
        - code
      additionalProperties: false
      title: Invalid input data error (400)
      description: The error information
      example:
        code: BAD_REQUEST
        message: Invalid input data
        issues: []
    error.UNAUTHORIZED:
      type: object
      properties:
        message:
          type: string
          description: The error message
          example: Authorization not provided
        code:
          type: string
          description: The error code
          example: UNAUTHORIZED
        issues:
          description: An array of issues that were responsible for the error
          example: []
          type: array
          items:
            type: object
            properties:
              message:
                type: string
            required:
              - message
            additionalProperties: false
      required:
        - message
        - code
      additionalProperties: false
      title: Authorization not provided error (401)
      description: The error information
      example:
        code: UNAUTHORIZED
        message: Authorization not provided
        issues: []
    error.FORBIDDEN:
      type: object
      properties:
        message:
          type: string
          description: The error message
          example: Insufficient access
        code:
          type: string
          description: The error code
          example: FORBIDDEN
        issues:
          description: An array of issues that were responsible for the error
          example: []
          type: array
          items:
            type: object
            properties:
              message:
                type: string
            required:
              - message
            additionalProperties: false
      required:
        - message
        - code
      additionalProperties: false
      title: Insufficient access error (403)
      description: The error information
      example:
        code: FORBIDDEN
        message: Insufficient access
        issues: []
    error.NOT_FOUND:
      type: object
      properties:
        message:
          type: string
          description: The error message
          example: Not found
        code:
          type: string
          description: The error code
          example: NOT_FOUND
        issues:
          description: An array of issues that were responsible for the error
          example: []
          type: array
          items:
            type: object
            properties:
              message:
                type: string
            required:
              - message
            additionalProperties: false
      required:
        - message
        - code
      additionalProperties: false
      title: Not found error (404)
      description: The error information
      example:
        code: NOT_FOUND
        message: Not found
        issues: []
    error.INTERNAL_SERVER_ERROR:
      type: object
      properties:
        message:
          type: string
          description: The error message
          example: Internal server error
        code:
          type: string
          description: The error code
          example: INTERNAL_SERVER_ERROR
        issues:
          description: An array of issues that were responsible for the error
          example: []
          type: array
          items:
            type: object
            properties:
              message:
                type: string
            required:
              - message
            additionalProperties: false
      required:
        - message
        - code
      additionalProperties: false
      title: Internal server error error (500)
      description: The error information
      example:
        code: INTERNAL_SERVER_ERROR
        message: Internal server error
        issues: []
  securitySchemes:
    ApiKey:
      type: apiKey
      name: X-API-KEY
      in: header

````