---
title: "Updates a Training class"
method: PUT
path: "/api/2026-10-01/resources/trainings/training_classes/{id}"
tags: ["Trainings > TrainingClass"]
---

# Updates a Training class

`PUT /api/2026-10-01/resources/trainings/training_classes/{id}`

## Request

- Base URL: `https://api.factorialhr.com`
- URL: `https://api.factorialhr.com/api/2026-10-01/resources/trainings/training_classes/{id}`
- Auth: one of:
  - OAuth 2
    - Authorization code: `https://id.factorialhr.com/oauth/authorize`
    - Token URL: `https://id.factorialhr.com/api/oauth/token` scopes: `trainings`
  - API key in header `x-api-key`

Updates a Training class

## Path parameters

- `id` string, required

## Request body

- object
  - `name` string: Class name
  - `description` string: Class description
  - `start_date` string: Traning class start date
  - `end_date` string: Traning class end date
  - `id` string, required: Identifier of the training class to update
  - `cost` string, required: Training-related expenses, such as instructor fees, materials, venue, and logistics.
  - `subsidized_cost` string, required: Amount of training expenses covered by financial aid or grants for this group.
  - `salary_cost` string, required: Cost of all employees' time spent on the course.
  - `indirect_cost` string, required: General business expenses related to training, such as utilities and administrative fees.
  - `payment_status` 'paid' | 'pending', required: Payment status of the training class.

## Response `200`

OK

- TrainingsTrainingClass
  - `id` string, required: Identifier of the training to which the class belongs to
  - `training_id` string, required: Identifier of the course
  - `name` string, required: Class name
  - `description` string: Class description
  - `start_date` string: Traning class start date
  - `end_date` string: Traning class end date
  - `cost` string, required: Training-related expenses, such as instructor fees, materials, venue, and logistics.
  - `indirect_cost` string, required: General business expenses related to training, such as utilities and administrative fees.
  - `salary_cost` string, required: Cost of all employees' time spent on the course.
  - `subsidized_cost` string, required: Amount of training expenses covered by financial aid or grants for this group.
  - `gross_cost` string, required: Total cost before subsidies, calculated as the sum of cost, indirect_cost, and salary_cost.
  - `net_cost` string, required: Final cost after subsidies, calculated as gross_cost minus subsidized_cost.
  - `completed_attendances_count` integer, required: Number of completed session attendances in this group.
  - `total_attendances_count` integer, required: Total number of session attendances expected in this group.
  - `payment_status` 'paid' | 'pending': Payment status of the cost of training class.
  - `currency` string, required: Currency of the training class
  - `created_at` string, required: Date and time when the training class was created

## Changes

- **2026-11-03** `83ac9aa1de50`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/factorialhr/apis/factorial-api/changes/api/2026-10-01/resources/trainings/training_classes/:id/put.md)

---

[API](https://skmtc.dev/factorialhr/apis/factorial-api.md) - [All operations](https://skmtc.dev/factorialhr/apis/factorial-api/llms.txt) - [OpenAPI document](https://skmtc.dev/factorialhr/apis/factorial-api/revisions/83ac9aa1de50?raw)
