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

# Show activity rates

> Retrieves activity rate periods for a specific resource, including activity rate patterns (per weekday) and associated or inherited work regimes.



## OpenAPI

````yaml preview post /api/directory/resources.show-activity-rates
openapi: 3.1.0
info:
  title: tipee
  version: preview
servers: []
security:
  - basicAuth: []
tags:
  - name: Activity
    description: Activity
  - name: Balances
    description: Balances
  - name: Directory
    description: Directory
  - name: Schedule
    description: Schedule
  - name: Timeclock
    description: Timeclock
paths:
  /api/directory/resources.show-activity-rates:
    post:
      tags:
        - Directory
      summary: Show activity rates
      description: >-
        Retrieves activity rate periods for a specific resource, including
        activity rate patterns (per weekday) and associated or inherited work
        regimes.
      operationId: post_app_ui_api_directory_directoryquery_resourceactivityratesshow
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ShowResourceActivityRatesQuery'
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/ActivityRateView'
components:
  schemas:
    ShowResourceActivityRatesQuery:
      required:
        - resource_id
      properties:
        resource_id:
          $ref: '#/components/schemas/Snowflake'
        date_range:
          $ref: '#/components/schemas/LocalDateInterval'
      type: object
    ActivityRateView:
      required:
        - average_rate
        - date_range
        - activity_rate_patterns
        - work_regime
        - paid_hourly
        - apprentice
        - trainee
        - indemnity_enabled
        - compensation_enabled
      properties:
        average_rate:
          $ref: '#/components/schemas/Percentage'
        date_range:
          $ref: '#/components/schemas/LocalDateInterval'
        activity_rate_patterns:
          type: array
          items:
            $ref: '#/components/schemas/ActivityRatePatternView'
        work_regime:
          oneOf:
            - $ref: '#/components/schemas/WorkRegimeSummaryView'
            - type: 'null'
        paid_hourly:
          type: boolean
        apprentice:
          type: boolean
        trainee:
          type: boolean
        indemnity_enabled:
          anyOf:
            - $ref: '#/components/schemas/Redacted'
            - type: boolean
        compensation_enabled:
          anyOf:
            - $ref: '#/components/schemas/Redacted'
            - type: boolean
      type: object
    Snowflake:
      type: string
      format: snowflake
      example: '872815618512410358'
    LocalDateInterval:
      type: string
      format: local-date-interval
      example: 2019-11-11/2019-12-12
    Percentage:
      type: number
      format: percentage
      example: 100
    ActivityRatePatternView:
      required:
        - monday
        - tuesday
        - wednesday
        - thursday
        - friday
        - saturday
        - sunday
      properties:
        monday:
          oneOf:
            - $ref: '#/components/schemas/Percentage'
            - type: 'null'
        tuesday:
          oneOf:
            - $ref: '#/components/schemas/Percentage'
            - type: 'null'
        wednesday:
          oneOf:
            - $ref: '#/components/schemas/Percentage'
            - type: 'null'
        thursday:
          oneOf:
            - $ref: '#/components/schemas/Percentage'
            - type: 'null'
        friday:
          oneOf:
            - $ref: '#/components/schemas/Percentage'
            - type: 'null'
        saturday:
          oneOf:
            - $ref: '#/components/schemas/Percentage'
            - type: 'null'
        sunday:
          oneOf:
            - $ref: '#/components/schemas/Percentage'
            - type: 'null'
      type: object
    WorkRegimeSummaryView:
      required:
        - id
        - label
        - weekly_worked_hours
        - weekly_worked_days
      properties:
        id:
          $ref: '#/components/schemas/Snowflake'
        label:
          $ref: '#/components/schemas/TranslatedString'
        weekly_worked_hours:
          $ref: '#/components/schemas/Duration'
        weekly_worked_days:
          type: number
          format: float
      type: object
    Redacted:
      required:
        - redacted
      properties:
        redacted:
          type: string
          example: forbidden
          enum:
            - forbidden
            - confidential
      type: object
      x-tipee-bindgen-redacted: true
    TranslatedString:
      properties:
        fr:
          type: string
        en:
          type: string
        de:
          type: string
      type: object
      example:
        en: Hello
        fr: Bonjour
        de: Guten Tag
    Duration:
      description: '[ISO 8601 duration](https://en.wikipedia.org/wiki/ISO_8601#Durations)'
      type: string
      format: duration
      example: PT1H30M20S

````