### Copenhagen Truck Wash API Help

# Add self-serve condition

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

## Endpoint

POST /department/selfserve/conditions

## Operation

Operation ID: `addSelfserveCondition`

Add a new self-serve condition. Either provide a reusable machine_type_id or a legacy department/lane/product scope.

## Authentication

Security requirements:

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

## Request Body

Required: yes.

Content type: `application/json`

{ "properties": { "condition_id": { "nullable": true, "type": "integer" }, "department": { "default": 0, "type": "integer" }, "description": { "type": "string" }, "lane": { "default": 0, "type": "integer" }, "machine_type_id": { "nullable": true, "type": "integer" }, "name": { "type": "string" }, "product": { "default": 0, "type": "integer" } }, "required": [ "name", "description" ], "type": "object" }

## Responses

Status | Description | Content Types
--- | --- | ---
200 | Successfully added condition | application/json
400 |  |
500 |  |

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

{ "$ref": "#/components/schemas/DepartmentSelfserveCondition" }
17 March 2026