> ## 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.

# Assign activity rate

> Assigns an activity rate to a resource for a date range. Please be aware that assigning a new activity rate might modify other activity rates periods and recalculate retroactively work and vacation balances.



## OpenAPI

````yaml 26.06.25 post /api/directory/resources.assign-activity-rate
openapi: 3.1.0
info:
  title: tipee
  version: 26.06.25
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.assign-activity-rate:
    post:
      tags:
        - Directory
      summary: Assign activity rate
      description: >-
        Assigns an activity rate to a resource for a date range. Please be aware
        that assigning a new activity rate might modify other activity rates
        periods and recalculate retroactively work and vacation balances.
      operationId: post_app_ui_api_directory_directorycommand_assignresourceactivityrate
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AssignResourceActivityRateCommand'
      responses:
        '204':
          description: Resource activity rate assigned.
components:
  schemas:
    AssignResourceActivityRateCommand:
      required:
        - resource_id
        - date_range
        - average_rate
      properties:
        resource_id:
          $ref: '#/components/schemas/Snowflake'
        date_range:
          $ref: '#/components/schemas/LocalDateInterval'
        average_rate:
          $ref: '#/components/schemas/Percentage'
        work_regime_id:
          oneOf:
            - $ref: '#/components/schemas/Snowflake'
              description: If null, it will adopt the sector’s work regime.
            - type: 'null'
          description: If null, it will adopt the sector’s work regime.
        indemnity_enabled:
          description: >-
            If not specified, it will adopt the instance indemnity
            configuration.
          type: boolean
        compensation_enabled:
          type: boolean
          default: true
        trainee:
          type: boolean
          default: false
        apprentice:
          type: boolean
          default: false
        paid_hourly:
          type: boolean
          default: false
      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

````