---
title: "Create/Update approval"
method: POST
path: "/approval"
tags: ["[v1] Approvals"]
---

# Create/Update approval

`POST /approval`

Create new approval or update existing one.

## Request body

- object
  - `from` string, required — date in `YYYY-MM-DD` format
  - `to` string, required — date in `YYYY-MM-DD` format
  - `status` integer, required — approval status
  - `user_id` string, required — user id which approval is for

## Response `201`

Created

- object
  - `id` union
    - string
    - integer
  - `approval_id` union
    - string
    - integer
  - `status` union
    - string
    - integer
  - `for` union
    - string
    - integer
  - `by` union
    - string
    - integer
  - `from` string
  - `to` string
  - `projects` string
  - `comments` object[]
    - `approval_comment_id` union
      - string
      - integer
    - `user_date_time` string
    - `user_id` union
      - string
      - integer
    - `comment` string
    - `approval_id` union
      - string
      - integer
    - `event` union
      - string
      - integer

## Other responses

- `403` — Forbidden

---

[API](https://skmtc.net/timecamp/apis/timecamp-api.md) · [All operations](https://skmtc.net/timecamp/apis/timecamp-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/timecamp/timecamp-api/revisions/c7e9d1f9cf61/schema)
