Files
api/documentation/topics/generated/updateDepartmentGoal.topic
T

55 lines
2.3 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE topic
SYSTEM "https://resources.jetbrains.com/writerside/1.0/xhtml-entities.dtd">
<topic xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://resources.jetbrains.com/writerside/1.0/topic.v2.xsd"
title="Update department goal" id="updateDepartmentGoal">
<!-- AUTO-GENERATED, DO NOT EDIT -->
<p>This endpoint documentation is generated directly from <code>openapi.yaml</code>.</p>
<chapter title="Endpoint" id="endpoint">
<code-block lang="http">PUT /goals/department</code-block>
</chapter>
<chapter title="Operation" id="operation">
<p>Operation ID: <code>updateDepartmentGoal</code></p>
<p>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`.
</p>
</chapter>
<chapter title="Authentication" id="authentication">
<p>Security requirements:</p>
<table>
<tr><td>Scheme</td><td>Scopes</td></tr>
<tr><td>BearerAuth</td><td>-</td></tr>
</table>
</chapter>
<chapter title="Request Body" id="request-body">
<p>Required: yes.</p>
<p>Content type: <code>application/json</code></p>
<code-block lang="json">
{
&quot;$ref&quot;: &quot;#/components/schemas/DepartmentGoalUpdate&quot;
}
</code-block>
</chapter>
<chapter title="Responses" id="responses">
<table>
<tr><td>Status</td><td>Description</td><td>Content Types</td></tr>
<tr><td>200</td><td>Department goal updated successfully</td><td>application/json</td></tr>
<tr><td>400</td><td></td><td></td></tr>
<tr><td>401</td><td></td><td></td></tr>
<tr><td>403</td><td></td><td></td></tr>
<tr><td>404</td><td></td><td></td></tr>
</table>
<p>Schema for response <code>200</code> (<code>application/json</code>):</p>
<code-block lang="json">
{
&quot;$ref&quot;: &quot;#/components/schemas/DepartmentGoal&quot;
}
</code-block>
</chapter>
</topic>