---
title: "Assign user to time-off policy"
method: PUT
path: "/time-off/v1/time-off-policies/{timeOffPolicyId}/assignments"
tags: ["Time Off:v1:PolicyAssignment"]
---

# Assign user to time-off policy

`PUT /time-off/v1/time-off-policies/{timeOffPolicyId}/assignments`

## Request

- Base URL: `https://api.connecteam.com`
- URL: `https://api.connecteam.com/time-off/v1/time-off-policies/{timeOffPolicyId}/assignments`
- Auth: one of:
  - API key in header `X-API-KEY`
  - OAuth 2
    - Client credentials
    - Token URL: `/oauth/v1/token` scopes: `time_off.write`

Assign user to specified time-off policy.

## Path parameters

- `timeOffPolicyId` string, required: The time off policy id

## Request body

- TimeOffAssignPolicyRequest
  - `userId` integer, required: The unique identifier of the user
  - `balance` number: The balance amount
  - `unit` 'hours' | 'days': An enumeration.

## Response `200`

Successful Response

- APIResponseTimeOffAssignPolicyResponse
  - `requestId` string
  - `data` TimeOffAssignPolicyResponse, required

## Other responses

- `422`: Validation Error

---

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