### Copenhagen Truck Wash API Help

# Upload task attachment

This endpoint documentation is generated directly from `openapi.yaml`.

## Endpoint

POST /department/selfserve/tasks/attachments/upload

## Operation

Operation ID: `uploadSelfserveTaskAttachment`

Upload a new attachment to a specific self-serve task using base64 encoding.

## Authentication

Security requirements:

Scheme | Scopes
--- | ---
BearerAuth | -

## Request Body

Required: yes.

Content type: `application/json`

{ "properties": { "base64_file": { "description": "Base64 encoded file content", "type": "string" }, "file_name": { "description": "Name of the file including extension", "type": "string" }, "task_id": { "type": "integer" } }, "required": [ "task_id", "base64_file", "file_name" ], "type": "object" }

## Responses

Status | Description | Content Types
--- | --- | ---
200 | Attachment uploaded successfully | application/json
400 |  |
404 |  |
500 |  |

Schema for response `200` (`application/json`):

{}
17 March 2026