---
title: "Update a Health Insurance of an employee's contract 🇫🇷"
method: PUT
path: "/companies/{companyId}/contracts-fr/{contractId}/health-insurance"
tags: ["Contract"]
---

# Update a Health Insurance of an employee's contract 🇫🇷

`PUT /companies/{companyId}/contracts-fr/{contractId}/health-insurance`

## Request

- Base URL: `https://partner-api.payfit.com`
- URL: `https://partner-api.payfit.com/companies/{companyId}/contracts-fr/{contractId}/health-insurance`
- Auth: OAuth 2
  - Authorization code: `https://oauth.payfit.com/authorize`
  - Token URL: `https://oauth.payfit.com/token` scopes: `health-insurance:write`

Allows the affiliation of an health insurance to an employee contract.
\
**Required scopes**: *health-insurance:write*

## Path parameters

- `companyId` string, required
- `contractId` string, required

## Request body

- object
  - `healthInsuranceContractIds` string[], required
  - `employeeIsExempted` boolean: Whether the employee is exempted from health insurance

## Response `204`

This endpoint returns no data

- object

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found

---

[API](https://skmtc.dev/payfit/apis/partner-api.md) - [All operations](https://skmtc.dev/payfit/apis/partner-api/llms.txt) - [OpenAPI document](https://skmtc.dev/payfit/apis/partner-api/revisions/4ad2186afd5e?raw)
