---
title: "Apply Strukturelle Massnahmen"
url: "https://developer.migros.ch/apis/hr25-compensation-api-0/versions/81e689e4-d95b-44d7-a80e-882b791b85b2/operations/apply_strukturelle_salary_strukturelle_massnahmen_post"
---

> Full API specification: https://developer.migros.ch/apis/hr25-compensation-api-0/versions/81e689e4-d95b-44d7-a80e-882b791b85b2.md

# Apply Strukturelle Massnahmen

`POST` `/migros/human-resources/hrsolcomp/v1/salary/strukturelle-massnahmen`

Operation ID: `apply_strukturelle_salary_strukturelle_massnahmen_post`

Apply structural salary measures to eligible employees. Fetches active rules from strukturelle_params, evaluates them against all latest non-excluded employees, and writes cumulated amounts back to Dataverse.

## Header parameters

- `authorization` (string, optional)

## Responses

- `200` - Successful Response
- `422` - Validation Error

## OpenAPI definition

```yaml
openapi: 3.0.3
info:
  title: HR25 Compensation API
  version: 0.1.0
servers:
  - url: https://hr25-comp.service.migros.cloud
paths:
  /migros/human-resources/hrsolcomp/v1/salary/strukturelle-massnahmen:
    post:
      description: >-
        Apply structural salary measures to eligible employees.


        Fetches active rules from strukturelle_params, evaluates them against
        all latest
         non-excluded employees, and writes cumulated amounts back to Dataverse.
      operationId: apply_strukturelle_salary_strukturelle_massnahmen_post
      parameters:
        - in: header
          name: authorization
          required: false
          schema:
            title: Authorization
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                properties:
                  nb_employees_impacted:
                    description: Number of employees with non-zero structural amount
                    type: integer
                  nb_rules:
                    description: Number of active rules applied
                    type: integer
                  total:
                    description: Total CHF allocated across all employees
                    type: number
                title: StruktuelleResponse
                type: object
          description: Successful Response
        "422":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/HTTPValidationError"
          description: Validation Error
      summary: Apply Strukturelle Massnahmen
      tags:
        - salary
      x-kong-route-defaults:
        strip_path: true
        tags:
          - hr25-comp
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: "#/components/schemas/ValidationError"
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    ValidationError:
      properties:
        ctx:
          title: Context
          type: object
        input:
          title: Input
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object
```
