---
title: "Assign users to working hours policy"
method: PUT
path: "/company-policies/v1/working-hours-policies/{workingHoursPolicyId}/assignments"
tags: ["Company Policies:v1:WorkingHoursAssignment"]
---

# Assign users to working hours policy

`PUT /company-policies/v1/working-hours-policies/{workingHoursPolicyId}/assignments`

## Request

- Base URL: `https://api.connecteam.com`
- URL: `https://api.connecteam.com/company-policies/v1/working-hours-policies/{workingHoursPolicyId}/assignments`
- Auth: one of:
  - API key in header `X-API-KEY`
  - OAuth 2
    - Client credentials
    - Token URL: `/oauth/v1/token` scopes: `company_policies.write`

Assign users to the specified working hours policy. Replaces custom working hours for those users

## Path parameters

- `workingHoursPolicyId` integer, required: The unique identifier of the working hours policy

## Request body

- WorkingHoursAssignmentRequest
  - `userIds` integer[], required: User IDs to assign to this working hours policy. Between 1 and 100 IDs

## Response `200`

Successful Response

- APIResponseV2WorkingHoursAssignmentsResponse
  - `requestId` string
  - `data` WorkingHoursAssignmentsResponse, required
    - `assignments` WorkingHoursAssignmentItem[], required: Assignments created or already present for the requested users
      - `assignmentId` integer, required: The unique identifier of the assignment record
      - `userId` integer, required: The unique identifier of the assigned user

## Other responses

- `422`: Validation Error

## Changes

- **2026-11-03** `a01dde7c27fb`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/connecteam/apis/connecteam-api-documentation/changes/company-policies/v1/working-hours-policies/:workingHoursPolicyId/assignments/put.md)

---

[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)
