---
title: "Update a variable-item"
method: PUT
path: "/remuneration/api/variable-items/{id}"
tags: ["variable-item"]
---

# Update a variable-item

`PUT /remuneration/api/variable-items/{id}`

Update a variable-item.

## Request body

- VariableItemPayload
  - `amount` number, double — The amount of the variable remuneration item. Depending on the nature of the variable item, the amount can be either a quantity or a monetary value.
  - `natureId` integer — The nature id of the variable remuneration item
  - `workContractId` integer — A variable item must be linked to a work contract, or eventually the amendment of a work contract. This is the id of the work contract.
  - `amendmentId` integer — A variable item must be linked to a work contract, and optionally one of its amendments.\rAmendmentId "0" (zero) is to be interpreted as "null", i.e. no amendment. In this case, the variable-item is attached to the work-contract original version (unedited by any amendment).
  - `comments` string, nullable — You can attach a comment to explain or justify the variable item
  - `period` string, date — A variable remuneration item is ponctual, and is linked to a specific period

## Response `200`

OK

- VariableItem
  - `amount` number, double — The amount of the variable remuneration item. Depending on the nature of the variable item, the amount can be either a quantity or a monetary value.
  - `natureId` integer — The nature id of the variable remuneration item
  - `workContractId` integer — A variable item must be linked to a work contract, or eventually the amendment of a work contract. This is the id of the work contract.
  - `amendmentId` integer — A variable item must be linked to a work contract, and optionally one of its amendments.\rAmendmentId "0" (zero) is to be interpreted as "null", i.e. no amendment. In this case, the variable-item is attached to the work-contract original version (unedited by any amendment).
  - `comments` string, nullable — You can attach a comment to explain or justify the variable
  - `period` string, date — A variable remuneration item is ponctual, and is linked to a specific period
  - `id` integer — Unique identifier of the variable remuneration item
  - `nature` VariableNature
    - `id` integer — An unique identifier for the variable nature
    - `name` string — The display name
    - `type` 'Amount' | 'Number' — Is the nature of the remuneration an amount of money or a quantity?
    - `category` VariableNatureCategory — Variable nature category
      - `id` integer — An unique identifier for the variable nature category
      - `code` string — An internal unique code identifying the category
    - `establishments` Establishment[] — Establishments linked to the variable nature
      - `id` integer — An unique identifier for the establishment
      - `name` string — The display name
      - `currencyCode` string — Currency code used in this establishment
      - `currencySymbol` string — Currency symbol used in this establishment
  - `workContract` AmendedWorkContract
    - `workContractId` integer — An amended work contract is defined both by the work contract and the amendment This is the identifier of the work contract part
    - `amendmentId` integer — An amended work contract is defined both by the work contract and the amendment This is the identifier of the amendment part
    - `ownerId` integer — The identifier of the employee who owns the contract
    - `owner` AmendedWorkContractOwner
      - `id` integer, required — Unique identifier of the user
      - `firstName` string, required — First name of the user
      - `lastName` string, required — Last name of the user
      - `name` string, required — Full name of the user
      - `displayName` string, required — Display name of the user
    - `startsOn` string, date — Start date of the contract
    - `endsOn` string, date, nullable — End date of the contract
  - `isDeleted` boolean — Has the variable item been deleted?

## Other responses

- `400` — Bad Request
- `404` — Not Found
- `409` — Conflict

---

[API](https://skmtc.net/luccasoftware/apis/lucca-expenses.md) · [All operations](https://skmtc.net/luccasoftware/apis/lucca-expenses/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/luccasoftware/lucca-expenses/revisions/110f9897756c/schema)
