---
title: "Upload a screenshot to an activity"
method: POST
path: "/v1/task-activities/{id}/images"
tags: ["TaskActivity"]
---

# Upload a screenshot to an activity

`POST /v1/task-activities/{id}/images`

Multipart request with a JSON part 'data' and the image as 'file'. Accepts jpg, jpeg, png and webp up to 5 MB. Uploading the same image id again returns the stored image.

## Path parameters

- `id` string, required

## Response `200`

Stored screenshot

- TaskActivityImageDto
  - `id` string
  - `taskActivityId` string
  - `taskId` string
  - `dateTime` string
  - `fileSize` integer
  - `width` integer
  - `height` integer
  - `lastUpdate` integer
  - `created` integer

## Other responses

- `400` — Bad request - invalid file or activity not found
- `401` — Not authorized
- `403` — Invalid permission

## Changes

> 8 revisions in range; 1 not diffed.

- **2026-09-21** `4f2bf90abf25` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/timesheet/apis/timesheet-api/changes/v1/task-activities/:id/images/post.md)

---

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