This endpoint documentation is generated directly from openapi.yaml.

PUT /goals/department

Operation ID: updateDepartmentGoal

Update an existing department goal by `id`. Access control: - The creator (`created_by`) may update regardless of department membership. - Otherwise the user must satisfy the same subset rule as for read access, and any new `departments` provided must also be a subset unless the user has `superuser`.

Security requirements:

SchemeScopes
BearerAuth-

Required: yes.

Content type: application/json

{ "$ref": "#/components/schemas/DepartmentGoalUpdate" }
StatusDescriptionContent Types
200Department goal updated successfullyapplication/json
400
401
403
404

Schema for response 200 (application/json):

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