# Add self-serve condition rule | Copenhagen Truck Wash API

### Copenhagen Truck Wash API Help

# Add self-serve condition rule

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

## Endpoint

POST /department/selfserve/condition/rules

## Operation

Operation ID: `addSelfserveConditionRule`

Add a new self-serve condition rule.

## Authentication

Security requirements:

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

## Request Body

Required: yes.

Content type: `application/json`

{ "properties": { "condition_id": { "type": "integer" }, "description": { "type": "string" }, "name": { "type": "string" }, "object_id": { "type": "integer" }, "object_type": { "type": "string" }, "type": { "type": "string" } }, "required": [ "condition_id", "type", "object_type", "object_id", "name", "description" ], "type": "object" }

## Responses

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

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

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