### Copenhagen Truck Wash API Help

# Create department goal

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

## Endpoint

POST /goals/department

## Operation

Operation ID: `createDepartmentGoal`

Create a new department goal. Access control: - The provided `departments` must be a subset of the user&#x27;s departments unless the user has `superuser`.

## Authentication

Security requirements:

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

## Request Body

Required: yes.

Content type: `application/json`

{ "$ref": "#/components/schemas/DepartmentGoalCreate" }

## Responses

Status | Description | Content Types
--- | --- | ---
201 | Department goal created successfully | application/json
400 |  |
401 |  |
403 |  |

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

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