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

### Copenhagen Truck Wash API Help

# Update self-serve condition rule

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

## Endpoint

PUT /department/selfserve/condition/rules

## Operation

Operation ID: `updateSelfserveConditionRule`

Update an existing self-serve condition rule.

## Authentication

Security requirements:

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

## Parameters

Name | In | Required | Type | Description
--- | --- | --- | --- | ---
id | query | yes | integer | Rule ID

## Request Body

Required: no.

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" } }, "type": "object" }

## Responses

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

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

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