---
title: "Invite user to a group"
method: POST
path: "/group/{group_id}/user"
tags: ["[v1] Group"]
---

# Invite user to a group

`POST /group/{group_id}/user`

Invite user to a group.

## Request body

- object
  - `tt_global_admin` 0 | 1 — set invited users as time tracking administrators
  - `email` string[], required — emails to invite
  - `dry_run` 0 | 1 — used to simulate invite ie. check for errors in request, because it does not really invite user
  - `can_view_rates` 0 | 1 — can invited users view rates
  - `tt_can_create_level_1_tasks` 0 | 1 — can invited users create tasks at root level
  - `add_to_all_projects` 0 | 1 — adds invited users to all existing tasks
  - `projects` integer[] — array of tasks ids to add invited users to
  - `guests` object[]
    - `guest` boolean — is this user guest
    - `email` string — guest email
  - `send_mail` 0 | 1 — should send invitation email

## Response `200`

OK

- object
  - `statuses` object
    - `[invited_email]` object
      - `status` string

## Other responses

- `400` — Bad Request
- `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/versions/c7e9d1f9cf61/schema)
