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

76 lines
2.9 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 vehicle condition" id="updateSelfserveVehicleCondition">
<!-- 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 /department/selfserve/vehicle/conditions</code-block>
</chapter>
<chapter title="Operation" id="operation">
<p>Operation ID: <code>updateSelfserveVehicleCondition</code></p>
<p>Update an existing vehicle condition. Customers can only update conditions for their own vehicles.</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="Parameters" id="parameters">
<table>
<tr><td>Name</td><td>In</td><td>Required</td><td>Type</td><td>Description</td></tr>
<tr><td>id</td><td>query</td><td>yes</td><td>integer</td><td>Condition ID</td></tr>
</table>
</chapter>
<chapter title="Request Body" id="request-body">
<p>Required: no.</p>
<p>Content type: <code>application/json</code></p>
<code-block lang="json">
{
&quot;properties&quot;: {
&quot;customer_id&quot;: {
&quot;nullable&quot;: true,
&quot;type&quot;: &quot;integer&quot;
},
&quot;department&quot;: {
&quot;type&quot;: &quot;integer&quot;
},
&quot;lane&quot;: {
&quot;type&quot;: &quot;integer&quot;
},
&quot;question&quot;: {
&quot;type&quot;: &quot;integer&quot;
},
&quot;reg&quot;: {
&quot;type&quot;: &quot;string&quot;
},
&quot;value&quot;: {
&quot;type&quot;: &quot;boolean&quot;
}
},
&quot;type&quot;: &quot;object&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>Successfully updated vehicle condition</td><td>application/json</td></tr>
<tr><td>400</td><td></td><td></td></tr>
<tr><td>404</td><td></td><td></td></tr>
<tr><td>500</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/DepartmentSelfserveVehicleConditionMutationResponse&quot;
}
</code-block>
</chapter>
</topic>