---
title: "Update Rate"
method: PUT
path: "/api/v1/rates/{rate_id}"
tags: ["rates", "rates"]
---

# Update Rate

`PUT /api/v1/rates/{rate_id}`

## Request

- Base URL: `https://api.peil.app` (the document declares no server; this is the origin it was published from)
- URL: `https://api.peil.app/api/v1/rates/{rate_id}`
- Auth: OAuth 2 (password, token URL `/api/v1/auth/jwt/login`)

Update a specific rate

## Path parameters

- `rate_id` integer, required

## Request body

- RateUpdate
  - `client_id` integer, nullable
  - `activity_id` integer, nullable
  - `rate_per_hour` union
    - number
    - string
  - `valid_from` string, date, nullable
  - `valid_until` string, date, nullable
  - `description` string, nullable

## Response `200`

Successful Response

- Rate
  - `client_id` integer, required
  - `activity_id` integer, nullable
  - `rate_per_hour` string, required
  - `valid_from` string, date, required
  - `valid_until` string, date, nullable
  - `description` string, nullable
  - `id` integer, required
  - `created_at` string, date-time, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/peil/apis/peil-api.md) · [All operations](https://skmtc.dev/peil/apis/peil-api/llms.txt) · [OpenAPI document](https://skmtc.dev/peil/apis/peil-api/revisions/ee3ca1246dde?raw)
