---
title: "Register worked hours"
method: POST
path: "/public/registrations/v1/register-hours"
tags: ["Registration"]
---

# Register worked hours

`POST /public/registrations/v1/register-hours`

## Request body

- HoursRegistrationRequestV1
  - `placementId` string, uuid, required — The UUID of the placement for which hours are being registered.
  - `projectId` string, uuid — The UUID of the project if the hours are registered on a project.
  - `projectName` string — The name of the project if the hours are registered on a project. When a new project name is received, a project is automatically created. When a known project name is received, the existing project is used.
  - `startTime` string, date-time, required — The timestamp when the work period started. Format: ISO 8601, must be in UTC. example: '2024-09-25T15:30:00Z'
  - `endTime` string, date-time, required — The timestamp when the work period ended. Format: ISO 8601 (e.g., 2024-09-25T15:30:00Z). Expected in UTC.
  - `breakDuration` string, duration — The optional, combined duration of breaks taken during the work period. Format: ISO 8601 (e.g., PT1H30M).
  - `description` string — An optional description or notes about the work period.

## Response `200`

Successfully registered worked hours.

- HoursRegistrationResponseV1
  - `registrationId` string, uuid, required — Unique identifier of a registration. A single registration is associated with 1 or more registration lines, including normal hours, overtime and surcharges

## Other responses

- `400` — The request could not be processed. This could be due to a number of reasons: * The request does not have all required data. * Data in the request is invalid. * Data in the request is inconsistent. * The operation is not allowed given the current state of the data.
- `401` — The request did not contain credentials identifying the caller, or the provided credentials were invalid.
- `403` — The data that the request referred to is inaccessible to the caller.

---

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